| View previous topic :: View next topic |
| Author |
Message |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 7:22 am Post subject: apt-get error |
|
|
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 |
|
 |
bryantrv Xandrosianschwing
Joined: 24 Mar 2005 Posts: 2898 Location: DeLand, Florida US
|
|
| Back to top |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 8:17 am Post subject: |
|
|
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 |
|
 |
entdiablo Xandrosianling

Joined: 28 Jan 2006 Posts: 378 Location: Memphis
|
Posted: Wed Jul 19, 2006 8:28 am Post subject: |
|
|
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 |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 8:35 am Post subject: |
|
|
Okay..how do I remedy this situation? How do I disable the proc so that apt-get will work?
AceMan |
|
| Back to top |
|
 |
entdiablo Xandrosianling

Joined: 28 Jan 2006 Posts: 378 Location: Memphis
|
Posted: Wed Jul 19, 2006 8:48 am Post subject: |
|
|
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 |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 8:53 am Post subject: |
|
|
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 |
|
 |
entdiablo Xandrosianling

Joined: 28 Jan 2006 Posts: 378 Location: Memphis
|
Posted: Wed Jul 19, 2006 9:51 am Post subject: |
|
|
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 |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 9:58 am Post subject: |
|
|
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 |
|
 |
pitheris Xandrosian

Joined: 07 Mar 2006 Posts: 202 Location: USA
|
Posted: Wed Jul 19, 2006 10:08 am Post subject: |
|
|
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 |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 10:20 am Post subject: |
|
|
| 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 |
|
 |
judyz Xendrosian

Joined: 23 Jan 2005 Posts: 1243 Location: Brantford Ontario
|
Posted: Wed Jul 19, 2006 11:38 am Post subject: |
|
|
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 |
|
 |
KrGAce Xplorer
Joined: 15 Jul 2006 Posts: 24 Location: Vermont
|
Posted: Wed Jul 19, 2006 12:07 pm Post subject: |
|
|
there is only one line in apt.conf and it reads.
"APT::Cachelimit 10000000;"
and that's it.
AceMan |
|
| Back to top |
|
 |
entdiablo Xandrosianling

Joined: 28 Jan 2006 Posts: 378 Location: Memphis
|
Posted: Wed Jul 19, 2006 12:48 pm Post subject: |
|
|
That's all that supposed to be there, from what I understand. _________________ X4 Premium, Arch 0.8 Voodoo
Linux User #403335 |
|
| Back to top |
|
 |
pitheris Xandrosian

Joined: 07 Mar 2006 Posts: 202 Location: USA
|
|
| Back to top |
|
 |
|