Announcement

Collapse
No announcement yet.

Error removing linux-ubuntu-modules-2.6.22-15-generic

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error removing linux-ubuntu-modules-2.6.22-15-generic

    After a failed upgrade I ran apt-get install -f, one package is to be removed but it fails. Any ideas?

    Code:
    $ sudo apt-get 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-15-generic
    0 upgraded, 0 newly installed, 1 to remove and 0 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 ... 107650 files and directories currently installed.)
    Removing linux-ubuntu-modules-2.6.22-15-generic ...
    FATAL: Could not open '/boot/System.map-2.6.22-15-generic': No such file or directory
    update-initramfs: Generating /boot/initrd.img-2.6.22-15-generic
    Cannot find /lib/modules/2.6.22-15-generic
    update-initramfs: failed for /boot/initrd.img-2.6.22-15-generic
    dpkg: error processing linux-ubuntu-modules-2.6.22-15-generic (--remove):
     subprocess post-removal script returned error exit status 1
    Errors were encountered while processing:
     linux-ubuntu-modules-2.6.22-15-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    #2
    Re: Error removing linux-ubuntu-modules-2.6.22-15-generic

    nobody's picking this one up, so...
    i'm still on 7.10, so i need to do some guess work here.
    2.6.22-15 must have been left over from your gutsy (ie 7.10) installation.
    ttbomk, 2.6.22-15 is not in the hardy (ie 8.04) repositories anymore.

    pls, open a konsole, make it as wide as possible.
    then post here the result of the following commands:
    Code:
    dpkg-query -l '*linux*2.6.22*'
    to see what's actually installed with reference to kernel 2.6.22
    and
    Code:
    ls -la /boot
    to see exactly what's in the boot directory

    these are just "read" commands, so to speak.
    they involve no modification to your system.
    they basically won't do any harm.

    cheers
    gnu/linux is not windoze

    Comment


      #3
      Re: Error removing linux-ubuntu-modules-2.6.22-15-generic

      I managed to solve it with some help from irc. I dont remember what I did though... still want me to paste the output of that command?

      Comment


        #4
        Re: Error removing linux-ubuntu-modules-2.6.22-15-generic

        well done.
        i'd say there's no need to go into this any further.
        take care.
        8)
        gnu/linux is not windoze

        Comment

        Working...
        X