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

Thread: sudo dpkg --purge linux-image-3.2.0-36-generic hangs

  1. #1
    Join Date
    Jan 2013
    Beans
    10

    Exclamation sudo dpkg --purge linux-image-3.2.0-36-generic hangs

    Now I called

    sudo dpkg --purge linux-image-3.2.0-36-generic

    It hanged at: Found memtest86+ image: /boot/memtest86+.bin

    So I did CRTL+C. Anyhow, apt-get is now willing to be called again. Eventhough it complains that

    inux-image-server : Depends: linux-image-3.2.0-36-generic but it is not going to be installed

    I wonder whether I should try a distribution upgrade... (+ I wonder what would happen if I rebooted now )

  2. #2
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: dpkg hangs on update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic

    @psilva261

    Your problem is not the same as the OP's, with the 3.5 kernel. To minimize confusion I suggest starting your own thread.

  3. #3
    Join Date
    Jan 2013
    Beans
    10

    Re: dpkg hangs on update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic

    Hi ibjsb4,

    Sure, but the problem exists since years so odds are low it depends on the Kernel version. (The oldest blog/forum post I found about this issue is from 2008.)

    Philip

  4. #4
    Join Date
    Jan 2013
    Beans
    10

    Re: dpkg hangs on update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic

    Or maybe it does depend on the kernel version but the cause is basically a script that has problems with some kernel versions...
    (Didn't mean to be offensive by the way)

  5. #5

    Re: sudo dpkg --purge linux-image-3.2.0-36-generic hangs

    Please do not hijack other peoples threads.

    Posts moved to own thread.

  6. #6
    Join Date
    Jan 2013
    Beans
    10

    Re: dpkg hangs on update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic

    Anyway, I think I've solved it:

    Afterwards I did sudo apt-get update, sudo apt-get -f upgrade, killed it again. Then in /var/lib/dpkg/info/linux-image-3.2.0-36-generic.postrm I commented lines 326-332. And then I set update_initramfs=no in /etc/initramfs-tools/update-initramfs.conf (tried this before, but this didn't work without the trick to comment the lines above.) Then I ran sudo dpkg --configure -a and apt-get works again.

    I cannot really recommend anybody to do this on a production system, but I think these script could really need some maintenance:

    $ head -n 11 /var/lib/dpkg/info/linux-image-3.2.0-36-generic.postrm
    #! /usr/bin/perl
    # -*- Mode: Cperl -*-
    # image.postrm ---
    # Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
    # Created On : Sat May 15 11:05:13 1999
    # Created On Node : glaurung.green-gryphon.com
    # Last Modified By : Manoj Srivastava
    # Last Modified On : Wed Sep 13 11:26:19 2006
    # Last Machine Used: glaurung.internal.golden-gryphon.com
    # Update Count : 57
    # Status : Unknown, Use with caution!

  7. #7
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: sudo dpkg --purge linux-image-3.2.0-36-generic hangs

    Nothing wrong with a dist-upgrade.

    https://help.ubuntu.com/community/Ap...nance_commands

  8. #8
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: dpkg hangs on update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic

    Well, I guess the only thing left to do is ..

    https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  9. #9
    Join Date
    Jan 2013
    Beans
    10

    Re: sudo dpkg --purge linux-image-3.2.0-36-generic hangs

    Ok thanks...

    By the way, I realized this broken script is (almost) the same for Kernel versions 2.6.x - 3.2.x. Didn't check 3.5.x though because I don't have a 12.10 system here.

  10. #10
    Join Date
    Jan 2013
    Beans
    10

    Re: sudo dpkg --purge linux-image-3.2.0-36-generic hangs

    >Well, I guess the only thing left to do is ..
    >
    >https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

    Are you serious?

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
  •