Ubuntu更新时提示签名错误的解决方法


错误信息:

W: GPG error: http://archive.ubuntu.com  Release: The following
signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic
Signing Key <ftpmaster@ubuntu.com>
W: You may want to run apt-get update to correct these problems

解决方法:

1、删除/var/lib/apt/lists/partial目录下的文件.

2、确保 /etc/apt/sources.list 只有类似于 "http://archive.ubuntu.com/ubuntu/"的源

3、执行sudo apt-get update -o Acquire::http::No-Cache=true命令

4、如果第三步没有报错,则可以继续执行sudo apt-get update

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s