$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04 LTS
Release:        10.04
Codename:       lucid

$ uname -srv
Linux 2.6.32-22-server #33-Ubuntu SMP Wed Apr 28 14:34:48 UTC 2010

$ dpkg -l grub-pc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version                     Description
+++-===========================-===========================-======================================================================
iF  grub-pc                     1.98-1ubuntu6               GRand Unified 
Bootloader, version 2 (PC/BIOS version)

$ sudo dpkg --configure -a -D2
Setting up grub-pc (1.98-1ubuntu6) ...
D000002: fork/exec /var/lib/dpkg/info/grub-pc.postinst ( configure 
1.98-1ubuntu5 )
Use of uninitialized value $value in substitution (s///) at 
/usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $value in substitution (s///) at 
/usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 2.
Use of uninitialized value $item in hash element at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 70, <$__ANONIO__> chunk 3.
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-pc

Edited "/var/lib/dpkg/info/grub-pc.postinst" adding "set -x" near the
top.

... skip ...

+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[   ]*} in
+ return 0
+ db_get grub-pc/install_devices_disks_changed
+ _db_cmd 'GET grub-pc/install_devices_disks_changed'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices_disks_changed'
+ IFS='
'
+ read -r _db_internal_line
+ RET=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ case ${_db_internal_line%%[   ]*} in
+ return 0
+ failed_devices=
++ sed -e 's/,/ /g'
++ echo /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ for i in '`echo $RET | sed -e '\''s/,/ /g'\''`'
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ real_device=
+ rm -f /tmp/grub.DxLX7SW64D
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-pc

There is no /dev/disk/by-id directory at all.

-- 
package grub-pc 1.96+20090826-3ubuntu3 failed to install/upgrade: subprocess 
installed post-installation script returned error exit status 1
https://bugs.launchpad.net/bugs/420884
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to