Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been experiencing problems with my squid3 recently, I am using 10.04.3 LTS. Configured squid as always have been configuring since 8.04.04, but its not working as it should be.

I've been having issues with bz2 files, in my LAN when I try to do an apt-get update, it just says some indexes could not be downloaded because of a sum hash mismatch.

If you check squid log, for that kind of file it says


Google around I read that's squid cache keeping the files more than usual, so I add this hoping to solve the problem:

refresh_pattern -i \.bz2$       0       0%      60      override-lastmod refresh-ims override-expire

I don't know if that's well written or not, but it doesn't have solve the problem, and know squid log shows,


but the same behaviour of the hash sum mismatch, please if someone could throw a light in here. The only fix to this problem so far is deleting all cache and recreate it every morning, which is far from a solution.

Any help will be greatly apreciate it.


share|improve this question

I was recently reading an IRC log of a conversation between one of squid's authors and one of the Ubuntu archive admins and I believe there are actually issues with the way the archive sets the 'Expires:' header which sometimes causes this problem. It should not ever be a problem with the released version of Ubuntu, so it will only be a problem with -updates/-security and with the current dev release. Basically what happens is squid gets the Packages.bz2 from one mirror, and then later it is updated but your cache doesn't get it, leading to files missing or what appears to be a corrupt Packages.bz2.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.