当前位置: 首页>>技术教程>>正文


gpg:密钥块资源’/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg’:资源限制

, ,

问题描述

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

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 <[email protected]>” niet veranderd
gpg: sleutel FBB75451: “Ubuntu CD Image Automatic Signing Key <[email protected]>” niet veranderd
gpg: sleutel C0B21F32: “Ubuntu Archive Automatic Signing Key (2012) <[email protected]>” niet veranderd
gpg: sleutel EFE21092: “Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>” 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 <[email protected]>" not changed
gpg : key FBB75451 : "Ubuntu CD Image Automatic Signing Key <[email protected]>" not changed
gpg : key C0B21F32 : "Ubuntu Archive Automatic Signing Key (2012 ) <[email protected]>" not changed
gpg : key EFE21092 : "Ubuntu CD Image Automatic Signing Key (2012 ) <[email protected]>" 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


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

\\n

WARNING: The following packages can not be authenticated!

\\n

最佳回答

如果您预安装 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

这意味着您必须 re-import 所有密钥…

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

Click on Advanced
Select Try to import all missing GPG keys

嘭!您应该可以恢复业务,并且所有存储库都可以正常工作!

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/14391.html,未经允许,请勿转载。