0

When running apt-get update I receive checksum errors on some of the sources packages. I also note that apt-get clean cannot resolve my local host name.

Please assist.

Arronical
  • 20,241
Hendré
  • 779

2 Answers2

1

This could occur due to issues with the mirror you are using (in this case us.archive.ubuntu.com) Sometimes these issues are quickly resolved and simply trying again is effective. If not you need to edit your /etc/apt/sources.lst file and replace us.archive.ubuntu.com with another up-to-date mirror from this list or perhaps the main server at archive.ubuntu.com

then run sudo apt-get clean (which has nothing to do with your hostname) to clean the apt cache

Then proceed as normal with:

sudo apt-get update; sudo apt-get upgrade

Elder Geek
  • 36,752
0

This will remove the package lists and rebuild them. Sometimes they get corrupted (they are building with deltas) during syncing the mirrors.

sudo rm /var/lib/apt/lists/*
sudo apt-get update
jet
  • 7,452