[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#687821: fails to ensure sufficient free space for kernel install



Package: linux
Version: 3.2.0-3-amd64
Severity: important

I have flagged this as `important' because (a) it impacts people using
default settings from guided partitioning, and (b) it seems essential to
be able to have at least two kernels installed concurrently, otherwise
upgrades are impossible.  However, it does not leave the system broken.

This is a wheezy box that I set up a few months ago (not long before the
freeze).  During install, I used guided partitioning, and I accepted the
default recommendations for root, which is not so big:

root@wheezy1:~# df -lh /
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/wheezy1-root  330M  266M   48M  85% /



Now, running `apt-get dist-upgrade' chokes on updating the linux-image
package.  Two issues come to mind:

a) are the kernel packages bigger in wheezy?  does the guided
partitioning need to leave more space so that people can have two
kernels installed at any one time?

b) why didn't apt-get detect the lack of space early on?



# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-3.2.0-3-amd64
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
424 not fully installed or removed.
Need to get 0 B/23.3 MB of archives.
After this operation, 2,109 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 255116 files and directories currently installed.)
Preparing to replace linux-image-3.2.0-3-amd64 3.2.21-3 (using
.../linux-image-3.2.0-3-amd64_3.2.23-1_amd64.deb) ...
Unpacking replacement linux-image-3.2.0-3-amd64 ...
dpkg: error processing
/var/cache/apt/archives/linux-image-3.2.0-3-amd64_3.2.23-1_amd64.deb
(--unpack):
 cannot copy extracted data for
'./lib/modules/3.2.0-3-amd64/kernel/drivers/scsi/libfc/libfc.ko' to
'/lib/modules/3.2.0-3-amd64/kernel/drivers/scsi/libfc/libfc.ko.dpkg-new': failed
to write (No space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-3-amd64
/boot/vmlinuz-3.2.0-3-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-3-amd64
/boot/vmlinuz-3.2.0-3-amd64
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.2.0-3-amd64_3.2.23-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Reply to: