When cleaning up my Gutsy installation I encountered the same issue:
NOTE: All commands are given as root!

dpkg --purge linux-ubuntu-modules-2.6.22-7-generic
(Reading database ... 102011 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-7-generic ...
Purging configuration files for linux-ubuntu-modules-2.6.22-7-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-7-generic': No such file or 
directory
update-initramfs: Generating /boot/initrd.img-2.6.22-7-generic
Cannot find /lib/modules/2.6.22-7-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-7-generic
dpkg: error processing linux-ubuntu-modules-2.6.22-7-generic (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-ubuntu-modules-2.6.22-7-generic

Although not entirely sure of the consequences I thought I give the following a 
try and issued the following commands:
cp /boot/System.map-2.6.22-8-generic /boot/System.map-2.6.22-7-generic
mkdir /lib/modules/2.6.22-7-generic
cp -R /lib/modules/2.6.22-8-generic/* /lib/modules/2.6.22-7-generic/

Next I tried again with the following result:
dpkg --purge linux-ubuntu-modules-2.6.22-7-generic
(Reading database ... 102011 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-7-generic ...
Purging configuration files for linux-ubuntu-modules-2.6.22-7-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.22-7-generic
find: /lib/firmware/2.6.22-7-generic: No such file or directory
find: /lib/firmware/2.6.22-7-generic: No such file or directory
find: /lib/firmware/2.6.22-7-generic: No such file or directory
find: /lib/firmware/2.6.22-7-generic: No such file or directory
find: /lib/firmware/2.6.22-7-generic: No such file or directory
find: /lib/firmware/2.6.22-7-generic: No such file or directory

However the end result was that linux-ubuntu-modules-2.6.22-7-generic no longer 
appeared as residual in Synaptic.
I am not sure if it is an official workaround, but it resolved the issue for me.

-- 
Gutsy synaptic fail with error on remove residual conf
https://bugs.launchpad.net/bugs/126093
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to