Skip to content

Instantly share code, notes, and snippets.

@purarue
Created May 1, 2019 05:39
Show Gist options
  • Save purarue/7f4a9bfd16b8fdb37b5f5eac5cfc5e0b to your computer and use it in GitHub Desktop.
Save purarue/7f4a9bfd16b8fdb37b5f5eac5cfc5e0b to your computer and use it in GitHub Desktop.
This kills all apt processes, and removes and reconfigures dpkg locks and starts apt upgrade on a new VM
sudo killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt update && sudo apt upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment