安装USB Coral时出错
我在尝试安装运行环境。当我运行带有Curl命令的那行代码时:
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
我收到了一个错误提示,说明apt-key这个东西已经不再推荐使用了:
警告:apt-key已经不推荐使用。请在trusted.gpg.d中管理密钥文件(查看apt-key(8))
然后,当我运行安装Python的命令时,我得到了以下信息:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-pycoral : Depends: python3-tflite-runtime (= 2.5.0.post1) but it is not going to be installed
Depends: python3 (< 3.10) but 3.10.6-1~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
我不知道这些问题是否有关联。
需要帮助!
谢谢大家
乔
我试着查看一下密钥,但我的知识有限。
1 个回答
0
关键问题不在这里。虽然apt-key这个命令已经不推荐使用了,但网上大多数教程还是在步骤中提到这个命令。你可以点击这个链接,找到一个能提高安全性并解决你安装时警告的方法。
你的问题似乎是,软件包python3-tflite-runtime
需要一个低于3.10版本的python,具体要求是Depends: python3 (< 3.10)
。要解决这个问题,你需要卸载当前的python版本(3.10.6-1~22.04),然后安装3.9或更低的版本。
你可能需要用到的命令如下:
sudo apt update
sudo apt upgrade
sudo apt remove python3
sudo apt install python3.9