In Ubuntu10.10 with sudoapt-getinstallkmymoney2 Installation Software kmymoney2, because the speed is too slow, want to change the software source, directly close the terminal, apt-get but the process is not over, the result terminal prompt: "E: unable to obtain lock/var/lib/dpkg/lock-open (11: Resource temporarily unavailable) E: Unable to lock the management directory (/var/lib/dpkg /), are other processes occupying it?"
In Ubuntu 10.10, when we use sudo apt-get install kmymoney2 to install the software kmymoney2, the system directly closes the terminal because it is too slow to change the software source. apt-get but the process is not finished, result terminal prompt
: "E: unable to obtain the lock/var/lib/dpkg/lock-open (11: The resource is temporarily unavailable)
E: The management directory (/var/lib/dpkg/) cannot be locked. Is there any other process occupying it ?"
Solution: 1. Enter ps-aux on the terminal to list processes. Find the process containing apt '-get and run sudo kill PID directly. Solution.
2. Force unlock, command
Sudo rm/var/cache/apt/archives/lock
Sudo rm/var/lib/dpkg/lock