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?

pichlo 2013-10-28 14:36

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

Originally Posted by tanago (Post 1331409)
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

Or even - skipping a manula step and without a need for vi...
Code:

mkdir /var/lib/apt/lists
touch /var/lib/apt/lists/lock
mkdir /var/lib/apt/lists/partial


ZeNzO 2013-10-28 16:25

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

Originally Posted by michaaa62 (Post 1382932)
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?

It's definitely not the App Manager, this has been happening since a month now no matter if I had my Internet connection on, or how long I've been waiting for the updater to end.

I've also tried root access by BusyBox. Doesn't really work and I'm kind of scared of that one really. I'm not a pro Linux user, just a regular one.

My app manager on startup states "Operation Failed" and I can't really do anything.

/var/lib/apt/lists is empty and... I don't know what to do. I had that once already on the Easy Debian LXDE image and couldn't fix that either.

michaaa62 2013-10-28 17:13

Re: /var/lib/apt/lists MISSING :/
 
You need rootsh installed for these commands to work
Code:

sudo gainroot
apt-get update
apt-get upgrade

If you are unsure about the output, please post it here via Copy'nPaste, please.

ZeNzO 2013-10-28 20:29

Re: /var/lib/apt/lists MISSING :/
 
Here's a full paste.

Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

mkdir: cannot create directory '/dev/cgroup/cpu/user/': Permission denied
-sh: /home/user/.bashrc: line 1: cannot create /dev/cgroup/cpu/user/2235/tasks: nonexistent directory
-sh: /home/user/.bashrc: line 1: cannot create /dev/cgroup/cpu/user/2235/notify_on_release: nonexistent directory
~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/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 list directory
/home/user # apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Error!
E: Read error - read (21 Is a directory)
E: Read error - read (21 Is a directory)
/home/user #

Just now I've noticed I've got some -sh errors. Wonder if that's relevant.

michaaa62 2013-10-29 07:29

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

Originally Posted by ZeNzO (Post 1383012)
Here's a full paste.

Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

mkdir: cannot create directory '/dev/cgroup/cpu/user/': Permission denied
-sh: /home/user/.bashrc: line 1: cannot create /dev/cgroup/cpu/user/2235/tasks: nonexistent directory
-sh: /home/user/.bashrc: line 1: cannot create /dev/cgroup/cpu/user/2235/notify_on_release: nonexistent directory
~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/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 list directory
/home/user # apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Error!
E: Read error - read (21 Is a directory)
E: Read error - read (21 Is a directory)
/home/user #

Just now I've noticed I've got some -sh errors. Wonder if that's relevant.

These are remnants from those quite infamous '*-patches', either battery or power!
Those are not revertable but with a full reflash of the device.

Please verify the error message of apt-get
Code:

ls -al /var/lib/apt
ls -al /var/lib/apt/lists

to see if the structure is okay.


All times are GMT. The time now is 23:27.

vBulletin® Version 3.8.8