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

Thread: Kernel upgrade 12.04

  1. #1
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 9.10 Karmic Koala

    Kernel upgrade 12.04

    I am having problems with a failing kernel upgrade & I can't find a previous answered post that matches my symptoms, so please could someone help?
    Update manager returns the following details:


    Code:
    installArchives() failed: Setting up linux-image-3.2.0-53-generic (3.2.0-53.81) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    update-initramfs: Generating /boot/initrd.img-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    Generating grub.cfg ...
    Found background: /etc/apt/sources.list
    Unsupported image format
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-53-generic.postinst line 1010.
    dpkg: error processing linux-image-3.2.0-53-generic (--configure):
     subprocess installed post-installation script returned error exit status 2
    <REPEATS FOR 3.2.0-53 up to 3.5.0-40>
    dpkg: error processing linux-image-generic (--configure):
     dependency problems - leaving unconfigured
    No apport report written because MaxReports is reached already
    No apport report written because MaxReports is reached already
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
     linux-image-3.2.0-53-generic
     linux-image-3.5.0-39-generic
     linux-image-3.5.0-40-generic
     linux-image-generic-lts-quantal
     linux-generic-lts-quantal
     linux-image-generic
    localepurge: Disk space freed in /usr/share/locale: 0 KiB
    localepurge: Disk space freed in /usr/share/man: 0 KiB
    localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
    localepurge: Disk space freed in /usr/share/omf: 0 KiB
    localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB
    
    
    Total disk space freed by localepurge: 0 KiB
    
    
    localepurge: Disk space freed in /usr/share/locale: 0 KiB
    localepurge: Disk space freed in /usr/share/man: 0 KiB
    localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
    localepurge: Disk space freed in /usr/share/omf: 0 KiB
    localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB
    
    
    Total disk space freed by localepurge: 0 KiB
    
    
    localepurge: Disk space freed in /usr/share/locale: 0 KiB
    localepurge: Disk space freed in /usr/share/man: 0 KiB
    localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
    localepurge: Disk space freed in /usr/share/omf: 0 KiB
    localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB
    
    
    Total disk space freed by localepurge: 0 KiB
    
    
    localepurge: Disk space freed in /usr/share/locale: 0 KiB
    localepurge: Disk space freed in /usr/share/man: 0 KiB
    localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
    localepurge: Disk space freed in /usr/share/omf: 0 KiB
    localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB
    
    
    Total disk space freed by localepurge: 0 KiB
    
    
    Error in function: 
    SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
    Setting up linux-image-3.5.0-39-generic (3.5.0-39.60~precise1) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    update-initramfs: Generating /boot/initrd.img-3.5.0-39-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
    Generating grub.cfg ...
    Found background: /etc/apt/sources.list
    Unsupported image format
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-39-generic.postinst line 1010.
    dpkg: error processing linux-image-3.5.0-39-generic (--configure):
     subprocess installed post-installation script returned error exit status 2
    Setting up linux-image-3.2.0-53-generic (3.2.0-53.81) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    update-initramfs: Generating /boot/initrd.img-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-53-generic /boot/vmlinuz-3.2.0-53-generic
    Generating grub.cfg ...
    Found background: /etc/apt/sources.list
    Unsupported image format
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-53-generic.postinst line 1010.
    dpkg: error processing linux-image-3.2.0-53-generic (--configure):
     subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
     linux-image-generic-lts-quantal depends on linux-image-3.5.0-39-generic; however:
      Package linux-image-3.5.0-39-generic is not configured yet.
    dpkg: error processing linux-image-generic-lts-quantal (--configure):
     dependency problems - leaving unconfigured
    Setting up linux-image-3.5.0-40-generic (3.5.0-40.62~precise1) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    update-initramfs: Generating /boot/initrd.img-3.5.0-40-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
    Generating grub.cfg ...
    Found background: /etc/apt/sources.list
    Unsupported image format
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-40-generic.postinst line 1010.
    dpkg: error processing linux-image-3.5.0-40-generic (--configure):
     subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of linux-image-generic:
     linux-image-generic depends on linux-image-3.2.0-53-generic; however:
      Package linux-image-3.2.0-53-generic is not configured yet.
    dpkg: error processing linux-image-generic (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:

    Could someone please explain the meaning of the red highlighted lines above & what I can do to remedy the situation?

    Last edited by Frogs Hair; September 10th, 2013 at 03:18 AM. Reason: Add Code Tags

  2. #2
    Join Date
    Aug 2012
    Beans
    9

    Re: Kernel upgrade 12.04

    maybe following command will solve your problem:
    Code:
    sudo apt-get install --install-recommends xserver-xorg-lts-raring
    sudo dpkg-reconfigure xserver-xorg-lts-raring

  3. #3
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Kernel upgrade 12.04

    Tried that but problem still remains. Any idea what the error reports mean?

  4. #4
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Kernel upgrade 12.04

    Still don't know what the problem was, but the following from askubuntu forums seems to have fixed it:-


    The packages causing all this trouble are initramfs-tools and initramfs-tools-bin. Their versions are 0.99ubuntu13 in precise repository and 0.99ubuntu13.1 in precise-updates repository. Somehow the package lists are in a inconsistent state making apt trying to install one version from each repository.
    Remove the package lists:
    sudo rm /var/cache/apt/*.bin /var/lib/apt/lists/* /var/lib/apt/lists/partial/*
    Then run apt-get update to download new package lists, then try apt-get -f install again.

    shareimprove this answer answered Mar 5 at 16:20

    Eric Carvalho
    10.3k102241

    It seems to be hanging a bit on: Found memtest86+ image: /boot/memtest86+.bin. How long is it supposed to stay on that message? – Simianspaceman Mar 5 at 18:20
    It shold be fast. What's the output of apt-get -f install? – Eric Carvalho Mar 5 at 19:43
    it would hang at at all messages that contained boot/memtest86+.bin. In this case it was solved by repeated purging and updating. But removing the lists directory seemed to help. It was ultimately a mix of the two methods. – Simianspaceman Mar 15 at 21:46

    up vote0down vote
    This helped me in solving the issue:
    sudo apt-get remove grub*
    followed by
    sudo apt-get update && sudo apt-get upgrade
    Hope this helps you too.
    Automatic translation from the original answer in Spanish.


  5. #5
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Kernel upgrade 12.04

    Still don't know what the problem was, but the following from askubuntu forums seems to have fixed it:-


    The packages causing all this trouble are initramfs-tools and initramfs-tools-bin. Their versions are 0.99ubuntu13 in precise repository and 0.99ubuntu13.1 in precise-updates repository. Somehow the package lists are in a inconsistent state making apt trying to install one version from each repository.
    Remove the package lists:
    sudo rm /var/cache/apt/*.bin /var/lib/apt/lists/* /var/lib/apt/lists/partial/*
    Then run apt-get update to download new package lists, then try apt-get -f install again.

    shareimprove this answer answered Mar 5 at 16:20

    Eric Carvalho
    10.3k102241
    It seems to be hanging a bit on: Found memtest86+ image: /boot/memtest86+.bin. How long is it supposed to stay on that message? – Simianspaceman Mar 5 at 18:20
    It shold be fast. What's the output of apt-get -f install? – Eric Carvalho Mar 5 at 19:43
    it would hang at at all messages that contained boot/memtest86+.bin. In this case it was solved by repeated purging and updating. But removing the lists directory seemed to help. It was ultimately a mix of the two methods. – Simianspaceman Mar 15 at 21:46

    up vote0down vote
    This helped me in solving the issue:
    sudo apt-get remove grub*
    followed by
    sudo apt-get update && sudo apt-get upgrade
    Hope this helps you too.
    Automatic translation from the original answer in Spanish.


  6. #6
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    8,284
    Distro
    Ubuntu Development Release

    Re: Kernel upgrade 12.04

    The answer posted on Jul 9 at 15.59 seems a bit weird to me. How can removing Grub solve the problem? True you will not see the error messages because they appeared as the Grub configuration files were being updated. But would the system still boot? The two commands that followed would not have reinstalled Grub.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  7. #7
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Kernel upgrade 12.04

    System boots OK, & reports upgrades as current?? Everything seems OK but I now have a Grub screen appearing on boot that I didn't before (12.04 is the only OS on this disk).
    So... I installed Grub Customizer to try to suppress the view & that now reports :-


    grub-mkconfig couldn't be executed successfully. error message
    :
    Generating grub.cfg ...
    Found background: /etc/apt/sources.list
    Unsupported image format

    Which was also one of the errors shown in my original post, so it seems the problem IS with Grub & it's still there! Knowing nothing of Grub, this seems to suggest to me that it is finding my list of repositories where it expects to find a background image? Hence the "unsupported image format" report.
    Any idea how I might fix that?




  8. #8
    Join Date
    Apr 2007
    Location
    europe
    Beans
    73
    Distro
    Ubuntu

    Re: Kernel upgrade 12.04

    the OP's error-log indeed seems weird as grub seems to try to use the repository list (/etc/apt/sources.list) as a background image which makes absolutely no sense to me.
    pycoed, do you recall ever having tampered with /boot/grub/grub.cfg or /etc/default/grub? could you share those files contents with us?
    a listing of all files present in /boot/grub might also help.

    note that i'm by no means an expert in grub issues, i've just come across this thread while experiencing problems (probably of a very different sort) after upgrading to kernel 3.2.0-53.81, but in my case something went berserk with my boot-partition which became unmountable.

  9. #9
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Kernel upgrade 12.04

    So I'm going to have maybe two dumb questions :
    - would you be using any splash image for grub ? From the error message, the wrong image format may relate to a real image and not a kernel image (i said dumb question )
    - I see some precise and some quantal references in the OP error message. What is your sources.list : cat /etc/apt/sources.list
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  10. #10
    Join Date
    Apr 2007
    Location
    europe
    Beans
    73
    Distro
    Ubuntu

    Re: Kernel upgrade 12.04

    Quote Originally Posted by bapoumba View Post
    ... - I see some precise and some quantal references in the OP error message.
    my guess is that the OP installed a newer kerner (from quantal -> 3.5.0-40) that is available in the default 12.04 repos for LTS-reasons.
    by the way, since end of august there are also the 3.8 kernel-backports of raring available for 12.04 in the packages linux-image-generic-lts-raring and linux-headers-generic-lts-raring but that would probably not solve the grub issue he has
    to find out if the quantal kernel package is installed issue
    Code:
    dpkg -l | grep linux-image-generic-lts
    in your terminal. if the output (if any) starts with
    Code:
    ii  linux-image-generic-lts-quantal
    this would be the case but shouldn't matter imho.

    still, the file-contents of /boot/grub/grub.cfg and/or /etc/default/grub as well as a listing of all files in /boot/grub could shed some light on the reasons behind the error messages i guess.
    Last edited by antiplex; September 17th, 2013 at 09:02 PM.

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
  •