Bug 233211 - Software update should check available free space before caching files
Summary: Software update should check available free space before caching files
Status: RESOLVED UPSTREAM
Alias: None
Product: kpackagekit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Steven M. Parrish
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-03 23:08 UTC by Mark Reynolds
Modified: 2010-07-21 17:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Reynolds 2010-04-03 23:08:09 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

My root partition is 6GB in size which is easily enough for the OS, applications and multiple versions of the kernel, yet when I do a Software Update enough data can be cached in /var/cache/apt/archives/ that the system will fail part way through and I will be unable to login because KDE is unable to write to the /tmp directory and I will have to boot off a live CD and remove data manually and then tell apt to do a fix.

A simple way around this would be to use the output of the df command to get the amount of free space and only cache that much minus some guard amount so that, even if all of it were needed to perform the update KDE would still be able to function.
Comment 1 Christoph Feck 2010-04-09 16:43:39 UTC
Assuming that software updates are done via KPackageKit in Ubuntu. If not, please reassign accordingly.

Regarding the impossible login with full disk, see bug 81653.
Comment 2 Jonathan Thomas 2010-07-21 17:39:27 UTC
This is something for the PackageKit backends to handle, as the space requirements may differ from package system to package system. The APTcc PackageKit backend supports this, for example, and KPackageKit shows a "not enough space" error when the backend tells it to show one.