I have a sort of Catch 22 situation on my little eeePc.
It has tried to update kernels automatically and, after a few months (it's on our boat doing monitoring) it has run out of disk space.
It still runs OK and I can ssh into it. It has quite a long list of old kernels installed but I can't delete them to make space because it has half an update of the latest kernel:-
So when I try and do anything with apt-get I see:-
root@eeepc:/var/lib# apt-get remove linux-headers-2.6.32-39 linux-headers-2.6.32-39-generic-pae linux-image-2.6.32-39-generic-pae Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies. linux-headers-generic-pae: Depends: linux-headers-2.6.32-43-generic-pae but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So how do I uninstall all the old headers etc. so that there *is* space to do things?
On Sun, Sep 23, 2012 at 05:59:57PM +0100, Chris Green wrote:
So how do I uninstall all the old headers etc. so that there *is* space to do things?
Take a look in /var/cache/apt/archives for cached packages to delete to make some space. You may be able to run apt-get autoclean to remove them although with the package manager halfway upset it might complain so you can remove them all safely.
Failing that find something else to delete to make space. Old log files might be a good candidate here or look in /tmp and /var/tmp for things you don't need. The very worst scenario just delete some of the initrds for the old kernels and fix the problems manually once you've got the package manager happy.
Adam