我尝试更新,但出现此错误
该框中的错误信息如下:
W:GPG error: http://extras.ubuntu.com precise Release:
The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>,
W:Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/source/Sources 404 Not Found,
W:Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found,
E:Some index files failed to download. They have been ignored, or old ones used instead.
我的网络连接正常。
尝试后
$ sudo apt-get install ppa-purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
ppa-purge is already the newest version.
The following packages were automatically installed and are no longer required:
language-pack-zh-hans language-pack-kde-en language-pack-kde-zh-hans
language-pack-kde-en-base kde-l10n-engb kde-l10n-zhcn
language-pack-zh-hans-base firefox-locale-zh-hans
language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo ppa-purge ppa:unity-team/hud
Updating packages lists
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>
W: Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning: apt-get update failed for some reason
PPA to be removed: unity-team hud
Warning: Could not find package list for PPA: unity-team hud
我试过了
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.v6Ucus0B10 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
gpg: requesting key 3E5C1192 from hkp server keyserver.ubuntu.com
gpg: key 3E5C1192: "Ubuntu Extras Archive Automatic Signing Key <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
然后开始相同的程序,但无用。
答案1
我遇到了同样的问题,因此我采取了以下措施来解决问题:
- 打开软件源来自 dash
- 切换到其他软件选项卡,取消选中导致问题的代码,在我的情况下是http://ppa.launchpad.net/myunity...
然后运行以下命令:
sudo apt-get clean
sudo apt-get update
你应该能够运行更新程序
答案2
您的计算机上有 Unity 团队 PPA,但您真的不希望在 12.04 发布版本中出现它。
因此,要解决此问题,请按照此处概述的说明进行操作:
然后,为了修复 GPG 错误,我们这样做:
解决 apt-get BADSIG GPG 错误的最简单方法是什么?
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
然后再试一次。
答案3
我认为我找到了一种更简单的方法,适用于东芝 c660 2e3 中的 Ubuntu 12.04 64 位。我遵循了以下命令:
sudo apt-get clean
sudo apt-get update
这表明我的 PPA 没有更新,它也停止了所有其他更新,并显示红色三角形警告标志。
于是我打开软件更新程序,取消选中两个 PPA,只保留 Canonical 的那个,刷新后它又开始正常更新了。我还选择了我所在地区最可接受的镜像。
答案4
只需打开更新管理器,在设置(左下角)下的身份验证选项卡上选择“恢复默认值”,之后一切都恢复正常。