Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] upgrade failure after custom kernel

  1. #1
    Join Date
    Apr 2007
    Beans
    87

    [SOLVED] upgrade failure after custom kernel

    Earlier I was experimenting with kernelcheck to compile a new kernels, but never put the new kernels in grub's boot list and kept using 8.04's default kernel.

    Later on, to save space, I deleted the usr/src and lib/modules folders relevant to those kernels. Things were working fine through several updates.

    Recently, update gives me the option to do a partial update, but fails. Synaptic will also fail on opening.
    Both instruct me to dkpg --reconfigure -a
    which gives me this message:


    Setting up initramfs-tools (0.85eubuntu39) ...
    update-initramfs: deferring update (trigger activated)

    Processing triggers for initramfs-tools ...
    update-initramfs: Generating /boot/initrd.img-2.6.25.2
    Cannot find /lib/modules/2.6.25.2
    update-initramfs: failed for /boot/initrd.img-2.6.25.2
    dpkg: subprocess post-installation script returned error exit status 1




    It's looking for one of the folders I deleted.
    Suggestions?

  2. #2
    Join Date
    Apr 2007
    Beans
    87

    Re: upgrade failure after custom kernel

    bump?

  3. #3
    Join Date
    Feb 2007
    Location
    Melbourne
    Beans
    799
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: upgrade failure after custom kernel

    So, in other words you manually removed files and folders installed by a package on your system?

    That's a very bad idea. You should have removed those by removing the package in the package manager.

  4. #4
    Join Date
    Apr 2007
    Beans
    87

    Re: upgrade failure after custom kernel

    Yes. Mea culpa, mea culpa, mea maxima culpa.
    FWIW, these were packages that synaptic's search string did not find.

  5. #5
    Join Date
    Feb 2007
    Location
    Melbourne
    Beans
    799
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: upgrade failure after custom kernel

    Perhaps you need to play with properly removing all traces of those kernels.

    Try:
    Code:
    man update-initramfs

  6. #6
    Join Date
    Apr 2007
    Beans
    87

    Re: upgrade failure after custom kernel

    thanks.
    I tried both the -d and -u for -k 2.6.25.2
    and get this:

    Cannot find /lib/modules/2.6.25.2

  7. #7
    Join Date
    Feb 2007
    Location
    Melbourne
    Beans
    799
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: upgrade failure after custom kernel

    Quote Originally Posted by Adahn View Post
    thanks.
    I tried both the -d and -u for -k 2.6.25.2
    and get this:

    Cannot find /lib/modules/2.6.25.2
    Where did you get 2.6.25.* from anyway? It's not in the repos.

    Try reinstalling it, and then properly removing it.

  8. #8
    Join Date
    Apr 2007
    Beans
    87

    Re: upgrade failure after custom kernel

    Quote Originally Posted by ChameleonDave View Post
    Where did you get 2.6.25.* from anyway? It's not in the repos.

    Try reinstalling it, and then properly removing it.
    It was compiled through kernelcheck, which won't work either.
    reinstall how?

  9. #9
    Join Date
    Feb 2007
    Location
    Melbourne
    Beans
    799
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: upgrade failure after custom kernel

    Quote Originally Posted by Adahn View Post
    It was compiled through kernelcheck, which won't work either.
    reinstall how?
    Well, I've never used that, but I imagine that it has a method for compiling and installing a version of the kernel, and a method for fully removing it.

    Someone else will have to help you with this one.

  10. #10
    Join Date
    Apr 2007
    Beans
    87

    Re: upgrade failure after custom kernel

    Thanks for the help so far.
    Searching the entire filesystem found only one hit for 2.6.25.2, as a text file by that name in /var/lib/initramfs-tools
    Files for the generic modules going back to 2.6.20 are in that folder as well.

    Perhaps I should risk deleting that file.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •