package kexec-tools 1:2.0.1-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Interrupt)

Bug #518853 reported by Martin-Éric Racine
66
This bug affects 9 people
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Fix Released
High
Unassigned
Lucid
Fix Released
High
Unassigned

Bug Description

Binary package hint: kexec-tools

Upgrading to this new version of kexec-tools stalls during postinst as folow:

Setting up kexec-tools (1:2.0.1-1ubuntu1) ...
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.32-10-generic
Found kernel: /boot/vmlinuz-2.6.31-14-generic
Found kernel: /boot/memtest86+.bin

^Cdpkg: error processing kexec-tools (--configure):
 subprocess installed post-installation script killed by signal (Interrupt)

After a few minutes of waiting for postinst to complete, I had to manually interrupt.

ProblemType: Package
Architecture: i386
Date: Mon Feb 8 16:56:45 2010
DistroRelease: Ubuntu 10.04
ErrorMessage: subprocess installed post-installation script killed by signal (Interrupt)
Package: kexec-tools 1:2.0.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-12.17-generic
SourcePackage: kexec-tools
Title: package kexec-tools 1:2.0.1-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Interrupt)
Uname: Linux 2.6.32-12-generic i686

Revision history for this message
Martin-Éric Racine (q-funk) wrote :
Changed in kexec-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Test-tools (roland-verifysoft) wrote :

pstree shows that it hangs here
 ├─bash───apt-get───dpkg───frontend───kexec-tools.pos───update-grub

Attaching to update-grub:
$ sudo strace -p 8542
Process 8542 attached - interrupt to quit
read(0,

Well, it seams to wait for something from stdin, nothing comes.
Accoding to /proc/8542/fd/0 that descriptor is a (broken) pipe.

Revision history for this message
Test-tools (roland-verifysoft) wrote :

I have then changed line 1 /usr/sbin/update-grub to
#!/bin/bash -x
Attachement then log.txt from
 sudo apt-get upgrade | tee log.txt
I'm quite sure, that it would like to ask me, if I would:
install the package maintainer's version, keep the local version currently installed, show the.....

Revision history for this message
Test-tools (roland-verifysoft) wrote :

I'm quite sure, that the effected machines have still "grub" installed,
not the newer "grub2".
Here it is so, can the other affected confirm that?

Revision history for this message
Test-tools (roland-verifysoft) wrote :

In debian/kexec-tools.postinst we have
# no triggers in grub2,
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481542
if [ -x /usr/sbin/update-grub ]; then
    update-grub
fi

This does not work with grub, only with grub2, suggesting using trigger here.
Temporarily removing /usr/sbin/update-grub let this package install.

Revision history for this message
Test-tools (roland-verifysoft) wrote :

Please review and apply attached patched.

Currently untested, but small trivial, should work if I have no typos.

Best regards,

Roland "Test-tools" Bär

Revision history for this message
woju (woju) wrote : Re: [Bug 518853] Re: package kexec-tools 1:2.0.1-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Interrupt)

Yes, I would to confirm - upgrade to grub2 repair this problem.
I'm not test patch You prepare, from my point of view problem is resolved,
we can close them.

It is possible that better solution is to patch post-upgrade script, like
You attache in another e-mail, but now I cannot verify this.

On Fri, Feb 12, 2010 at 12:00, Test-tools <email address hidden> wrote:

> I'm quite sure, that the effected machines have still "grub" installed,
> not the newer "grub2".
> Here it is so, can the other affected confirm that?
>
> ** Branch linked: lp:ubuntu/kexec-tools
>
> ** Branch linked: lp:ubuntu/grub
>
> --
> package kexec-tools 1:2.0.1-1ubuntu1 failed to install/upgrade: subprocess
> installed post-installation script killed by signal (Interrupt)
> https://bugs.launchpad.net/bugs/518853
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “kexec-tools” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: kexec-tools
>
> Upgrading to this new version of kexec-tools stalls during postinst as
> folow:
>
> Setting up kexec-tools (1:2.0.1-1ubuntu1) ...
> 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.32-10-generic
> Found kernel: /boot/vmlinuz-2.6.31-14-generic
> Found kernel: /boot/memtest86+.bin
>
> ^Cdpkg: error processing kexec-tools (--configure):
> subprocess installed post-installation script killed by signal (Interrupt)
>
> After a few minutes of waiting for postinst to complete, I had to manually
> interrupt.
>
> ProblemType: Package
> Architecture: i386
> Date: Mon Feb 8 16:56:45 2010
> DistroRelease: Ubuntu 10.04
> ErrorMessage: subprocess installed post-installation script killed by
> signal (Interrupt)
> Package: kexec-tools 1:2.0.1-1ubuntu1
> ProcVersionSignature: Ubuntu 2.6.32-12.17-generic
> SourcePackage: kexec-tools
> Title: package kexec-tools 1:2.0.1-1ubuntu1 failed to install/upgrade:
> subprocess installed post-installation script killed by signal (Interrupt)
> Uname: Linux 2.6.32-12-generic i686
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/518853/+subscribe
>

--
Woju
VCP #23655

Pablo Picasso<http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
- "Computers are useless. They can only give you answers."

tags: added: patch
Revision history for this message
Martin-Éric Racine (q-funk) wrote :

I'm sorry but "upgrading" to grub2 is not an option in every case. Support for legacy GRUB is needed too.

Revision history for this message
Test-tools (roland-verifysoft) wrote :

Also sorry, if the upgrading to grub2 would be an option, then this package has to be marked as conflicts with grub1

Revision history for this message
Matt Zimmerman (mdz) wrote :

This bit me as well, reported as bug 523176 (now marked as a duplicate)

tags: added: regression-potential
Changed in kexec-tools (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kexec-tools - 1:2.0.1-1ubuntu2

---------------
kexec-tools (1:2.0.1-1ubuntu2) lucid; urgency=low

  * Don't call db_stop in the postinst; this is not what it's for, and it
    causes update-grub to break on Ubuntu by killing the frontend that child
    processes expect to talk to. LP: #518853.
 -- Steve Langasek <email address hidden> Wed, 17 Feb 2010 23:04:30 -0800

Changed in kexec-tools (Ubuntu Lucid):
status: Triaged → Fix Released
Revision history for this message
Michael Hammond (mhammond-a) wrote :

This same set of symptoms is exhibited with legacy grub installed and upgrading to precise from oneiric. Installing grub2 as workaround, will report results.

Revision history for this message
Michael Hammond (mhammond-a) wrote :

Installation of grub2 fixes problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.