LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2014, 08:45 PM   #1
ramx
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian jessie/sid 64-bit
Posts: 12

Rep: Reputation: Disabled
/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.
 
Old 08-29-2014, 10:45 PM   #2
ramx
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian jessie/sid 64-bit
Posts: 12

Original Poster
Rep: Reputation: Disabled
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

Last edited by ramx; 08-29-2014 at 10:47 PM.
 
Old 08-29-2014, 11:02 PM   #3
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
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.
 
1 members found this post helpful.
Old 08-29-2014, 11:07 PM   #4
ramx
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian jessie/sid 64-bit
Posts: 12

Original Poster
Rep: Reputation: Disabled
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 View Post
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.

Last edited by ramx; 08-29-2014 at 11:08 PM.
 
Old 08-30-2014, 01:39 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
It looks like you opened Synaptic & xidn't close it before running commans or software update.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg: parse error, in file `/var/lib/dpkg/updates/0004 contact.aprie Linux - General 2 04-17-2012 10:01 PM
[SOLVED] Broken dpkg. Empty /var/lib/dpkg/available file. Shum Debian 6 12-05-2011 10:51 PM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 10:24 AM
apt cannot be upgraded, and problem with /var/lib/dpkg/status San-Raal Debian 9 04-08-2008 08:41 AM


All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration