package grub-pc 2.02~beta2-9ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
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@lance-
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-
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-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
/usr/sbin/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
/usr/sbin/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
linux-
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@lance-
grub-pc.0.crash
grub-pc.0.upload
grub-pc.0.uploaded
linux-image-
linux-image-
linux-image-
linux-image-
linux-image-
linux-image-
_usr_lib_
_usr_lib_
_usr_lib_
_usr_sbin_
_usr_sbin_
_usr_sbin_
_usr_share_
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
ProcVersionSign
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:
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=
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)
tags: | removed: need-duplicate-check |
That kernel business appears to have cleaned up after reboot:
lance@lance- desktop: ~$ sudo apt-get -f install image-3. 11.0-15- generic linux-image- 3.11.0- 26-generic 3.11.0- 15-generic (3.11.0- 15.25~precise1) ... postrm. d . postrm. d/initramfs- tools 3.11.0-15-generic /boot/vmlinuz- 3.11.0- 15-generic img-3.11. 0-15-generic postrm. d/zz-update- grub 3.11.0-15-generic /boot/vmlinuz- 3.11.0- 15-generic 3.13.0- 32-generic img-3.13. 0-32-generic +.elf +.bin 3.11.0- 26-generic (3.11.0- 26.45~precise1) ... postrm. d . postrm. d/initramfs- tools 3.11.0-26-generic /boot/vmlinuz- 3.11.0- 26-generic img-3.11. 0-26-generic postrm. d/zz-update- grub 3.11.0-26-generic /boot/vmlinuz- 3.11.0- 26-generic 3.13.0- 32-generic img-3.13. 0-32-generic +.elf +.bin
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-
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-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda1
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda10
Found Ubuntu Utopic Unicorn (development branch) (14.10) on /dev/sda11
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda12
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda13
Found Ubuntu 13.10 (13.10) on /dev/sda14
Found Ubuntu Utopic Unicorn (development branch) (14.10) on /dev/sda15
Found Ubuntu 12.04.4 LTS (12.04) on /dev/sda2
Found Ubuntu 12.04.4 LTS (12.04) on /dev/sda3
Found Ubuntu 12.04.4 LTS (12.04) on /dev/sda6
Found Ubuntu 12.04.4 LTS (12.04) on /dev/sda7
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda8
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda9
Found Ubuntu Utopic Unicorn (development branch) (14.10) on /dev/sdb1
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sdc1
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda1
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda10
Found Ubuntu Utopic Unicorn (development branch) (14.10) on /dev/sda11
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda12
Found Ubuntu 14.04.1 LTS (14.04) on /dev/sda13
F...