LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /var/lib/dpkg problem (https://www.linuxquestions.org/questions/linux-newbie-8/var-lib-dpkg-problem-4175516807/)

ramx 08-29-2014 07:45 PM

/var/lib/dpkg problem
 
Hello everyone

finally, a good friend told me that if I wanted to start exploring the world of networks first thing I had to do was install Debian jessie LinuxOS specifically use 64bit.

I like to click here and there and it seems to have created a problem with the apt-get upgrade.

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 tried a few commands:

sudo rm / var / lib / apt / lists / lock
sudo rm / var / cache / apt / archives / lock

but it has not worked.

I hope you can help me as soon as possible.
Thank you in advance.

ramx 08-29-2014 09:45 PM

i do this, and problem resolve.
copy from ------> Old 02-10-11, 09:12 AM #12
archtoad6
Senior Member

N.B. I ran all these as root.

Checked for "is another process using it?":
Code:

ps aux | egrep -i 'apt|ftp|kpack|dpkg' | less

I killed them all anyway, just to be sure:
Code:

killall -9 apt* kpackage dpkg

If you ever use synaptic (it's removed from my system), you should make that:
Code:

killall -9 apt* kpackage dpkg synaptic

Having confirmed that there were no "rogue" pkg. managers running, I checked, removed, & rechecked the lock file:
Code:

ls -l /var/lib/dpkg/lock
rm -f /var/lib/dpkg/lock
ls -l /var/lib/dpkg/lock

Randicus Draco Albus 08-29-2014 10:02 PM

Quote:

finally, a good friend told me that if I wanted to start exploring the world of networks
If you are new to Debian, starting with Testing is not the best idea. It is meant for people who are already familiar with the system. The best course of action is to use Stable, until familiar enough with the system to use development branches.

If by networks you mean a home network, not a problem. If, on the other hand, you mean a server, using Testing is definitely not wise. For a server, stability is of paramount importance. In that case, Stable is the only reasonable option.

ramx 08-29-2014 10:07 PM

im doing my homework reading the debian handbook.
i guess i can try with this one.
is not for work, home use only.
but thanks for the advice.

Quote:

Originally Posted by Randicus Draco Albus (Post 5229589)
If you are new to Debian, starting with Testing is not the best idea. It is meant for people who are already familiar with the system. The best course of action is to use Stable, until familiar enough with the system to use development branches.

If by networks you mean a home network, not a problem. If, on the other hand, you mean a server, using Testing is definitely not wise. For a server, stability is of paramount importance. In that case, Stable is the only reasonable option.


EDDY1 08-30-2014 12:39 AM

It looks like you opened Synaptic & xidn't close it before running commans or software update.


All times are GMT -5. The time now is 09:56 PM.