[Bug 1274521] Re: package linux-image-3.8.0-35-generic 3.8.0-35.50~precise1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Karim Hosein
khosein at Magicleap.com
Thu Jan 30 19:41:55 UTC 2014
Actually, you may be correct about grub-pc package having residual files
on the pc although the first few times I had this problem, the error
kept coming back that /etc/default/grub file does not exist. At that
time, I did sudo apt-get install grub but that still failed to complete
the kernel install. Then I copied /etc/default/burg to /etc/default/grub
(to get rid of the file does not exist error) and that worked.
GrUB is installed by default on first install of Ubuntu but after
installing BURG I had uninstalled GrUB.
I suspect that an initial failed install of the kernel left the new GrUB
in an incomplete state of install.
Nevertheless, I just updated another identical machine to the 3.8 kernel
and this time, the kernel update said, "installing previously unselected
package grub-pc...." which was clearly not installed before. This time
the kernel upgrade did a full and complete install of GrUB and set it as
my bootloader even though it was not installed and BURG was. It made no
attempts to update BURG nor to access /etc/default/burg. I had to force
a re-install of BURG to get it back.
Therefore, the kernel upgrade insists that I must have GrUB installed
even when I have a perfectly good working alternate bootloader.
If you want me to try for reproducible error, I have four more identical
machines to do before close of business Friday.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub in Ubuntu.
https://bugs.launchpad.net/bugs/1274521
Title:
package linux-image-3.8.0-35-generic 3.8.0-35.50~precise1 failed to
install/upgrade: subprocess installed post-installation script
returned error exit status 2
Status in “grub” package in Ubuntu:
Invalid
Bug description:
always occurs on upgrade with 12.04 whether on the 3.5 or 3.8 kernel
Unpacking linux-headers-generic-lts-raring (from .../linux-headers-generic-lts-raring_3.8.0.35.35_amd64.deb) ...
Setting up linux-image-3.5.0-45-generic (3.5.0-45.68~precise1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-45-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
Searching for GRUB installation directory ... found: /boot/grub
/etc/default/grub: line 5: $'\r': command not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-45-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-45-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.8.0-35-generic (3.8.0-35.50~precise1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-35-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
Searching for GRUB installation directory ... found: /boot/grub
/etc/default/grub: line 5: $'\r': command not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.8.0-35-generic.postinst line 1010.
dpkg: error processing linux-image-3.8.0-35-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-45-generic; however:
Package linux-image-3.5.0-45-generic is not configured yet.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-lts-raring:
linux-image-generic-lts-raring depends on linux-image-3.8.0-35-generic; however:
Package linux-image-3.8.0-35-generic is not configured yet.
dpkg: error processing linux-image-generic-lts-raring (--configure):
dependency problems - leaving unconfiguNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
red
Setting up linux-headers-generic-lts-raring (3.8.0.35.35) ...
Errors were encountered while processing:
linux-image-3.5.0-45-generic
linux-image-3.8.0-35-generic
linux-image-generic-lts-quantal
linux-generic-lts-quantal
linux-image-generic-lts-raring
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: linux-image-3.8.0-35-generic 3.8.0-35.50~precise1
ProcVersionSignature: Ubuntu 3.5.0-23.35~precise1-generic 3.5.7.2
Uname: Linux 3.5.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Thu Jan 30 09:20:45 2014
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
MarkForUpload: True
SourcePackage: grub
Title: package linux-image-3.8.0-35-generic 3.8.0-35.50~precise1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1274521/+subscriptions
More information about the foundations-bugs
mailing list