apt does not check Free Disk Space before upgrading

Bug #561238 reported by silentashes
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

The Update Manager, as well as apt, apt-get and aptitude, need to check the free disk space.

There needs to be a comparison of the disk space which *will* be used, both *during download* and *after unpacking*....
... and that needs to be compared to the Free Disk Space to see whether it will succeed or not!

Why doesn't APT do this automatically?
Shouldn't it check for free disk space *before* starting the download and upgrade process?

Running Ubuntu 8.10

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/src/linux-headers-2.6.27-17/include/linux/wanrouter.h'
LsUsb:
 Bus 002 Device 004: ID 0443:000c Gateway, Inc.
 Bus 002 Device 003: ID 046d:c066 Logitech, Inc.
 Bus 002 Device 002: ID 0443:000d Gateway, Inc.
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Package: linux-headers-2.6.27-17 2.6.27-17.46
PackageArchitecture: all
ProcCmdLine: User Name=UUID=1890C81B90C7FD6E loop=/hostname/disks/home/username.disk ro ROOTFLAGS=syncio splash
ProcVersionSignature: Ubuntu 2.6.27-17.46-generic
SourcePackage: linux
Title: package linux-headers-2.6.27-17 2.6.27-17.46 failed to install/upgrade: failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/src/linux-headers-2.6.27-17/include/linux/wanrouter.h'

Revision history for this message
silentashes (joecool) wrote :
summary: - Update Manager does not check Free Disk Space before upgrading! Leads
- to failed/broken packages. package linux-headers-2.6.27-17 2.6.27-17.46
- failed to install/upgrade: failed in buffer_write(fd) (10, ret=-1):
- backend dpkg-deb during `./usr/src/linux-
- headers-2.6.27-17/include/linux/wanrouter.h'
+ apt does not check Free Disk Space before upgrading
affects: linux (Ubuntu) → apt (Ubuntu)
Phillip Susi (psusi)
Changed in apt (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

APT checks this and shows you the information:
  Need to get 8314 kB of archives.
  After this operation, 30.3 MB of additional disk space will be used.

It also errors out if you do not have enough free space:
  "You don't have enough free space in %s"

Changed in apt (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.