I am using Ubuntu 12.04, 64 bit virtual machine within a company network which obviously has firewalls. When I try to run sudo apt-get update or sudo apt-get update --fix-missing I get this error:
(Assume archive.ubuntu.com before ever _ubuntu)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_main_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial
/_ubuntu_dists_precise_main_binary-amd64_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_restricted_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch /ubuntu/dists/precise/main/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_main_i18n_Index
W: Failed to fetch /ubuntu/dists/precise/multiverse/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_i18n_Index
W: Failed to fetch /ubuntu/dists/precise/restricted/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_restricted_i18n_Index
W: Failed to fetch /ubuntu/dists/precise/universe/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_i18n_Index
W: Failed to fetch bzip2:/var/lib/apt/lists/partial
/_ubuntu_dists_precise-updates_restricted_source_Sources Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
I have tried removing /var/lib/apt/lists
as mentioned in other posts and it does not work. The actual problem is that the company firewall is corrupting the download traffic which gives the hash sum mismatch. This is a known issue as seen here as well:
https://unix.stackexchange.com/questions/116641/how-do-you-fix-apt-get-update-hash-sum-mismatch
So, is there any work around to update packages for me and many Ubuntu users behind company firewalls?