Rayed's Real Life

FreeBSD, Linux, Apache, PHP, MySQL, and very little of my life ;)

Error when updating Ubuntu

leave a comment

Lately I migrated all of my server to Ubuntu server, what I really loved about it the easy of updating the system, all I need to is:

$ sudo aptitude update # to update packages meta data
$ sudo aptitude safe-upgrade # to perform the actual upgrade

But sometimes on of the package information meta data files get corrupted, and I will get this error:

$ sudo aptitude update
:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com hardy-security 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

To solve this problem, try:

sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update -o Acquire::http::No-Cache=true

Written by Rayed

January 15th, 2010 at 11:04 am

Posted in Uncategorized

Tagged with , ,

Leave a Reply

Powered by WP Hashcash