apt-get autoclean not working

Asked by Bruce M.

This is what I get:

bruloo@The-Team:~$ apt-get autoclean
E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)
E: Unable to lock the download directory
bruloo@The-Team:~$

Please help.
Bruce Milmine

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bruce Cowan
Solved:
Last query:
Last reply:
Revision history for this message
Best Bruce Cowan (bruce89-deactivatedaccount) said :
#1

sudo apt-get autoclean

Revision history for this message
Bruce M. (canar-ciudad) said :
#2

Thanks Bruce ... your name rings a bell here.

bruloo@The-Team:~$ sudo apt-get autoclean
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del flashplugin-nonfree 9.0.48.0.0ubuntu1~7.04.1 [15.7kB]
Del update-manager 1:0.59.23 [870kB]
Del update-manager-core 1:0.59.23 [26.2kB]
Del python-scientific 2.4.11-1build1.1 [103kB]
Del python-netcdf 2.4.11-1build1.1 [41.5kB]
Del libxvidcore4 2:1.1.2-0.1ubuntu1.1 [211kB]
Del mencoder 2:1.0~rc1-0ubuntu9.1 [3557kB]
Del mplayer 2:1.0~rc1-0ubuntu9.1 [4062kB]
Del kate 4:3.5.6-0ubuntu20.2 [811kB]
bruloo@The-Team:~$

Bruce Milmine

Revision history for this message
Bruce M. (canar-ciudad) said :
#3

I clicked on: Maintenance in the: AptGetHowto.html and didn't see the line above that said:

Commands
All these commands require sudo. Replace "packagename" or "string" with the program you're installing or searching for.

Maintenance
    * apt-get clean -- the same as above, excecpt remove *all* packages from the package cache. Usually you don’t need them, so this is smart if you’re running low on disk space. If you’re on dial-up, you might reconsider.

OK ... OK ... RTFM !!!!
Read The Full Manual. :)

Thanks ... for the RTFM reminder too!
Bruce MIlmine