当我执行sudo apt-get update
命令时,我得到以下终端输出:
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-7-local InRelease [1.575 B]
Get:3 file:/var/cuda-repo-ubuntu2004-11-3-local Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-7-local InRelease [1.575 B]
Get:3 file:/var/cuda-repo-ubuntu2004-11-3-local Release [564 B]
(...)
(...)
(...)
Err:9 file:/var/cuda-repo-ubuntu2004-11-3-local Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY
F60F4B3D7FA2AF80
(...)
(...)
(...)
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [710 kB]
Fetched 7.512 kB in 2s (4.169 kB/s)
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/hhtps could not be found.
N: Is the package apt-transport-hhtps installed?
W: An error occurred during the signature verification. The repository is not updated and
the previous index files will be used. GPG error: file:/var/cuda-repo-ubuntu2004-11-3-local
Release: The following signatures couldn't be verified because the public key is not available:
NO_PUBKEY F60F4B3D7FA2AF80
N: Skipping acquire of configured file 'main/binary-i386/Packages' as (...)
E: Failed to fetch hhtps://updates.signal.org/desktop/apt/dists/xenial/InRelease
W: Failed to fetch file:/var/cuda-repo-ubuntu2004-11-3-local/Release.gpg The following
signatures couldn't be verified because the public key is not available: NO_PUBKEY
F60F4B3D7FA2AF80
W: Some index files failed to download. They have been ignored, or old ones used instead.
我对 的错误/警告感到担忧/var/cuda-repo-ubuntu2004-11-3-local/Release.gpg
。我已经检查过ls /var/
,有一个较新的 cuda-repo,我刚刚手动安装,但是,我不确定是否删除较旧的 repo。因此,我的问题是:
- 应从中删除过期的、未经验证的目录
/var
,或者 - 有没有其他“干净”的方法来处理这个问题,或者
- 尽管有警告,该 repo 是否仍然相关并且应该被保留?
- 其他...
消除此警告的最佳做法是什么?
我感谢您的帮助!
干杯,
路易斯
答案1
mashuptwice 已经在评论中指出,删除错误的存储库是解决方案。正确执行此操作的解释如下这里.使用像add-apt-repository
和这样的命令行工具。ppa-purge