Shami's Blog

Sysadmin, Because Even Developers Need Heroes

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

2016-05-02

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

W: 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

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get autoremove
sudo 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.

twitter linkedin