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!