gpg:关键块资源'/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg':资源限制


18

无论我做什么,都会收到以下错误:

gpg: keyblock resource ‘/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg’: resource limit

原始错误(荷兰语)

原始荷兰语

sudo apt-get -f install
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd       
De status informatie wordt gelezen... Klaar
0 pakketten opgewaardeerd, 0 pakketten nieuw geïnstalleerd, 0 te verwijderen en 12 niet opgewaardeerd.
1 pakketten niet volledig geïnstalleerd of verwijderd.
Door deze operatie zal er 0 B extra schijfruimte gebruikt worden.
Instellen van apt (0.9.9.1~ubuntu3.1) ...
gpg: sleutelblok bronnen ‘/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg’: resource limit
gpg: sleutelblok bronnen ‘/etc/apt/trusted.gpg.d//webupd8team-themes.gpg’: resource limit
gpg: sleutelblok bronnen ‘/etc/apt/trusted.gpg.d//webupd8team-tor-browser.gpg’: resource limit
gpg: sleutelblok bronnen ‘/etc/apt/trusted.gpg.d//wfg-0ad.gpg’: resource limit
gpg: sleutelblok bronnen ‘/etc/apt/trusted.gpg.d//yorba-ppa.gpg’: resource limit
gpg: sleutel 437D05B5: “Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>” niet veranderd
gpg: sleutel FBB75451: “Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>” niet veranderd
gpg: sleutel C0B21F32: “Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>” niet veranderd
gpg: sleutel EFE21092: “Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>” niet veranderd
gpg: Totaal aantal verwerkt: 4
gpg:              Onveranderd: 4
dpkg: error processing apt (--configure):
 subproces installed post-installation script gaf een foutwaarde 2 terug
Fouten gevonden tijdens behandelen van:
 apt
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是全部的原始错误:

谷歌翻译

sudo apt- get- f install
Reading package lists ... Done
Building dependency tree
The status information is read ... Ready
0 packages upgraded , 0 newly installed, 0 to remove and 12 not upgraded .
1 not fully installed or removed.
Through this operation, 0 B of additional disk space will be used .
Setting up apt ( 0.9.9.1 ~ ubuntu3.1 ) ...
gpg : key block sources '/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg' :resource limit
gpg : key block sources '/etc/apt/trusted.gpg.d//webupd8team-themes.gpg': resource limit
gpg : key block sources '/etc/apt/trusted.gpg.d//webupd8team-tor - browser.gpg ' : resource limit
gpg : key block sources '/etc/apt/trusted.gpg.d//wfg-0ad.gpg': resource limit
gpg : key block sources '/etc/apt/trusted.gpg.d//Yorba-ppa.gpg': resource limit
gpg : key 437D05B5 : "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg : key FBB75451 : "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
gpg : key C0B21F32 : "Ubuntu Archive Automatic Signing Key (2012 ) <ftpmaster@ubuntu.com>" not changed
gpg : key EFE21092 : "Ubuntu CD Image Automatic Signing Key (2012 ) <cdimage@ubuntu.com>" not changed
gpg : Total number processed : 4
gpg : unchanged : 4
dpkg : error processing apt (--configure) :
 subprocess installed post-installation script returned error 2 back
Errors were encountered while processing :
 apt
E : Sub -process/usr/bin/dpkg returned an error code ( 1 )

我试图解决的问题:

  • sudo apt-get autoremove
  • sudo apt-get clean
  • sudo apt-get check
  • sudo dpkg --configure -a
  • sudo apt-get -f install

并且: sudo apt-mark hold apt; sudo apt-get -f install


当尝试安装任何东西时,我也会得到以下信息:

警告:以下软件包无法通过身份验证!


请翻译错误报告。
Avinash Raj 2014年

@AvinashRaj,请参阅我的更新问题!
blade19899 '04

我不确定,但以下错误似乎相关。它们还包含一些PPA。bugs.launchpad.net/ubuntu/+source/apt/+bug/1263540 bugs.debian.org/cgi-bin/bugreport.cgi?bug=733028
LiveWireBT

1
请运行命令sudo env LC_ALL=C apt-get -f install以英文显示消息。将错误消息自动翻译回英语比任何东西都更令人困惑,因为确切的措辞很重要。
吉尔(Gilles)'所以

4
我修复它的方法是删除ppas,然后从/etc/apt/trusted.gpg.d中删除一些(不需要的)gpg文件。我认为这个问题应该重新讨论。
Swarnendu Biswas 2014年

Answers:


8

如果您预装了webupd8团队的y-ppa-manager,您的生活将会变得更加轻松

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo update && sudo apt-get install y-ppa-manager

然后,您可以通过执行以下操作来删除或备份现有的gpg:

sudo rm /etc/apt/trusted.gpg.d/*
sudo apt-get update

现在您将看到类似以下内容:

W: GPG error: http://ppa.launchpad.net wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://ppa.launchpad.net wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://ppa.launchpad.net wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://ppa.launchpad.net vivid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

这意味着您将不得不重新导入所有密钥...

现在启动y-ppa-manager应用程序

Click on Advanced
Select Try to import all missing GPG keys

AM!您应该恢复正常工作,所有存储库都可以正常工作!


谢啦。多数民众赞成在技巧。反正我没有这个限制。
ViBE 2015年

为什么文件夹中的所有文件都不仅仅是问题所在?也许 sudo rm /etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg足够了。
tigerjack89

0

我尝试了@AB提供的解决方案,但效果不佳,但我设法进行了修改。我安装了y-ppa-manager

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo update && sudo apt-get install y-ppa-manager

启动它:

sudo y-ppa-manager

然后:管理PPA>删除所有包含的PPA webupd8team (我有4个PPA ),然后关闭y-ppa = manager。

在控制台中,我重新添加了它们。例如:

sudo add-apt-repository ppa:webupd8team/java -y
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y
....
....

我做了一个sudo apt-get update,一切顺利。没有错误了。


0

我使用以下命令自动安装所有缺少的密钥:

sudo apt install add-apt-key -y
sudo apt-get update 2>&1 >/dev/null | awk '/InRelease:.*not available: NO_PUBKEY/{print "sudo add-apt-key "$NF}' | sh -x

这是示例输出:

+ sudo add-apt-key 4C1CBE14852541CB
gpg: requesting key 852541CB from hkp server keyserver.ubuntu.com
gpg: key 852541CB: "Launchpad PPA for Panda Jim" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
OK
+ sudo add-apt-key 03647209B58A653A
gpg: requesting key B58A653A from hkp server keyserver.ubuntu.com
gpg: key B58A653A: "Launchpad PPA for Unit 193" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
OK

希望这可以帮助。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.