How to unlock APT Package Manager in Ubuntu and derivative versions

Source: Internet
Author: User
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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.