Ubuntu

package linux-image-2.6.28-13-generic 2.6.28-13.44 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Reported by oldergeek on 2009-06-11
546
This bug affects 117 people
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Medium
Canonical Foundations Team

Bug Description

auto update reported crash

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
HalComputerInfo:
 Error: command ['lshal', '-u', '/org/freedesktop/Hal/devices/computer'] failed with exit code 1: Could not initialise connection to hald.
 Normally this means the HAL daemon (hald) is not running or not ready.
NonfreeKernelModules: fglrx
Package: linux-image-2.6.28-13-generic 2.6.28-13.44
ProcCmdLine: root=UUID=9078557b-c77b-4e32-9884-fab3ac332bcc ro quiet splash
ProcVersionSignature: Ubuntu 2.6.28-11.42-generic
SourcePackage: linux
Title: package linux-image-2.6.28-13-generic 2.6.28-13.44 failed to install/upgrade: subprocess post-installation script returned error exit status 1

oldergeek (don-maureenfisher) wrote :
Matt Zimmerman (mdz) wrote :

The error output is:

Setting up linux-image-2.6.28-13-generic (2.6.28-13.44) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-13-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.28-13-generic
Found kernel: /boot/vmlinuz-2.6.28-12-generic
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/memtest86+.bin
/usr/share/debconf/confmodule: line 42: printf: write error: Broken pipe
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.28-13-generic (--configure):
 subprocess post-installation script returned error exit status 1

