forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

apt-get error
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Console
View previous topic :: View next topic  
Author Message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 7:22 am    Post subject: apt-get error Reply with quote

Trying to do an apt-get update from the console, and I get this message..

"could not get lock /var/lib/apt/lists/lock -open (11 Resource temporarily unavailable) Unable to lock the list directory."


Now I am using this on a workstation at work behind a firewall, but I have put in all the proxy settings I can think of and can get to the outside world without any trouble.
I have also added these as repositories..

deb http://www.debian-multimedia.org/ stable main
deb http://www.archlug.org/apt/ xandros4 archlug
deb http://www.archlug.org/apt/ xandros4 xorid/andrew
deb http://www.archlug.org/apt/ xandros4 xorid/matty
deb http://www.archlug.org/apt/ xandros4 xorid/uploads

Any help or avenue to travel is appreciated ahead of time.
AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
bryantrv
Xandrosianschwing


Joined: 24 Mar 2005
Posts: 2898
Location: DeLand, Florida US

PostPosted: Wed Jul 19, 2006 8:04 am    Post subject: Reply with quote

I usually get that when either I am not running as root, or something else is using it (like Xandros Networks or Synaptic).
_________________
--
Chris Bryant
http://www.kindofpeckish.com
http://opensourcemachine.org
http://bryantrv.com
http://rx4rv.com
Back to top
View user's profile Send private message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 8:17 am    Post subject: Reply with quote

I am running as root because I su root before I run apt-get,

I can't get synaptic because it wants to run apt-get update first, which I can't.





AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
entdiablo
Xandrosianling
Xandrosianling


Joined: 28 Jan 2006
Posts: 378
Location: Memphis

PostPosted: Wed Jul 19, 2006 8:28 am    Post subject: Reply with quote

bryantrv is correct. This error means that you have another prog trying to do the same thing

ie, you have XN or synaptic open at same time, or trying to apt-get with XN/syn open.
_________________
X4 Premium, Arch 0.8 Voodoo
Linux User #403335
Back to top
View user's profile Send private message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 8:35 am    Post subject: Reply with quote

Okay..how do I remedy this situation? How do I disable the proc so that apt-get will work?



AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
entdiablo
Xandrosianling
Xandrosianling


Joined: 28 Jan 2006
Posts: 378
Location: Memphis

PostPosted: Wed Jul 19, 2006 8:48 am    Post subject: Reply with quote

One sure way is to reboot.

Only run one one at a time (either XN, Synaptic, or apt).
_________________
X4 Premium, Arch 0.8 Voodoo
Linux User #403335
Back to top
View user's profile Send private message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 8:53 am    Post subject: Reply with quote

I have restarted my computer every morning for the last three days, and still get the same errors. I have also looked at processes and still can't see anything. How can I make one run and not the others. I understand the theory, but not the how.




AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
entdiablo
Xandrosianling
Xandrosianling


Joined: 28 Jan 2006
Posts: 378
Location: Memphis

PostPosted: Wed Jul 19, 2006 9:51 am    Post subject: Reply with quote

Add synaptic to your firewall outgoing and try it again.

Not sure why your problem exsists, but I am quite sure we can all figure it out.
_________________
X4 Premium, Arch 0.8 Voodoo
Linux User #403335
Back to top
View user's profile Send private message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 9:58 am    Post subject: Reply with quote

Don't you normally have to do an "apt-get update" before it will let you do "apt-get install synaptic" at least that is what it is telling me, and without being able to do the first, I can't do the latter.


Hopefully we can figure this out as well. Xandros Networks keeps telling me there are no updates, so I know I am getting to the outside world. I have internet and am getting emails as well. I am confused.


AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
pitheris
Xandrosian
Xandrosian


Joined: 07 Mar 2006
Posts: 202
Location: USA

PostPosted: Wed Jul 19, 2006 10:08 am    Post subject: Reply with quote

What do you get when you list the file? Does it exist?:

# ls -l /var/lib/apt/lists/lock

It should be a zero byte file something like this:
-rw-r----- 1 root root 0 2006-07-19 10:35 /var/lib/apt/lists/lock

It looks like the lock file may be corrupted because some process was interrupted. Try renaming the lock file:
# cd /var/lib/apt/lists/
# mv lock oldlock


A new lock file should be automaticly created when you do an apt-get update.
Back to top
View user's profile Send private message
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 10:20 am    Post subject: Reply with quote

pitheris wrote:
What do you get when you list the file? Does it exist?:

# ls -l /var/lib/apt/lists/lock

It should be a zero byte file something like this:
-rw-r----- 1 root root 0 2006-07-19 10:35 /var/lib/apt/lists/lock

It looks like the lock file may be corrupted because some process was interrupted. Try renaming the lock file:
# cd /var/lib/apt/lists/
# mv lock oldlock


A new lock file should be automaticly created when you do an apt-get update.


Did this, ran apt-get and I got "connecting to xnv4.xandros.com(64.40.114.226) and then the connection times out.


AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
judyz
Xendrosian
Xendrosian


Joined: 23 Jan 2005
Posts: 1243
Location: Brantford Ontario

PostPosted: Wed Jul 19, 2006 11:38 am    Post subject: Reply with quote

Sounds like apt-get is being blocked by the Firewall. You probably need to specify the http proxy and the authentication parameters in the /etc/apt/apt.conf file. This is the main configuration file for apt.

There is some info on it here.

http://www.shabdar.ws/content/view/23/27/

I hope this helps.
_________________
Judyz
Never try to teach a pig to sing. It wastes your time, and it annoys the pig.
Xandros 4 Premium and Every Other OS I Can Get.
Ontario, Canada
Back to top
View user's profile Send private message Visit poster's website
KrGAce
Xplorer


Joined: 15 Jul 2006
Posts: 24
Location: Vermont

PostPosted: Wed Jul 19, 2006 12:07 pm    Post subject: Reply with quote

there is only one line in apt.conf and it reads.

"APT::Cachelimit 10000000;"




and that's it.


AceMan
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
entdiablo
Xandrosianling
Xandrosianling


Joined: 28 Jan 2006
Posts: 378
Location: Memphis

PostPosted: Wed Jul 19, 2006 12:48 pm    Post subject: Reply with quote

That's all that supposed to be there, from what I understand.
_________________
X4 Premium, Arch 0.8 Voodoo
Linux User #403335
Back to top
View user's profile Send private message
pitheris
Xandrosian
Xandrosian


Joined: 07 Mar 2006
Posts: 202
Location: USA

PostPosted: Wed Jul 19, 2006 1:50 pm    Post subject: Reply with quote

entdiablo wrote:
That's all that supposed to be there, from what I understand.


You don't really need anything in apt.conf, but you can add some options.
A sample apt.conf file here:
http://qref.sourceforge.net/Debian/reference/examples/apt.conf
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Console All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group