Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active August 18, 2019 09:04
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 jadia/fc5242119d4ba596d6ee2f77471ee75c to your computer and use it in GitHub Desktop.
Save jadia/fc5242119d4ba596d6ee2f77471ee75c to your computer and use it in GitHub Desktop.
dpkg lock held by daily update ubuntu 18 server
root@acer:/home/stephen# apt install htop
 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
 E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

disable that headache with:

sudo systemctl disable apt-daily.timer && \
sudo systemctl disable apt-daily-upgrade.timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment