package grub-pc 1.97~beta4-1ubuntu4 failed to install/upgrade: ?????????? ?????????? ???????? post-installation ???????? ?? ??????? (Interrupt)

Bug #486219 reported by Denis Konstantinov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub2

Description: Ubuntu 9.10 (upgrade from 9.04 )
Release: 9.10

After upgrade ubuntu i also update grub to grub2 using command upgrade-from-grub-legacy

Every thing works grate until update to grub-pc 1.97~beta4-1ubuntu4

new package grub-pc 1.97~beta4-1ubuntu4 (current installed version 1.97~beta4-1ubuntu2)

After any update grub-pc freeze at configure stage, i have wait one day, but nothing changes.
So, to install other updates i must kill configure process by sending CTRL+C

To debug i change first line in file /var/lib/dpkg/info/grub-pc.postinst
to #!/bin/bash -ex

# dpkg --configure -a -D2
Настраивается пакет grub-pc (1.97~beta4-1ubuntu4) ...
D000002: fork/exec /var/lib/dpkg/info/grub-pc.postinst ( configure 1.97~beta4-1ubuntu2 )
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst configure 1.97~beta4-1ubuntu2
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ case grub-pc in
+ grep -q '[= ]/sbin/update-grub' /etc/kernel-img.conf
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ test -e /boot/grub/core.img
+ grub-mkdevicemap --no-floppy
++ mktemp /tmp/grub.XXXXXXXXXX
+ tmp_default_grub=/tmp/grub.9eRnX1ZpML
+ trap 'rm -f /tmp/grub.9eRnX1ZpML' EXIT
+ cp -p /usr/share/grub/default/grub /tmp/grub.9eRnX1ZpML
+ merge_debconf_into_conf /tmp/grub.9eRnX1ZpML GRUB_CMDLINE_LINUX grub2/linux_cmdline
+ local tmpfile
+ tmpfile=/tmp/grub.9eRnX1ZpML
+ local setting
+ setting=GRUB_CMDLINE_LINUX
+ local template
+ template=grub2/linux_cmdline
+ db_get grub2/linux_cmdline
+ _db_cmd 'GET grub2/linux_cmdline'
+ IFS=' '
+ printf '%s\n' 'GET grub2/linux_cmdline'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ local value
++ echo ''
++ sed -e 's,[$`"\],\\&,g; s,[\@],\\&,g'
+ value=
+ grep -q '^GRUB_CMDLINE_LINUX=' /tmp/grub.9eRnX1ZpML
+ sed -i -re 's@^(GRUB_CMDLINE_LINUX=).*@\1""@' /tmp/grub.9eRnX1ZpML
+ merge_debconf_into_conf /tmp/grub.9eRnX1ZpML GRUB_CMDLINE_LINUX_DEFAULT grub2/linux_cmdline_default
+ local tmpfile
+ tmpfile=/tmp/grub.9eRnX1ZpML
+ local setting
+ setting=GRUB_CMDLINE_LINUX_DEFAULT
+ local template
+ template=grub2/linux_cmdline_default
+ db_get grub2/linux_cmdline_default
+ _db_cmd 'GET grub2/linux_cmdline_default'
+ IFS=' '
+ printf '%s\n' 'GET grub2/linux_cmdline_default'
+ IFS='
'
+ read -r _db_internal_line
+ RET='quiet splash'
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ local value
++ echo 'quiet splash'
++ sed -e 's,[$`"\],\\&,g; s,[\@],\\&,g'
+ value='quiet splash'
+ grep -q '^GRUB_CMDLINE_LINUX_DEFAULT=' /tmp/grub.9eRnX1ZpML
+ sed -i -re 's@^(GRUB_CMDLINE_LINUX_DEFAULT=).*@\1"quiet splash"@' /tmp/grub.9eRnX1ZpML
+ case grub-pc in
+ merge_debconf_into_conf /tmp/grub.9eRnX1ZpML GRUB_TIMEOUT grub-pc/timeout
+ local tmpfile
+ tmpfile=/tmp/grub.9eRnX1ZpML
+ local setting
+ setting=GRUB_TIMEOUT
+ local template
+ template=grub-pc/timeout
+ db_get grub-pc/timeout
+ _db_cmd 'GET grub-pc/timeout'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/timeout'
+ IFS='
'
+ read -r _db_internal_line
+ RET=5
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ local value
++ echo 5
++ sed -e 's,[$`"\],\\&,g; s,[\@],\\&,g'
+ value=5
+ grep -q '^GRUB_TIMEOUT=' /tmp/grub.9eRnX1ZpML
+ sed -i -re 's@^(GRUB_TIMEOUT=).*@\1"5"@' /tmp/grub.9eRnX1ZpML
+ db_get grub-pc/hidden_timeout
+ _db_cmd 'GET grub-pc/hidden_timeout'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/hidden_timeout'
+ IFS='
'
+ read -r _db_internal_line
+ RET=true
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' true = false ']'
+ ucf --three-way --debconf-ok --sum-file=/usr/share/grub/default/grub.md5sum /tmp/grub.9eRnX1ZpML /etc/default/grub
++ ucfq --with-colons /etc/default/grub
++ cut -d : -f 2
+ package=grub-pc
+ echo grub-pc
+ grep -q '^grub-'
+ ucfr --force grub-pc /etc/default/grub
+ case grub-pc in
+ test -e /boot/grub/stage2
++ grub-mkdevicemap -m -
++ sed -e '/^(fd[0-9]\+)/d;s,.*\t,,g'
++ tr '\n' ,
++ sed -e 's/,$//g;s/,/, /g'
+ db_subst grub-pc/install_devices CHOICES /dev/sda, /dev/sdb
+ _db_cmd 'SUBST grub-pc/install_devices' CHOICES /dev/sda, /dev/sdb
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/install_devices CHOICES /dev/sda, /dev/sdb'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ db_input high grub-pc/install_devices
+ _db_cmd 'INPUT high' grub-pc/install_devices
+ IFS=' '
+ printf '%s\n' 'INPUT high grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ db_get grub-pc/install_devices
+ _db_cmd 'GET grub-pc/install_devices'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET=/dev/sdb
+ case ${_db_internal_line%%[ ]*} in
+ return 0
++ echo /dev/sdb
++ sed -e 's/,/ /g'
+ for i in '`echo $RET | sed -e '\''s/,/ /g'\''`'
+ grub-install --no-floppy /dev/sdb

as you can see it freeze on grub-install --no-floppy /dev/sdb

/dev/sdb it is my main hard disk

$ mount
/dev/sdb3 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sdb1 on /boot type ext3 (rw,relatime)
/dev/sdb4 on /home type ext3 (rw,relatime)
/dev/sda1 on /mnt/documents type ext3 (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

but as grub-install it is also bash script i continue to debug (full log in attach grub-install.txt)

# grub-install --no-floppy /dev/sdb
...
+ '[' i386-pc = i386-pc ']'
+ /usr/bin/grub-mkimage --output=/boot/grub/core.img --prefix=/grub biosdisk ext2 part_msdos
+ /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb

# ps aux | grep grub
root 17173 0.0 0.0 1904 760 ? D 11:54 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 17931 0.0 0.0 1904 764 pts/5 D 11:58 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 18631 0.0 0.0 1904 760 pts/5 D 12:02 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 19875 0.0 0.0 1904 760 pts/5 D 12:05 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 21245 0.0 0.0 1904 764 pts/5 D 12:31 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 21901 0.0 0.0 1904 760 pts/5 D 12:34 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 22014 0.0 0.0 1904 760 pts/5 D+ 12:39 0:00 /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sdb
root 22059 0.0 0.0 2972 776 pts/1 S+ 12:41 0:00 grep grub

but i can't kill any of this process, even use command
# kill -9 17173

ProblemType: Package
Architecture: i386
Date: Sat Nov 21 11:53:49 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: подпроцесс установлен сценарий post-installation завершён по сигналу (Interrupt)
Package: grub-pc 1.97~beta4-1ubuntu4
SourcePackage: grub2
Title: package grub-pc 1.97~beta4-1ubuntu4 failed to install/upgrade: подпроцесс установлен сценарий post-installation завершён по сигналу (Interrupt)
Uname: Linux 2.6.32-020632rc6-generic i686

Revision history for this message
Denis Konstantinov (linvinus) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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