Incorrect instructions leave automatic updates blocked when /boot is full
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Brian Murray | ||
Zesty |
Fix Released
|
Medium
|
Brian Murray | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
A system's /boot mount point can fill up for many reasons and update-manager's free space check will cause update-manager to exit. A generic error message is presented which does not provide specific information to remedy the situation and subsequently can leave systems insecure.
[Test Case]
0) Ensure your system does not have the latest kernel installed
1) Create a file to be used as a /boot partition (dd if=/dev/zero of=fake-boot bs=1024 count=204800)
2) mkfs -t ext3 fake-boot
3) copy your real /boot somewhere
4) sudo mount -t ext3 fake-boot /boot
5) copy the files from step 3 to /boot
6) fill up /boot so there is less 60MB free space
7) run update-manager
8) Click "Install Now"
With the current version of update-manager you'll see an error message with instructions to "empty your trash and remove temporary packages." With the version of update-manager in -proposed you'll receive a message regarding using "sudo apt autoremove".
[Regression Potential]
We are just changing the strings used in the error message, which will introduce untranslated strings but that is better than leaving people with systems that cannot update.
Original Description
-------
What happens:
Default installations regularly fail package updates when /boot fills up. While the ultimate cause of this bug lies elsewhere, update-manager gives the user incorrect instructions when the failure occurs:
"Not enough free disk space The upgrade needs a total of 104 M free space on disk '/boot'. Please free at least an additional 85.6 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'."
These instructions do not work, and software updates from this point on fail. The user is left vulnerable, unless they have knowledgeable assistance or are technically capable enough to research and fix the problem themselves.
What should happen:
update-manager should provide valid instructions for dealing with this well known problem, or better yet perform the operation itself. It is responsible for keeping the users machine up to date, and needs to handle this and similar failures.
ProblemType: BugDistroRelease: Ubuntu 15.04
Package: update-manager 1:15.04.7
ProcVersionSign
Uname: Linux 3.19.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jul 23 15:35:46 2015
GsettingsChanges:
b'com.
b'com.
b'com.
b'com.
b'com.
InstallationDate: Installed on 2015-03-13 (131 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitec
UpgradeStatus: Upgraded to vivid on 2015-03-16 (128 days ago)
Related branches
tags: | added: rls-aa-incoming |
tags: | removed: rls-aa-incoming |
Changed in update-manager (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- Incorrect instructions leave automatic updates blocked + Incorrect instructions leave automatic updates blocked when /boot is + full |
description: | updated |
description: | updated |
Changed in update-manager (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in update-manager (Ubuntu Zesty): | |
status: | New → In Progress |
Changed in update-manager (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in update-manager (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Changed in update-manager (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in update-manager (Ubuntu Zesty): | |
assignee: | nobody → Brian Murray (brian-murray) |
tags: | added: id-5982561eb1d9aa0d07be953f |
tags: | added: id-59c2cd399a13d92db1cb4711 |
Status changed to 'Confirmed' because the bug affects multiple users.