jon.forums
June 24th, 2008, 03:33 PM
Upgraded Xubuntu from Gutsy to Hardy via Update Manager and everything is working fine except I'm now not able to do further updates.
Looks like the pkg system still thinks a previously removed pkg (linux-ubuntu-modules-2.6.22-14-generic) still exists, and then bombs when it can't find the files to uninstall. No files corresponding to this pkg exist in /boot or /lib/modules
I've tried all I know with 'Update Manager', 'aptitude', 'dpkg --purge', 'apg-get -f purge' but can't get the packaging system to forget about the pkg that appears to be long gone.
For example...
jon@pixie:~$ sudo apt-get -f purge linux-ubuntu-modules-2.6.22-14-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-ubuntu-modules-2.6.22-14-generic
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 9966kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 97795 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-14-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-14-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Cannot find /lib/modules/2.6.22-14-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-14-generic
dpkg: error processing linux-ubuntu-modules-2.6.22-14-generic (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
linux-ubuntu-modules-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm unfortunately at the end of my expertise on what to do next and haven't yet found a similar forum post.
Thanks in advance....Jon
Looks like the pkg system still thinks a previously removed pkg (linux-ubuntu-modules-2.6.22-14-generic) still exists, and then bombs when it can't find the files to uninstall. No files corresponding to this pkg exist in /boot or /lib/modules
I've tried all I know with 'Update Manager', 'aptitude', 'dpkg --purge', 'apg-get -f purge' but can't get the packaging system to forget about the pkg that appears to be long gone.
For example...
jon@pixie:~$ sudo apt-get -f purge linux-ubuntu-modules-2.6.22-14-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-ubuntu-modules-2.6.22-14-generic
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 9966kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 97795 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-14-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-14-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Cannot find /lib/modules/2.6.22-14-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-14-generic
dpkg: error processing linux-ubuntu-modules-2.6.22-14-generic (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
linux-ubuntu-modules-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm unfortunately at the end of my expertise on what to do next and haven't yet found a similar forum post.
Thanks in advance....Jon