[Bug 1173468] Re: release upgrade doesn't properly calculate free space needed for /boot
Bruce Miller
bugs at brmiller.ca
Fri May 17 17:24:18 UTC 2013
The same problem appears to have occurred during the upgrade from
3.8.0-19 to 3.8.0-21. In other words, this bug appears to be of broader
scope than just the release upgrade.
I worked around the problem by deleting the abi, initrd.img and
System.map files for 3.8.0-19. I did so with much trepidation, because
other life priorities have reduced the time I am able to spend to keep
my Linux knowledge as sharp as it once was.
This is the screen output from the upgrade process:
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-21-generic /boot/vmlinuz-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-21-generic
Found initrd image: /boot/initrd.img-3.8.0-21-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /memtest86+.bin
done
Setting up amarok-doc (2:2.7.0-0ubuntu2.1) ...
Setting up amarok-common (2:2.7.0-0ubuntu2.1) ...
Setting up amarok-utils (2:2.7.0-0ubuntu2.1) ...
Setting up amarok (2:2.7.0-0ubuntu2.1) ...
Setting up linux-image-extra-3.8.0-21-generic (3.8.0-21.32) ...
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-21-generic /boot/vmlinuz-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-21-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.8.0-21-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-extra-3.8.0-21-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.8.0-21-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-extra-3.8.0-21-generic; however:
Package linux-image-extra-3.8.0-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-headers-3.8.0-21 (3.8.0-21.32) ...
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Setting up linux-headers-3.8.0-21-generic (3.8.0-21.32) ...
Setting up linux-headers-generic (3.8.0.21.37) ...
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.8.0.21.37); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-libc-dev:amd64 (3.8.0-21.32) ...
No apport report written because MaxReports is reached already
Setting up libkscreen0 (0.0.92-0ubuntu0.1) ...
Setting up kscreen (0.0.92-0ubuntu0.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-image-extra-3.8.0-21-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-extra-3.8.0-21-generic (3.8.0-21.32) ...
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-21-generic /boot/vmlinuz-3.8.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-21-generic /boot/vmlinuz-3.8.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-21-generic
gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-3.8.0-21-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-extra-3.8.0-21-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.8.0-21-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-extra-3.8.0-21-generic; however:
Package linux-image-extra-3.8.0-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.8.0.21.37); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-extra-3.8.0-21-generic
linux-image-generic
linux-generic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1173468
Title:
release upgrade doesn't properly calculate free space needed for /boot
Status in “ubuntu-release-upgrader” package in Ubuntu:
Fix Released
Bug description:
Hi,
I'm upgrading from to the latest Kubuntu release and the installer
prompted me to raise a bug report when it got to configuring the
linux-image package.
I know what's happend - I've only got a ~100Mb boot partition and I've
got a couple of kernel images installed already so there just isn't
space to install the new image.
Further information requested:
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Ubuntu 13.04 (upgrading from latest 12.10)
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
linux-image-3.8.0-19-generic
3) What you expected to happen
Expected installer to check the required disk space before beginnning the upgrade process and refuse to install or for the package installation to fail with a less serious message. Would be even nicer if the upgrader offered to resize the boot partition to be a bit larger or if the kernel-image package didn't keep so many old versions of itself installed
4) What happened instead
At the moment I get a message saying something like "package failed to install, please consider raising a bug report" -- I can't see the exact message as I'm half way through the upgrade and the KDE window manager seems to have disapeared...
---
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
CrashDB: ubuntu
DistroRelease: Ubuntu 13.04
InstallationDate: Installed on 2012-07-05 (296 days ago)
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
MarkForUpload: True
NonfreeKernelModules: fglrx
Package: ubuntu-release-upgrader (not installed)
ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
Tags: raring dist-upgrade
Uname: Linux 3.8.0-19-generic x86_64
UpgradeStatus: Upgraded to raring on 2013-04-27 (0 days ago)
UserGroups: adm cdrom davfs2 dialout dip lpadmin netdev plugdev sambashare staff sudo www-data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1173468/+subscriptions
More information about the foundations-bugs
mailing list