Can't remove linux-ubuntu-modules-2.6.22-14-386
I'm running 8.04LTS, and trying to upgrade. I've run into the following problem, which boils down to an error removing an old kernel modules package:
$ sudo aptitude remove linux-ubuntu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Building tag database... Done
The following packages have been automatically kept back:
[...snip long list of packages...]
The following packages have been kept back:
[...snip another long list of packages...]
The following packages will be REMOVED:
linux-
0 packages upgraded, 0 newly installed, 1 to remove and 1241 not upgraded.
Need to get 0B of archives. After unpacking 9748kB will be freed.
Writing extended state information... Done
(Reading database ... 186516 files and directories currently installed.)
Removing linux-ubuntu-
FATAL: Could not open '/boot/
update-initramfs: Generating /boot/initrd.
Cannot find /lib/modules/
update-initramfs: failed for /boot/initrd.
dpkg: error processing linux-ubuntu-
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Building tag database... Done
It looks like it's failing to remove the package, because part of the package is missing. I don't know how it got into this state (I didn't remove anything manually) and am really only interested in getting out of it.
Other than this, my 8.04LTS is up to date. I have a number of stock kernel packages installed, left behind by various upgrades. I'm currently running:
$ uname -a
Linux hex 2.6.24-26-386 #1 Tue Dec 1 17:56:13 UTC 2009 i686 GNU/Linux
What else?
$ dpkg -l | grep 2.6.22
rc linux-image-
rc linux-restricte
rc linux-restricte
rH linux-ubuntu-
rc linux-ubuntu-
I'd just like to get rid of all the remains of 2.6.22...
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- marcobra (Marco Braida)
- Solved:
- Last query:
- Last reply: