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

Thread: Update-initramfs issue

  1. #1
    Join Date
    Mar 2013
    Beans
    14

    Update-initramfs issue

    I'm currently running Kubuntu and when trying to install something from the terminal e.g. 'sudo apt-get firefox' I get the following error:

    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

    After running 'sudo dpkg --configure -a' the following happens:

    update-initramfs: Generating /boot/initrd.img-5.4.0-65-generic
    update-initramfs: Generating /boot/initrd.img-5.4.0-64-generic
    update-initramfs: Generating /boot/initrd.img-5.4.0-59-generic

    And it keeps going on trying lower versions and it just gets stuck there and there's nothing I can do.

    How can I fix this?

    Thank you!

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Update-initramfs issue

    How many kernels do you have installed? You show three in your post above; are there still more which the system is trying to deal with?

    Show us the output of terminal command
    Code:
    dpkg -l linux-image*
    Please use code tags for the terminal output. There's a how-to in my signature below.

  3. #3
    Join Date
    Mar 2013
    Beans
    14

    Re: Update-initramfs issue

    Code:
    Desired=Unknown/Install/Remove/Purge/Hold 
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) 
    ||/ Name                                  Version      Architecture Description 
    +++-=====================================-============-============-================================= 
    un  linux-image                           <none>       <none>       (no description available) 
    rc  linux-image-5.4.0-26-generic          5.4.0-26.30  amd64        Signed kernel image generic 
    rc  linux-image-5.4.0-29-generic          5.4.0-29.33  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-31-generic          5.4.0-31.35  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-33-generic          5.4.0-33.37  amd64        Signed kernel image generic 
    rc  linux-image-5.4.0-37-generic          5.4.0-37.41  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-39-generic          5.4.0-39.43  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-40-generic          5.4.0-40.44  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-42-generic          5.4.0-42.46  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-45-generic          5.4.0-45.49  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-47-generic          5.4.0-47.51  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-48-generic          5.4.0-48.52  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-51-generic          5.4.0-51.56  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-52-generic          5.4.0-52.57  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-53-generic          5.4.0-53.59  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-54-generic          5.4.0-54.60  amd64        Signed kernel image generic 
    rc  linux-image-5.4.0-56-generic          5.4.0-56.62  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-58-generic          5.4.0-58.64  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-59-generic          5.4.0-59.65  amd64        Signed kernel image generic 
    rc  linux-image-5.4.0-60-generic          5.4.0-60.67  amd64        Signed kernel image generic 
    rc  linux-image-5.4.0-62-generic          5.4.0-62.70  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-64-generic          5.4.0-64.72  amd64        Signed kernel image generic 
    ii  linux-image-5.4.0-65-generic          5.4.0-65.73  amd64        Signed kernel image generic 
    ii  linux-image-generic                   5.4.0.65.68  amd64        Generic Linux kernel image 
    un  linux-image-unsigned-5.4.0-26-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-29-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-31-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-33-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-37-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-39-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-40-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-42-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-45-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-47-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-48-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-51-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-52-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-53-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-54-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-56-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-58-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-59-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-60-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-62-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-64-generic <none>       <none>       (no description available) 
    un  linux-image-unsigned-5.4.0-65-generic <none>       <none>       (no description available)
    
    Thank you!

  4. #4
    tea for one is offline Chocolate-Covered Ubuntu Beans
    Join Date
    May 2008
    Beans
    1,341
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Update-initramfs issue

    I think that dpkg -l linux-image* has listed available kernels rather than installed kernels.

    Try this in the terminal and post the output in code tags:-
    Code:
    ls /boot | grep vmlinuz-

  5. #5
    Join Date
    Mar 2013
    Beans
    14

    Re: Update-initramfs issue

    This is the output:

    Code:
    vmlinuz-5.4.0-31-generic 
    vmlinuz-5.4.0-33-generic 
    vmlinuz-5.4.0-39-generic 
    vmlinuz-5.4.0-40-generic 
    vmlinuz-5.4.0-42-generic 
    vmlinuz-5.4.0-45-generic 
    vmlinuz-5.4.0-47-generic 
    vmlinuz-5.4.0-48-generic 
    vmlinuz-5.4.0-51-generic 
    vmlinuz-5.4.0-52-generic 
    vmlinuz-5.4.0-53-generic 
    vmlinuz-5.4.0-54-generic 
    vmlinuz-5.4.0-58-generic 
    vmlinuz-5.4.0-59-generic 
    vmlinuz-5.4.0-64-generic 
    vmlinuz-5.4.0-65-generic
    

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,934
    Distro
    Ubuntu

    Re: Update-initramfs issue

    Those are installed kernels.
    Or at least all those marked with the ii status are installed.
    Plenty of different ways to remove them.
    Unless there some reason not to just run the apt autoremove command to clear them out.
    append the --purge option to clear out the full package including the configurations,
    Code:
    sudo apt autoremove --purge
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  7. #7
    Join Date
    Mar 2013
    Beans
    14

    Re: Update-initramfs issue

    I can't do that...

    Code:
    sudo apt autoremove --purge 
    [sudo] password for leandro:  
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
    

  8. #8
    Join Date
    May 2013
    Location
    Galiza
    Beans
    3,922
    Distro
    Ubuntu

    Re: Update-initramfs issue

    The error message tells you what to do.

  9. #9
    Join Date
    Mar 2013
    Beans
    14

    Re: Update-initramfs issue

    I know, that's the problem, take a look at my first post on top.

  10. #10
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,934
    Distro
    Ubuntu

    Re: Update-initramfs issue

    Then let the dpkg command run.
    It'll take a while. You have 16 kernels installed.
    How long did you run it before?
    With as many kernels it has to deal with as it does I would expect it to run for a minimum of half an hour. Seriously.
    (and that's the minimum, it might as well run well over a full hour, or even longer.)
    If it to seems like it hangs at times, just let it go without trying to force it to stop.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

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
  •