Unable to obtain lock/var/lib/APT/lists/lock-open (11: resou...

Source: Internet
Author: User

After ubantu 10.04 is installed and network connection is configured, the error message "reload" cannot be displayed when updating the software source is found! Similarly, when "sudo apt-Get Update" is used to update the software source, "E: cannot obtain the lock/var/lib/APT/lists/lock-open (11: resource temporarily unavailable) "error message! At this time, I was shocked. How can I make a mistake? I have not modified any configuration yet! I believe many of my friends have encountered the same problem. Now let's share my solutions. (For reference only)

First, explain the cause of the problem: the newly installed ubantu system lacks many software sources. In this case, the system automatically starts the software source update process "apt-get ", and it will survive directly. Because it occupies the system lock when the software source is updated (hereinafter referred to as "system update lock ", this lock file is in the "/var/lib/APT/lists/" Directory), and when a new apt-Get process is generated, the error message "E: cannot obtain lock/var/lib/APT/lists/lock-open (11: Resource temporarily unavailable)" is displayed because the system update lock is not obtained! Therefore, as long as the original apt-Get process is killed and the new apt-Get process is activated, the new lide software manager can work normally.
Done!

In this case, you can follow the steps below to solve the problem:
1. Enter the following command: "PS-Aux> temp.txt". Press enter to confirm. In this case, "warning" appears, but ignore it.
2. Enter the following command: "grep-N apt-Get temp.txt" and press enter to confirm. Then, find the PID of the apt-Get process from the command output.
3. Enter the following command: "sudo kill <pid> ".
4. Complete.

Or:
If the error message is displayed: e: cocould not get lock/var/lib/dpkg/lock-open (11 Resource temporarily unavailable)

Input
Sudo RM/var/lib/APT/lists/lock

You can. To be honest, I use the second one, which is too simple! It works!

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.