affects: linux (Ubuntu) → grub (Ubuntu)
Changed in grub (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Robbie Williamson (robbiew) wrote :

With the switch to grub2 as default in Karmic, does this problem still occur?

Hello,
thanks for your support.
Due to the fact that my laptop videocard (Radeon XPress 1150) was not longer
supported by ATI in Ubuntu 9.04, I needed to revert back to 8.10.I've made a
fresh install of 8.10 then update again the packages.
(So basically I've made the same steps again in a fresh ubuntu install)
The problem does not occurred any more, so is not longer reproducible on my
PC.
BR,
Mihai

On Tue, Aug 25, 2009 at 10:31 PM, Robbie Williamson <email address hidden>wrote:

> With the switch to grub2 as default in Karmic, does this problem still
> occur?
>
> --
> package linux-image-2.6.28-13-generic 2.6.28-13.44 failed to
> install/upgrade: subprocess post-installation script returned error exit
> status 1
> https://bugs.launchpad.net/bugs/386042
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “grub” package in Ubuntu: Confirmed
>
> Bug description:
> auto update reported crash
>
> ProblemType: Package
> Architecture: amd64
> DistroRelease: Ubuntu 9.04
> ErrorMessage: subprocess post-installation script returned error exit
> status 1
> HalComputerInfo:
> Error: command ['lshal', '-u', '/org/freedesktop/Hal/devices/computer']
> failed with exit code 1: Could not initialise connection to hald.
> Normally this means the HAL daemon (hald) is not running or not ready.
> NonfreeKernelModules: fglrx
> Package: linux-image-2.6.28-13-generic 2.6.28-13.44
> ProcCmdLine: root=UUID=9078557b-c77b-4e32-9884-fab3ac332bcc ro quiet splash
> ProcVersionSignature: Ubuntu 2.6.28-11.42-generic
> SourcePackage: linux
> Title: package linux-image-2.6.28-13-generic 2.6.28-13.44 failed to
> install/upgrade: subprocess post-installation script returned error exit
> status 1
>

Robbie Williamson (robbiew) wrote :

Lowering to medium for now...want to keep an eye on it still.

Changed in grub (Ubuntu):
importance: High → Medium
Steve Langasek (vorlon) wrote :

Note that this bug report is unrelated to the ucf bug that has been fixed. I'm not sure what's causing the error shown here.

security vulnerability: no → yes
security vulnerability: yes → no
Cyprian Guerra (cyprian-guerra) wrote :

I'm not really sure if it's related but a crash occured when first window with some kind of comparison in menu.lst displayed and I wanted to go back to check what it was... Then I clicked "cancel" by accident and boom - the crash.

Cyprian Guerra (cyprian-guerra) wrote :

Whatever it means:

E: linux-image-2.6.28-16-generic: subprocess post-installation script returned error exit status 1
E: linux-restricted-modules-2.6.28-16-generic: dependency problems - leaving unconfigured
E: linux-image-generic: dependency problems - leaving unconfigured
E: linux-restricted-modules-generic: dependency problems - leaving unconfigured
E: linux-generic: dependency problems - leaving unconfigured

Steve Langasek (vorlon) wrote :

trespasser, that's an unrelated issue. Yes, when you cancel out of a config file resolution dialog, the package configuration will be deferred in the manner shown.

Kent Lion (kent-lion) wrote :

This problem occured for me on an Intel Pentium III, today during automatic update installation. The installation stopped because I had made changes to my /var/run/grub/menu.lst to eliminate the boot time offer to start:
  Ubuntu 9.04, kernel 2.6.28-15-generic
  Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
...and...
  Ubuntu 9.04, kernel 2.6.28-11-generic
  Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
...and the package installer wanted to know if it should keep my changes or use the new version. I tried viewing the differences a couple of different ways, and then asked the manager to start a shell so I could look at the situation more carefully. Then I was interrupted, and when I returned after 10 or 15 minutes, the dialog no longer responded and the installer no longer responded. I started a terminal session, found menu.lst, made a backup copy of it, and then went to the terminal window of the installer and entered "exit". That caused the installer to continue to "completion", but resulting in this set of errors:

E: linux-image-2.6.28-16-generic: subprocess post-installation script returned error exit status 1
E: linux-restricted-modules-2.6.28-16-generic: dependency problems - leaving unconfigured
E: linux-image-generic: dependency problems - leaving unconfigured
E: linux-restricted-modules-generic: dependency problems - leaving unconfigured
E: linux-generic: dependency problems - leaving unconfigured

...and an incomplete installation. So, something is wrong with the updater. If it stops for input, it doesn't properly wait for that input, and might end up doing something it shouldn't do without the input it stopped for.

It'll be interesting to see if I can get the updates properly installed, or at least uninstalled...

cedial (cedial) wrote :

I did not allow the installer to change grub's menu.lst file and this error was the result. Changing menu.lst is pure hell in Ubuntu, and I will not use any form of Linux unless I can make Windows 7 is the default boot option. Editing menu.lst to make that happen is idiot simple, but try and save your changes when Ubuntu is hell bent on denying you root privileges!

teixidoj (jjteixido) wrote :

 I'm not sure why I received this error, things are working ok for me. I am running Ubuntu 9.04 inside a Microsoft Virtual PC 2007. I did modify my /boot/grub/menu.lst file so that I can modify my resolution on my video card:

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid ef1aa430-673c-4d77-a1a5-a97d446e07db
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ef1aa430-673c-4d77-a1a5-a97d446e07db ro xforcevesa noreplace-paravirt quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

Merry Wilding (thewindflower) wrote :

Same thing happened with me, as with trespasser. I was trying to compare the grub menu.lst changes (since when I originally upgrade from jaunty to karmic and kept my menu.lst it ended up pointing to the wrong kernel and wrecked all kinds of havoc till I figured out that was the cause). This go round I hit "cancel" by accident. It appeared to finish install and crashed.

earthsound (earthsound) wrote :

Running Ubuntu 9.04, i686 version on an AMD Athlon 2500+, using Upgrade Manager to install linux-image-2.6.28-18-generic (2.6.28-18.59). During the install, I was asked what I wanted to do about the menu.lst. After choosing to accept the maintainer's version, I walked away & when I came back there was an indication that several packages had failed. Here is the relevant section of /var/log/apt/term.log:

Setting up linux-image-2.6.28-18-generic (2.6.28-18.59) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-18-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.28-18-generic
Found kernel: /boot/vmlinuz-2.6.28-17-generic
Found kernel: /boot/vmlinuz-2.6.28-16-generic
Found kernel: /boot/vmlinuz-2.6.28-15-generic
Found kernel: /boot/vmlinuz-2.6.27-14-generic
Found kernel: /boot/memtest86+.bin
/usr/share/debconf/confmodule: line 42: printf: write error: Broken pipe
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.28-18-generic (--configure):
 subprocess post-installation script returned error exit status 1

First time I've seen this in quite a few kernel updates and several major versions of Ubuntu.

earthsound (earthsound) wrote :

Additionally, it appears the menu.lst was generated correctly, but the rest of the packages weren't installed properly. I've attached the end of /var/log/apt/term.log.

Ubunt"u"ser (hans-schaaij) wrote :

AMD64! package linux-image-2.6.32-22-generic 2.6.32-22.36 failed to install/upgrade: subproces installed post-installation script gaf een foutwaarde 2 terug

Hallo,

Don't know whether this is a bug or my own fault, I'll try to sort this out again this afternoon. It 's in 10.04 on an extern disk. USB. Completely fresh install. Received a message in my screen telling me to rapport a bug. Do not know if this is one. Couldn follow the instuctions, machine down now.

What I can tell:

E: linux-image-2.6.32-22-generic: subproces installed post-installation script gaf een foutwaarde 2 terug
E: linux-image-generic: vereistenproblemen - blijft ongeconfigureerd
E: linux-generic: vereistenproblemen - blijft ongeconfigureerd

Voorconfigureren van pakketten:
(Database inlezen .... 148973 bestanden en mappen geïnitialiseerd.)
Voorbereiden om grub-pc 1.98-1ubuntu te vervangen (door .../grub-pc_1.98-1ubuntu6-amd64.deb) ...
Uitpakken van vervangende grub-pc
Processinf triggers for man-db ...
Instellen van van Linux-image-2.6.32-22-generic (2.6.32-22.36) ...
Running depmod.
update initramfs: Generating /boot/initrd.img-2.6.32-22-generic
cp: cannor stat /vmlinuz: No such file or directory
Failed to cereate initrd image.
dpkg: fout bij afhandelen van Linux image-2.6.32-22-generic (--configure):
subproces installed post ihntsallation script gaf een foutwaarde 2 terug dpkg: vereistenproblemen verhinderen de configuratie van Linux image generic. Linux image generic is afhankelijk van Linux-image generic (= 2.6.32.22.23); maar: Pakket Linux-image generic is nog niet geconfigureerd
dpkg: fout bij afhandelen (--configure): vereistenproblemen - blijft ongeconfigureerd
Instellen van Grub PC (1.98-1ubuntu6).....
It's a follow up error from a previous failure. No rapport written.
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is dev mounted?).
No path or device specified. Try --modules explicitly.

I will try, tommorow, Have to sleep now.

Hope it was of some help.

To post a comment you must log in.