Active Topics

 


Reply
Thread Tools
Posts: 54 | Thanked: 53 times | Joined on Feb 2010 @ Sweden
#1
Hi!
I have this application manager problem:
Code:
E: could not open lock file /var/lib/apt/lists/lock - open (2
no such file or directory)

E: unable to lock the list directory
I thought: "Hey well ok, thats really sane and so I ssh'ed in and sudo gainroot and apt-get update"
As the error message says, the dir:
Code:
/var/lib/apt/lists
Does NOT exist.

How can I resolve this?
I mean it has nothing to do with a rootfs space issue. I got almost 40mb there. Its all about the apt missing its dirs and cant do its thing.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
FWIW, mkdir -p /var/lib/apt/lists/partial (as root) and then setting permissions on both the partial and lists folder to 755 should work. An "apt-get update" will recreate the files in the lists folder.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 54 | Thanked: 53 times | Joined on Feb 2010 @ Sweden
#3
This fixed my application manager not working. Its all good, from here!

What I did was for the interested crowed:

1# SSH into your lovely device
2# sudo gainroot
3#
Code:
mkdir -p /var/lib/apt/lists/partial
4#
Code:
chmod 755 /var/lib/apt/lists && chmod 755 /var/lib/apt/lists/partial
5# Profit! Use the Application Manager on the "phone" to do your thing!

Last edited by danielpublic; 2010-03-26 at 10:17.
 

The Following 3 Users Say Thank You to danielpublic For This Useful Post:
Posts: 25 | Thanked: 6 times | Joined on Jan 2010 @ Lagos, Nigeria
#4
sorry but my question might sound silly...what does it mean to ssh?
 

The Following User Says Thank You to Niggydip For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#5
Originally Posted by Niggydip View Post
sorry but my question might sound silly...what does it mean to ssh?
Ssh is the secure shell - it's a client/server protocol designed to allow secure access to the command line on remote computers. You don't actually need that at all though - just open X Terminal, then follow the instructions from step 2.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 54 | Thanked: 53 times | Joined on Feb 2010 @ Sweden
#6
Originally Posted by Niggydip View Post
sorry but my question might sound silly...what does it mean to ssh?
No need for apologies!
Its rather I, that am sorry for not explaining things better. I will take this into account in the future! Thanks for your input!
 
Posts: 1 | Thanked: 0 times | Joined on Mar 2013 @ Surabaya
#7
Originally Posted by danielpublic View Post
This fixed my application manager not working. Its all good, from here!

What I did was for the interested crowed:

1# SSH into your lovely device
2# sudo gainroot
3#
Code:
mkdir -p /var/lib/apt/lists/partial
4#
Code:
chmod 755 /var/lib/apt/lists && chmod 755 /var/lib/apt/lists/partial
5# Profit! Use the Application Manager on the "phone" to do your thing!
It's work! sure!
Maybe anyone confuse with point #1 and #2. Just type "sudo su" on your terminal. After finish, you can quit from gainroot (sudo su) by "Ctrl+D".

Maybe I've made mistake?
 
tanago's Avatar
Posts: 215 | Thanked: 448 times | Joined on Aug 2012 @ Burgas, Bulgaria
#8
If somebody else has that problem and to quickly solve:
as root

mkdir /var/lib/apt/lists
vi /var/lib/apt/lists/lock -> Press Esc on the screen then write ':wq' on the keyboard, then Enter
mkdir /var/lib/apt/lists/partial

Problem solved
 
Posts: 22 | Thanked: 12 times | Joined on Mar 2011
#9
Sorry for diggin up such an old topic but I've got a bit different problem here.

with su
Code:
/home/user # apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (5 Input/output error)
E: Unable to lock the lists directory
Best thing is that /var/lib/apt/lists/ dir does exist.
How to fix that?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#10
It may be that the automatic update from Hildon Application Manager is interfering, this even might take some minutes...

Are you really using 'su' instead of the other tweaks to gain the rights of root?
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:33.