Hi All,
So, sometimes, just when you think that apt-cacher-ng is your amazing solution, or you have managed to get apt-get going through a proxy, you get hit by something like this:
Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/main/source/Sources.bz2 Hash Sum mismatch
That's no good is it? You try wget and that works fine, but apt just will not work. Here's how to fix it. Unfortunately I don't know what causes it. For me it has worked for ages and just broke one day and refused to work. Try the following (run as root):
touch /etc/apt/apt.conf.d/no-cache
nano /etc/apt/apt.conf.d/no-cache
type this line in and save it:
Acquire::http {No-Cache=True;};
The run:
apt-get update
This should now work with no problems.
Thanks for reading.
Trev