LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Could not get lock /var/lib/dpkg/lock (https://www.linuxquestions.org/questions/debian-26/could-not-get-lock-var-lib-dpkg-lock-469517/)

thelonius 07-31-2006 06:18 PM

Could not get lock /var/lib/dpkg/lock
 
Hello,

I try to install KDE (I'm in GNOME now), and what I get:

Code:


# aptitude install kdm
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?
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
W: Could not lock the cache file.  Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
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?

I've already installed kde; but then removed it with aptitude remove kde. May be it's for smth.

Thank you.

pljvaldez 07-31-2006 07:01 PM

Are you root?

thelonius 07-31-2006 07:12 PM

Quote:

Originally Posted by pljvaldez
Are you root?

strangely, yes... :scratch: otherwise, it wouldn't run aptitude at all... :D :cool:

HappyTux 07-31-2006 07:15 PM

Try fuser /var/lib/dpkg/lock to see which process has the file in use then kill -9 number_of_the_process to kill it off.

thelonius 07-31-2006 07:34 PM

Quote:

Originally Posted by HappyTux
Try fuser /var/lib/dpkg/lock to see which process has the file in use then kill -9 number_of_the_process to kill it off.

it's ok now, but without my intervention

HappyTux 07-31-2006 07:48 PM

Quote:

Originally Posted by thelonius
it's ok now, but without my intervention

The process that had it locked must have timed out.


All times are GMT -5. The time now is 01:14 PM.