update incorrectly assesses free space in /usr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When trying to update the kernel group of packages (i.e. kernel, headers, etc.) update-manager stops and tells me:
The upgrade needs a total of 263 M free space on disk '/usr'. Please free at least an additional 88.9 M of disk space on '/usr'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
But since we know that the only package that's going to want space in "/usr" is the kernel-headers and since we know the kernel-headers package actually wants space in /usr/src, we can determine that update-manager is incorrectly assuming /usr/src/ is in /usr. /usr/src here has lots of room for another kernel-headers package:
$ df -h /usr /usr/src
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
linux:/usr/src 85G 80G 735M 100% /usr/src
I'm sure if /usr/src had GBs free the complaint would still be the same since we can see that 735M is well clear of 263M.
Sure enough, I freed space in /usr:
$ df -h /usr /usr/src
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
linux:/usr/src 85G 80G 735M 100% /usr/src
and the update proceeded.
So, update manager assuming that /usr/src == /usr is bad and broken.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: update-manager 1:0.150.5.1
ProcVersionSign
Uname: Linux 2.6.38-12-generic i686
NonfreeKernelMo
Architecture: i386
Date: Tue Nov 29 14:55:50 2011
PackageArchitec
ProcEnviron:
LANGUAGE=C:en
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: Upgraded to natty on 2007-04-05 (1699 days ago)
That version is no more maintained