7

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?

Arkantos
  • 181

2 Answers2

1

I think your options are to:

  1. Update from another location, off line. See How can I update Ubuntu offline without using Synaptic or Keryx?

  2. Talk to your sysadmin and have them explore a solution to the firewall.

Panther
  • 104,528
0

In case above solution won't work try this one below:

Remove the existing trusted GPG key from the folder /etc/apt/trusted.gpg.d/

Then run the command: sudo apt-key update

Then try to run: sudo apt-get update

Navin
  • 9
  • 1