Trying to install an application causes crash if no free space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
synaptic (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: synaptic
I've tryed to install Eclipse on my Ubuntu instalation. I'm running the 6.06 LTS version.
There was not enought free space to install Eclipse, but the installer application gladly begun to download the files. I got system messages showing that the space was getting critical, and in the meanwhile, I've moved all my personal files to the pen drive.
When it started installing, disk usage reached 100% and I have received an error message from the installer application.
From it on, I've tried to open the "Add/Remove..." application again to remove eclipse, but It would not open, saying that it couldn't copy permissions. Since I had no files to delete, I've decided to reboot the system.
After the reboot, I wasn't able to login with my user account, on the normal screen. After typing the password, it returned to the login screen.
I had to go back to windows to go to IRC ask help, and found that I needed to login on the command mode (crtl+alt +f1) and type sudo apt-get clean && sudo apt-get autoclean.
My suggestions are :
1.Show the ammount of space needed to install an application
2.Don't allow the user to install an application he does not have space to hold
3.Reserve some system space to allow basic operations on the computer, when there is no more disk space
Thanks for the attention, and congratulations for the good work!
description: | updated |
It is quite hard to make sure that there is enough space, since the user could use several different mount points for his file system and we don't know how much space the installed packages requires in each directory.
The problem is that the packages are downloaded as root. And root is allowed to fill up the file system completely. We could only check if the package could be downloaded safely.
I will take a look at mvo's code in the dist-upgrade tool.