maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   /var/lib/apt/lists MISSING :/ (https://talk.maemo.org/showthread.php?t=48361)

danielpublic 2010-03-26 09:50

/var/lib/apt/lists MISSING :/
 
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. :confused:

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 2010-03-26 09:55

Re: /var/lib/apt/lists MISSING :/
 
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.

danielpublic 2010-03-26 10:12

Re: /var/lib/apt/lists MISSING :/
 
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! :D

Niggydip 2010-03-26 11:51

Re: /var/lib/apt/lists MISSING :/
 
sorry but my question might sound silly...what does it mean to ssh?

Rob1n 2010-03-26 13:31

Re: /var/lib/apt/lists MISSING :/
 
Quote:

Originally Posted by Niggydip (Post 583076)
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.

danielpublic 2010-03-26 14:35

Re: /var/lib/apt/lists MISSING :/
 
Quote:

Originally Posted by Niggydip (Post 583076)
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! :)

lujo 2013-03-20 16:52

Re: /var/lib/apt/lists MISSING :/
 
Quote:

Originally Posted by danielpublic (Post 582979)
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! :D

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?:cool:

tanago 2013-03-24 17:45

Re: /var/lib/apt/lists MISSING :/
 
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

ZeNzO 2013-10-28 13:41

Re: /var/lib/apt/lists MISSING :/
 
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?

michaaa62 2013-10-28 14:13

Re: /var/lib/apt/lists MISSING :/
 
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?


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

vBulletin® Version 3.8.8