Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
fernando@fernando-laptop:~$ apt-get clean
E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)
E: Unable to lock the download directory
fernando@fernando-laptop:~$ sudo apt-get clean
[sudo] password for fernando:
my debian lenny on router takes around 400M on total 1.8G HDD(it's OLD) and most of this space is also taken by utils i don't use but don't remove(who knows when they may become useful?).
look at /usr directory. see if you don't need some programs, uninstall them with apt. or do it manually(not recommended).
upd: i also use ncdu for cleaning purposes(it shows a disk usage). it's actual name is "ncurses disk usage". i like that util.
Last edited by Web31337; 11-22-2009 at 10:17 AM.
You can look in /var/log for the backup logs created by logrotate
You can remove old kernels using synaptic
Don't delete files in /usr, unless you know what you are doing
As suggested by web31377 use ncdu to find large files and directories
Since you have no seperate /home partition, perhaps you can delete some stuff in your home directory,
or move them to /media/My Passport
In firefox you can delete the cache.
Take a look if your trashfolder is empty.
Do you use beagle or another software to search the drive?
They can create big files.
When I try to remove some log files (sudo rm), the systems says that the files do not exist, despite the fact that they are displayed on my screen.
make sure to use the correct name, and if needed the correct path. You can copy/paste in the terminal