码迷,mamicode.com
首页 > 系统相关 > 详细

How to fix apt-get GPG error NO_PUBKEY Ubuntu 14

时间:2015-06-05 11:55:46      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:

 

技术分享

This morning when I do apt-get update on my new Ubuntu 14.04 server, I got these error messages:

Reading package lists… Done 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 W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

After did some small research on Google, I found a way to overcome this GPG NO_PUBKEY error by downloading the missing key using apt-key tools. The command is as follow:

Command result:

Second command:

Result:

Notice that code 40976EAF437D05B5 and 3B4FE6ACC0B21F32 was taken from the error messages above.

Now you can do apt-get update again and you should have no error anymore.

How to fix apt-get GPG error NO_PUBKEY Ubuntu 14

标签:

原文地址:http://www.cnblogs.com/zhaoyang10/p/4554031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!