Ubuntu, apt-get update: Sources.bz2 Hash Sum mismatch, aptitude update: no errors
After installing VirtualBox OSE when I run "sudo apt-get update" it returns the following error:
Code:
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/intrepid-updates/main/source/Sources.bz2 Hash Sum mismatch I have also tried "sudo apt-get update -o Acquire::http::No-Cache=True" and "sudo apt-get update -o Acquire::BrokenProxy=true" and received the same error. I've also tried switching to the main server and to loads of different servers around the globe to no avail. The strange thing is that "sudo aptitude update" completes without an error! Operating system: Ubuntu 8.10 (Intrepid Ibex) Machine: Compaq Presario 2500 32 bit laptop 1. How do I fix this problem? 2. What's the difference between apt-get and aptitude? 3. Does "sudo aptitude update" do the same job as "sudo apt-get update"? Thanks for your consideration. -- Aidin Sabetian The contents of /etc/apt/sources.list: Code:
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted |
Switched to the main server BADSIG 40976EAF437D05B5 <ftpmaster@ubuntu.com>
I again switched to the main server, now I get a different error when running "sudo apt-get update" and "sudo aptitude update":
Code:
Reading package lists... Done I went to System > Administration > Software Sources > Authentication tab, then deleted every key, and restored the default keys and got the same error again. |
SOLVED: apt-get update: Sources.bz2 Hash Sum mismatch, aptitude update: no errors
I resolved the problem, here are the details:
The main server is overloaded and too busy serving probably thousands of users worldwide. hence the error. In System > Administration > Software Sources > Download from, I switched to an Italian mirror (http://giano.com.dist.unige.it/ubuntu) and ran "sudo apt-get update", the problem went away! |
The problem arose again after installing the adobe flash plugin
The problem arose again after installing the adobe flash plugin.
"sudo apt-get update" using the mirror "http://giano.com.dist.unige.it/ubuntu" returns: Code:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://giano.com.dist.unige.it intrepid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> Code:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://giano.com.dist.unige.it intrepid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> "sudo apt-get update" using the main server returns: Code:
W: GPG error: http://archive.ubuntu.com intrepid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> Code:
W: GPG error: http://archive.ubuntu.com intrepid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> the output of "sudo apt-get update" using the mirror "http://giano.com.dist.unige.it/ubuntu": Code:
0% [Working] |
the output of "sudo apt-get update" using the main server":
Code:
0% [Working] |
same problem after reinstalling Ubuntu
I had this problem before but even after reinstalling Ubuntu I'm still getting the same errors.
I tried removing the authentication keys in "Software Sources" and restored the defaults to no avail |
FIXED: Solution
FIXED: Solution:
The problem was that my ISP cached the files and forcefully overrode the "expire" header. The *only* solution is using a proxy or VPN to update the repository. before "sudo apt-get update", issue this command: Code:
$ export http_proxy=http://proxy_server:port/ Code:
$ export http_proxy=http://127.0.0.1:8080/ Code:
$ unset http_proxy Code:
$ echo $http_proxy Alternatively you can use a proxy-wrapper for channelling "apt-get" transactions through a proxy, "tsocks" is a very nice proxy-wrapper. Install tsocks, configure it, and then enter: Code:
$ tsocks sudo apt-get update |
Solved: again without changing /etc/apt/source.list or setting up a proxy
This error occurs also for me every time a new virtualbox package is released. I run an apt-cacher-ng apt proxy on our LAN and no matter how I configure it or delete the relevant cache files on the server, it doesn't clear the problem at the client. I have however found a solution that always resolves the issue. Whilst the problem is probably a server side problem, it can only be resolved on the client side:
Code:
root@newt:/var/lib/apt/lists# ls -l *virt* Code:
sudo rm -vf /var/lib/apt/lists/*virtualbox* |
All times are GMT -5. The time now is 03:44 AM. |