Reply
Thread Tools
thefoxtrot's Avatar
Posts: 144 | Thanked: 32 times | Joined on Jan 2010 @ Cali
#1
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.
 
Posts: 78 | Thanked: 10 times | Joined on Feb 2010 @ Florence, Italy
#2
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.
 

The Following User Says Thank You to Smooth-op For This Useful Post:
thefoxtrot's Avatar
Posts: 144 | Thanked: 32 times | Joined on Jan 2010 @ Cali
#3
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?
 
Posts: 154 | Thanked: 55 times | Joined on Sep 2008
#4
Originally Posted by thefoxtrot View Post
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
 

The Following User Says Thank You to Glasswalker For This Useful Post:
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#5
That's correct. You could do a
Code:
df -h /var
before and after to see that it did its job ;-)
 

The Following User Says Thank You to GreatGonzo For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#6
try

root

then

apt-get clean -q

will show you some logs if any
more info
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”

Last edited by krk969; 2010-05-17 at 06:34.
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 31 | Thanked: 25 times | Joined on Mar 2010 @ London
#7
Originally Posted by thefoxtrot View Post
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:53.