Thursday, August 19, 2010

Resolve the error E: Could not get lock /var/lib/dpkg/lock



E: Could not get lock /var/lib/dpkg/lock
Overcoming Error E: Could not get lock /var/lib/dpkg/lock when Installing Software,
When you install with apt-get install blablabla suddenly appearing instead
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily Unavailable) E: Unable to lock the administration directory (/ var / lib / dpkg /), is another process using it?.
when asked on the experience turns out that because no application is not installed correctly so that the system forced to lock dpkg

For how to fix this, follow the steps to overcome E: Could not get lock /var/lib/dpkg/lock
- Turn off the process and apt-get aptitude
killall aptitude && killall apt-get

- Off process dpkg and frontend
killall dpkg && killall frontend

- If there is a message "no procces kiled", turn off the melist processes first.
ps ax | grep apt
or
ps ax | grep dpkg

- Then turn off berdasarl id (PID).
kill -9 PIDnya
EXAMPLE who appear like this:

hernawanjr: / home / hernawan # ps ax | grep apt
5683? S 0:00 / bin / bash / usr / bin / su-to-root-X-c / usr / sbin / synaptic
5689? SL 0:00 gksu-u root / usr / sbin / synaptic
5694 pts / 2 Ss 0:00 / bin / su root-c / usr / lib / libgksu / gksu-run-helper "/ usr / sbin / synaptic"
5696 pts / 2 S 0:00 / usr / lib / libgksu / gksu-run-helper / usr / sbin / synaptic
5703 pts / 2 S 0:00 / usr / sbin / synaptic
5737 pts / 1 S 0:00 grep apt
THEN:

hernawanjr: / home / hernawan # kill -9 5683

and so on.


- Remove a file lock that in a system
rm /var/lib/dpkg/lock

- The next live config all
dpkg dpkg - configure-a


dah now can try to install the application again
Overcome all these E: Could not get locked /var/lib/dpkg/lock

No comments:

Post a Comment