Cannot Reset Package Manager

Asked by cmnorton

Today I tried downloading a fix for T61 audio problems. Downloading this fix failed. Here are the two links in Ubuntu Launchpad, with the first link referencing the second. I took the download instructions from the second link.

https://bugs.launchpad.net/ubuntu/+bug/122560

https://bugs.launchpad.net/ubuntu/+bug/122560/comments/41

Now, I cannot synch up my package list. Basically, the package manager thinks I have linux-ubuntu-modules-2.6.22-10-generic 2.6.22-10.24 installed, and it also believes 2.6.22-14.37 is installed.

Synaptic Package won't exit without trying to remove this; unmarking from removal does not work; and an error occurs 1 back from dpkg. apt-get -f fails the same way.

Here is the post from apt-get -f.

---------------------------------------------------------------------------------------------------
sudo apt-get -y install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-ubuntu-modules-2.6.22-10-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 8405kB disk space will be freed.
(Reading database ... 96753 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-10-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-10-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-10-generic
Cannot find /lib/modules/2.6.22-10-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-10-generic
dpkg: error processing linux-ubuntu-modules-2.6.22-10-generic (--remove):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-ubuntu-modules-2.6.22-10-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------------------------------------------------

How do I reset everything? I have Googled and searched my disk looking for where the removal information could be stored. I thought, if I edit out the removal information.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
cmnorton
Solved:
Last query:
Last reply:
Revision history for this message
cmnorton (octopusgrabbus) said :
#1

dpkg -P -a

should have purged linux-ubuntu-modules-2.6.22-10-generic from /var/lib/dpkg/status, but it did not. Once I purge this, things appear to have been set back to normal.