[clug] Ubu 10.04 apt upgrade fail / low disk space / old kernel removal problems

Owen rcook at pcug.org.au
Fri Mar 23 21:19:39 MDT 2012


> Hi all,
>
> I've encountered a circular problem whilst trying to do a kernel
> update for Ubuntu 10.04 & was wondering if anyone can help. The update
> failed on one of the kernel packages, with the log message reported a
> disk full error. The log is included below. I found several old kernel
> packages, and tried to remove them, but apt-get failed with the
> following:
>
> $ sudo apt-get purge linux-headers-2.6.32-33-generic
> <snip some lines>
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>   linux-headers-2.6.32-40-generic: Depends: linux-headers-2.6.32-40
> but it is not going to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
>
> Obviously I can't fix the packages due to the disk space problem, and
> perusing the manpages and some blogs didn't locate option (I am sick
> as a dog, so may have missed something in my drugged up state).
>
> How would I go about safely repairing this?


Make some space?

I think what I would try is to ascertain which one is being used to
boot the machine, then remove all the others by hand (plus the
associated files)

That at least will give you a bit of space.

Also examine the output of du from root. Maybe there are a few Gbs of
something you you can safely remove to another disk. (photos, docs)

And the /var/cache/apt might  be a candidate for deletion.

 --
Owen



More information about the linux mailing list