Skip to content

Instantly share code, notes, and snippets.

@esparta
Created October 24, 2013 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esparta/7129198 to your computer and use it in GitHub Desktop.
Save esparta/7129198 to your computer and use it in GitHub Desktop.
Repair broken apt-get
##Howto: Repair Broken apt-get update on debian/ubuntu
sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update
@Drjacky
Copy link

Drjacky commented Dec 22, 2016

apt-get: error while loading shared libraries: libapt-pkg.so.5.0: cannot open shared object file: No such file or directory

@loxatsonnenberg
Copy link

same error as Drjacky after apt-get clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment