PDA

View Full Version : [ubuntu] problem with linux-restricted-modules-2.6.27-9-generic



starling
February 7th, 2009, 07:28 AM
I've been having troubles with various packages not configuring properly after install after upgrading to 8.10. Generally I've just removed them using dpkg -r, but in this case that doesn't work.


starling@starling-desktop:~$ sudo dpkg --remove linux-restricted-modules-2.6.27-9-generic
(Reading database ... 131575 files and directories currently installed.)
Removing linux-restricted-modules-2.6.27-9-generic ...
rmdir: failed to remove `/lib/modules/2.6.27-9-generic/volatile/': No such file or directory
FATAL: Could not open '/boot/System.map-2.6.27-9-generic': No such file or directory
/usr/sbin/update-initramfs: 547: awk: not found
dpkg: error processing linux-restricted-modules-2.6.27-9-generic (--remove):
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
linux-restricted-modules-2.6.27-9-generic


apt won't uninstall it, and dpkg --configure -a doesn't think there is a problem. What's going on?

tommcd
February 7th, 2009, 07:51 AM
Try running:


sudo dpkg --configure -a
sudo apt-get update

This should fix any broken packages you may have.

starling
February 7th, 2009, 08:07 AM
Try running:


sudo dpkg --configure -a
sudo apt-get update

This should fix any broken packages you may have.

Nope. Both work, but the package is still marked as broken and apt wants to, but can't remove it. I have a suspicion that it is not actually installed.

tommcd
February 8th, 2009, 07:01 AM
Another thing to try is:

sudo apt-get install -f
to try to fix broken packages.

theOtherMarino
May 21st, 2009, 03:57 PM
Hello,

Others like me are stuck with this kind of problem (a broken package that neither dpkg nor apt-get can remove).
See http://ubuntuforums.org/showthread.php?t=1147434&page=2

If you found a solution, please post it in the thread. That would help.

Thanks in advance,

Marino