maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Apt-get clean issues (https://talk.maemo.org/showthread.php?t=52863)

thefoxtrot 2010-05-17 05:57

Apt-get clean issues
 
n00b here.
Already have root access. I opened up X term, typed "apt-get clean" and I got:

E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)
E: Unable to lock the download directory

Help please.

Smooth-op 2010-05-17 06:02

Re: Apt-get clean issues
 
Ok so you have installed the root app and got root access if I have understood you..... Before typing 'apt-get-clean' you have to type 'sudo gainroot' or 'root' , at least that is what I do.

thefoxtrot 2010-05-17 06:10

Re: Apt-get clean issues
 
Oooh, every time I do it.

What happens when you type apt-get clean after sudo gainroot?
It doesn't notify you of anything actually happening, does it?

Glasswalker 2010-05-17 06:24

Re: Apt-get clean issues
 
Quote:

Originally Posted by thefoxtrot (Post 661833)
n00b here.
E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)
E: Unable to lock the download directory

Looks like that you've got the App-Manager open when you tried to use apt-get. If the files dealing with packages are in use by a program they become locked for any other program, it's a security mechanism.

Regards,
Glasswalker

GreatGonzo 2010-05-17 06:25

Re: Apt-get clean issues
 
That's correct. You could do a
Code:

df -h /var
before and after to see that it did its job ;-)

krk969 2010-05-17 06:26

Re: Apt-get clean issues
 
try

root

then

apt-get clean -q

will show you some logs if any
more info

barrieluv 2010-05-17 10:06

Re: Apt-get clean issues
 
Quote:

Originally Posted by thefoxtrot (Post 661838)
Oooh, every time I do it.

What happens when you type apt-get clean after sudo gainroot?
It doesn't notify you of anything actually happening, does it?

No, there is no feedback unless your cache has lots to be cleaned out, in which case there will be a slight pause.
The commands apt-get autoclean and apt-get autoremove will provide some feedback, similar to this (output from my Ubuntu install):

barrieluv@barrieluv-laptop:~$ sudo apt-get clean
[sudo] password for barrieluv:
barrieluv@barrieluv-laptop:~$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
barrieluv@barrieluv-laptop:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
barrieluv@barrieluv-laptop:~$

Hope this helps.


All times are GMT. The time now is 01:57.

vBulletin® Version 3.8.8