In Ubuntu and derivative versions, we may encounter this problem during software installation, when network congestion is slow or connection software is suddenly interrupted due to various reasons during installation, you can exit by pressing Ctrl + C, but dpkg will be locked and cannot install any other software packages, even if you restart the instance, the instance is locked. Recommended reading: Ubuntu14.04 download, installation, configuration related knowledge http://www.linuxidc.com/Linux/2014-04/1003
In Ubuntu and derivative versions, we may encounter this problem during software installation, when network congestion is slow or connection software is suddenly interrupted due to various reasons during installation, you can exit by pressing Ctrl + C, but dpkg will be locked and cannot install any other software packages, even if you restart the instance, the instance is locked.
Recommended reading:
Ubuntu 14.04Download, install, configure related knowledge http://www.linuxidc.com/Linux/2014-04/100370.htm
Ubuntu 14.04: Http://www.linuxidc.com/Linux/2014-04/100352.htm
Ubuntu 14.04 text tutorial on hard drive installation in Windows 7Http://www.linuxidc.com/Linux/2014-04/100983.htm
Here you need to run the command to unlock:
Sudo rm-rf/var/lib/dpkg/lock
Sudo dpkg -- configure-
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-05/101479.htm