apt does not check Free Disk Space before upgrading
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/
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-
PackageArchitec
ProcCmdLine: User Name=UUID=
ProcVersionSign
SourcePackage: linux
Title: package linux-headers-
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) |
Changed in apt (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
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"