apt-get doesn't handle well the case of a full disk/partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
New
|
Unknown
|
|||
apt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Using Oneiric, just updated, and apt 0.8.16~
I ran apt-get install ubuntu-desktop on a server machine, to get it to download a big lot of packages. In parallel, another terminal, I filled up the disk with dd while the apt download was happening.
Sure enough, suddenly apt stopped and stalled:
(...)
Get:133 http://
Get:134 http://
Get:135 http://
Get:136 http://
Get:137 http://
Get:138 http://
Err http://
Error writing to output file - write (28: No space left on device) [IP: 91.189.92.170 80]
Err http://
Bad header line [IP: 91.189.92.170 80]
Err http://
Bad header line [IP: 91.189.92.170 80]
Get:139 http://
Get:140 http://
Get:141 http://
Get:142 http://
Get:143 http://
Get:144 http://
Get:145 http://
Err http://
Error writing to output file - write (28: No space left on device) [IP: 91.189.88.40 80]
12% [Waiting for headers]
It just stays there, timing out for each package, and then tries the next one, times out again, and so on. It will take forever. We hit this problem in Landscape, where an activity would stay apparently stuck forever.
Changed in apt (Debian): | |
status: | Unknown → New |
Sorry, the above was in oneiric, just updated, using apt 0.8.16~exp5ubuntu12