Ubuntu 9.04 Jaunty – Hash Sum Mismatch update error solved

by manojgumber

In jaunty, when I tried to update the package list by

sudo apt-get update

I got the following error about Hash Sum Mismatch


Failed to fetch http://archive.ubuntu.com/ubuntu/dis...4/Packages.bz2 Hash Sum mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...ce/Sources.bz2 Hash Sum mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...4/Packages.bz2 Hash Sum mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...ce/Sources.bz2 Hash Sum mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...4/Packages.bz2 Hash Sum mismatch
Some index files failed to download, they have been ignored, or old ones used instead.

Again after some bit of searching , I found the solution to the problem.Here it is-

Use the following

sudo apt-get update -o Acquire::http::No-Cache=True

You can make this permanent by appending the following lines in /etc/apt/apt.conf or creating the /etc/apt/apt.conf file if it does not exist already.

APT
{
// Options for the downloading routines
  Acquire
  {
    http
    {
      No-Cache "true";
    };
  };
}

or if it does not work , try using

sudo apt-get update -o Acquire::BrokenProxy=true

To make this permanent , append following lines to /etc/apt/apt.conf or create the file if necessary.

APT
{
// Options for the downloading routines
  Acquire
  {
            BrokenProxy "true";
  };
}
Advertisements