ubuntu: apt-get not working on new install.

On a fresh install I try to update and upgrade the server and get the following error:

Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com

Solution:

apt-get clean
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/partial/*
apt-get clean
apt-get update
apt-get upgrade

Leave a Reply

Your email address will not be published. Required fields are marked *