手机
当前位置:查字典教程网 >操作系统 >Ubuntu/Debian >apt-get update出现NO_PUBKEY错误的解决方法
apt-get update出现NO_PUBKEY错误的解决方法
摘要:该问题也会出现在Ubuntu其他的版本中,实际上在商家上线的系统模版中或多或少都有一些类似的细节错误,值得我们在使用中注意并修正。当然这一类...

该问题也会出现在Ubuntu其他的版本中,实际上在商家上线的系统模版中或多或少都有一些类似的细节错误,值得我们在使用中注意并修正。当然这一类的问题实际上并不算大,只是解决起来可能需要一些搜索工作。

apt-get update返回NO_PUBKEY错误的解决方法

错误代码:

W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

运行如下命令解决

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5

实际上类似的问题无论Key是什么只需要使用相同的代码替换到相对的Key的位置即可。

每一条命令的返回结果类似

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.w8njroYZkC --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5

gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com

gpg: key 437D05B5: public key "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" imported

gpg: Total number processed: 1

gpg: imported: 1

接下来再apt-get update应该就不会出现类似的错误了。

【apt-get update出现NO_PUBKEY错误的解决方法】相关文章:

ubuntu13.04大屏幕分辨率只支持800*600的解决方案分享

ubuntu12.04误删dpkg文件夹的解决方法

Ubuntu 下忘记用户名和登录密码的解决方法

Ubuntu中自定义sudo密码错误提示的技巧

ubuntu文本编辑器gedit中文乱码的解决方法

ubuntu13.04安装chrome依赖问题解决方法

Ubuntu下开启vnc的tip方法

ubuntu 提示no such device grub rescue的解决方法

Ubuntu 14.04 64位搭建ADT开发环境的方法

ubuntu12.04开机黑屏解决方法

精品推荐
分类导航