Shami's Blog

DevOps because uptime is not optional

'apt-get update' Failing After A Fresh Ubuntu 12.04 Installation

So I’m currently working with a customer that requires Ubuntu 12.04 for their servers since their apps were built and tested on that version, so every new install I run into the following issue

1W: Failed to fetch bzip2:/var/lib/apt/lists/partial/jo.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages  Hash Sum mismatch

This can be easily solved using the following commands, taken from here

1sudo rm /var/lib/apt/lists/* -vf
2sudo apt-get clean
3sudo apt-get autoremove
4sudo apt-get update

About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.

Categories