[Bug 1351414] Re: package grub-pc 2.02~beta2-9ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
Erick Brunzell
lbsolost at yahoo.com
Sun Aug 3 00:08:06 UTC 2014
I performed a couple more upgrade tests and this really is quite a
corner issue. It seems that the OS being upgraded must be on drive sda
and grub must be installed in the pbr rather than the mbr for the user
to even be confronted with the dialog window asking where to install
grub. Since only the mbr's of the existing drives appear as choices, if
the user selects nothing it triggers this bug which also results in not
all old kernels being cleaned up, but it can be resolved post-upgrade by
running "sudo update-grub" followed by "apt-get -f install".
So I suppose it could be argued that whenever the criteria is met for
the upgrade process to display the grub-install dialog that the pbr of
the appropriate partition(s) should be displayed as well as just mbrs.
Regardless I think it's a low priority bug.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1351414
Title:
package grub-pc 2.02~beta2-9ubuntu1 failed to install/upgrade:
ErrorMessage: subprocess installed post-installation script returned
error exit status 1
Status in “grub2” package in Ubuntu:
New
Bug description:
Just performed an Ubuntu Precise + Trusty HWE -> Trusty release
upgrade test as a follow up to bug #1348067 and bug #1347964, also in
part because people are driving me nuts wondering why their Precise
installs aren't yet offering the upgrade to Trusty, and during the
upgrade I was only offered the option of installing grub to the mbr of
any of my three connected drives, but I wanted it in the pbr of the
partition where the OS resided so I left all boxes unchecked and
proceeded. Then on reboot apport offered to file this bug so here I
am.
There are additional problems regarding the clean-up of old kernels as
shown here:
lance at lance-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libpostproc52
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
linux-image-3.11.0-15-generic linux-image-3.11.0-26-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 310 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 171480 files and directories currently installed.)
Removing linux-image-3.11.0-15-generic (3.11.0-15.25~precise1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-15-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/disk/by-uuid/9305c825-bbef-4222-a3c8-9c87483e0592'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.11.0-15-generic.postrm line 328.
dpkg: error processing package linux-image-3.11.0-15-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.11.0-26-generic (3.11.0-26.45~precise1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-26-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/disk/by-uuid/9305c825-bbef-4222-a3c8-9c87483e0592'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.11.0-26-generic.postrm line 328.
dpkg: error processing package linux-image-3.11.0-26-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-3.11.0-15-generic
linux-image-3.11.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sort of odd though that apport shows linux 3.11* not being an official
ubuntu package. You can see here that a number of errors popped up on
first boot:
lance at lance-desktop:~$ ls /var/crash
grub-pc.0.crash
grub-pc.0.upload
grub-pc.0.uploaded
linux-image-3.11.0-15-generic.0.crash
linux-image-3.11.0-15-generic.0.upload
linux-image-3.11.0-15-generic.0.uploaded
linux-image-3.11.0-26-generic.0.crash
linux-image-3.11.0-26-generic.0.upload
linux-image-3.11.0-26-generic.0.uploaded
_usr_lib_i386-linux-gnu_libgtk-3-0_gtk-update-icon-cache-3.0.0.crash
_usr_lib_i386-linux-gnu_libgtk-3-0_gtk-update-icon-cache-3.0.0.upload
_usr_lib_i386-linux-gnu_libgtk-3-0_gtk-update-icon-cache-3.0.0.uploaded
_usr_sbin_cupsd.0.crash
_usr_sbin_cupsd.0.upload
_usr_sbin_cupsd.0.uploaded
_usr_share_apport_apport-gtk.0.crash
So I assume that Precise -> Trusty upgrades are not being offered yet
for a reason ;^)
BTW at first blush I think this may be a duplicate of bug #1311543 but
since it's marked invalid I decided to let apport do it's thing.
Sorry to be a pain in the neck.
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: grub-pc
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
Uname: Linux 3.13.0-32-generic i686
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: i386
Date: Fri Aug 1 11:41:29 2014
DuplicateSignature: package:grub-pc:2.02~beta2-9ubuntu1:ErrorMessage: subprocess installed post-installation script returned error exit status 1
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2014-07-24 (7 days ago)
InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release i386 (20140204)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic root=UUID=9305c825-bbef-4222-a3c8-9c87483e0592 ro quiet splash
SourcePackage: grub2
Title: package grub-pc 2.02~beta2-9ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-08-01 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1351414/+subscriptions
More information about the foundations-bugs
mailing list