如果我遗漏了关键信息,或者没有遵守发帖规则,我提前表示抱歉。我对这些都很陌生。
我最近安装了 Ubuntu 14.0.4 作为 Windows 7 的双启动。我遇到了一个问题。不确定我做了什么导致了这个问题。当我运行时sudo apt-get update
,我收到以下错误:
...
Fetched 67.5 kB in 5s (12.2 kB/s)
Reading package lists... Done
W: GPG error: dl.google.com stable Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: GPG error: us.archive.ubuntu.com trusty Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: GPG error: us.archive.ubuntu.com trusty-updates Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: GPG error: us.archive.ubuntu.com trusty-backports Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: GPG error: extras.ubuntu.com trusty Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: security.ubuntu.com trusty-security Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: Failed to fetch security.ubuntu.com/ubuntu/dists/trusty-security/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
如果需要其他信息,请告诉我。谢谢您的帮助!
答案1
我分两步解决了同样的问题:
- 已安装 debian-keyring(sudo apt-get 安装 debian-keyring)
- 再次运行 apt-get update,并针对每个缺少的密钥运行(sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXX)
希望这可以帮助
答案2
从仪表板打开软件和更新应用程序并选择“其他软件选项卡”。
查找条目security.ubuntu.com/ubuntu/dists/trusty-security/Release
取消选中或删除此项,然后打开终端并运行
sudo apt-get update
它现在应该可以工作了,你只是安装了一个无效的软件仓库。
答案3
我刚刚遇到了同样的问题。GPG 密钥错误,按上述方法添加密钥,问题仍然存在。
备份 /etc/apt,然后用此处的文件替换 sources.list 文件github 可信默认来源
已删除 trust.gpg 文件。已重新启动...
现在,GPG 错误“gpgv 安装了吗?”(此错误类型不显示密钥。)
点击“软件更新程序”设置、身份验证选项卡,恢复默认值。GPGV 再次工作,软件更新也正常工作,必须手动添加 1 个密钥,现在终端中的 sudo apt-get update 没有错误。