Skip to content

Instantly share code, notes, and snippets.

@hokiegeek2
Last active February 1, 2023 10:15
Show Gist options
  • Select an option

  • Save hokiegeek2/cec43832e4e0d09a754737a55deb9e19 to your computer and use it in GitHub Desktop.

Select an option

Save hokiegeek2/cec43832e4e0d09a754737a55deb9e19 to your computer and use it in GitHub Desktop.
# https://itsfoss.com/fix-ubuntu-install-error/
# try this first
sudo killall apt-get
# if above does not work, try the following in order
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
# finally, try this
pid=$(lsof /var/lib/dpkg/lock-frontend0
# kill -9 pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment