Focus on cloud service provider activities
Notes on website operation and maintenance

Ubuntu has a "Could not get lock/var/lib/dpkg/lock" problem

Today, in the Ubuntu system environment, the error message "Could not get lock/var/lib/dpkg/lock" appears when you update the source software or install other software.

 Ubuntu has a "Could not get lock/var/lib/dpkg/lock" problem

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?

terms of settlement:

rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock

Delete the two files, and then execute the required software after apt get update - y upgrades the source to solve the problem.

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Ubuntu has a "Could not get lock/var/lib/dpkg/lock" problem