Results 1 to 10 of 10

Thread: image upgrades not working

  1. #1
    Join Date
    Sep 2007
    Beans
    20

    image upgrades not working

    The linux images are no longer upgrading.

    This is the summary at the end of a long output:

    linux-image-3.2.0-26-generic
    linux-image-3.2.0-27-generic
    linux-image-generic
    linux-image
    linux-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried the usual recommendations:

    sudo apt-get install -f
    sudo dpkg --configure -a
    sudo apt-get install -f

    to no avail.

    Any more suggestions?

  2. #2
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: image upgrades not working

    Code:
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    No other specifics?

    Also see if there's anything of interest at the end of /var/log/apt/term.log.
    ...

  3. #3
    Join Date
    Sep 2007
    Beans
    20

    Re: image upgrades not working

    Sorry, there is quite a bit more:


    Setting up linux-image-3.2.0-26-generic (3.2.0-26.41) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-27-generic
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
    update-initramfs: Generating /boot/initrd.img-3.2.0-26-generic
    E: /usr/share/initramfs-tools/hooks/watershed failed with return 1.
    update-initramfs: failed for /boot/initrd.img-3.2.0-26-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-26-generic.postinst line 1010.
    dpkg: error processing linux-image-3.2.0-26-generic (--configure):
    subprocess installed post-installation script returned error exit status 2
    Setting up linux-image-3.2.0-27-generic (3.2.0-27.43) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
    update-initramfs: Generating /boot/initrd.img-3.2.0-27-generic
    E: /usr/share/initramfs-tools/hooks/watershed failed with return 1.
    update-initramfs: failed for /boot/initrd.img-3.2.0-27-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-27-generic.postinst line 1010.
    dpkg: error processing linux-image-3.2.0-27-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-26-generic; however:
    Package linux-image-3.2.0-26-generic is not configured yet.
    dpkg: error processing linux-image-generic (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-image:
    linux-image depends on linux-image-generic (= 3.2.0.26.28); however:
    Package linux-image-generic is not configured yet.
    dpkg: error processing linux-image (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-generic:
    linux-generic depends on linux-image-generic (= 3.2.0.26.28); however:
    Package linux-image-generic is not configured yet.
    dpkg: error processing linux-generic (--configure):
    dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
    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-26-generic
    linux-image-3.2.0-27-generic
    linux-image-generic
    linux-image
    linux-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  4. #4
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: image upgrades not working

    looks like you does not got the kernel headers, or these downloads are corrupted

    is it a genuine ubuntu kernel ?

    https://launchpad.net/ubuntu/+source/linux

  5. #5
    Join Date
    Sep 2007
    Beans
    20

    Re: image upgrades not working

    Yes, somehow I had unintentionally installed 12.10 so I recently downloaded Kubuntu 12.04 do CDROM which was a pain to install but after about many tries and about 6 hours it got installed except for this problem.

    I am hoping to fix this without another install. This problem or something similar appears to be experienced by others but as I said the usual:

    sudo apt-get install -f
    sudo dpkg --configure -a

    does nothing to help.

    Somehow the linux-image stuff is corrupted but still running okay except for these updating issues.

  6. #6
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: image upgrades not working

    you need to clean the system as much as you can: clean/autoclean/autoremove/bleachit (as root) and also /lib/modules/theBorkedKernelFolders

  7. #7
    Join Date
    Sep 2007
    Beans
    20

    Re: image upgrades not working

    Thanks, I can do all the apt-get & bleachit but I don't know what I need to do for:

    /lib/modules/theBorkedKernelFolders

    What files can I safely delete and which ones are needed?

  8. #8
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: image upgrades not working

    Code:
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
    update-initramfs: Generating /boot/initrd.img-3.2.0-26-generic
    E: /usr/share/initramfs-tools/hooks/watershed failed with return 1.
    update-initramfs: failed for /boot/initrd.img-3.2.0-26-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-26-generic.postinst line 1010.
    That there is your issue.

    Code:
    Package: watershed
    Priority: extra
    Section: admin
    [...]
    Description-en: reduce superfluous executions of idempotent command
     watershed may be run around a command such that any further attempts to
     run the command while another copy is running will only result in one
     initial further attempt.
    Is this watershed something you're actually using? It looks to be LVM-related.

    Regardless, for whatever reason its update-initramfs hook exits with errors. Looking at said script, the only way I can see that happening is if the /lib/udev/watershed file is missing or otherwise cannot be read.

    • To manually run update-initramfs with (hopefully interesting) verbose output of what's happening;
      Code:
      $ sudo update-initramfs -vuk 3.2.0-26-generic
    • To (reversibly) disable watershed being copied into initramfs;
      Code:
      $ sudo chmod -x /usr/share/initramfs-tools/hooks/watershed
    Last edited by Zorael; July 24th, 2012 at 08:19 PM. Reason: typo
    ...

  9. #9
    Join Date
    Sep 2007
    Beans
    20

    Re: image upgrades not working

    Thanks Zorael, I used:

    $ sudo chmod -x /usr/share/initramfs-tools/hooks/watershed

    then

    $ sudo apt-get install -f

    and now everything appears to be okay.

    I have no idea why watershed was there it was not indicated as 'installed' by Synaptic.

    Thanks again,
    Roger

    P.S. I would mark it SOLVED but I don't see where that is done?
    Last edited by RogerM; July 24th, 2012 at 08:00 PM.

  10. #10
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: image upgrades not working

    Cheers. :3

    Thread Tools (up top) -> Mark this thread as solved
    ...

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
  •