Avoid error: /boot filled up, cant upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Reporting against 'apt' but 'dpkg' is also concerned
Explanation:
since a while numerous users are posting threads on ubuntuforums asking help about that issue, like that one:
http://
Proposition 1:
either 'apt' and/or 'dpkg' conf files need a feature to set the max number of installed kernels. That setting entry should be modifiable via dconf-editor, and set by default to '2'
Upgrade process:
apt/dpkg automatically purge the oldest non wanted headers/images after a new kernel installation (installing & purging in the same process)
That way the non techies users ignoring the mandatory manual maintenance will be safe with /boot.
Proposition 2:
set a monthly cronjob to run 'apt-get clean' 'apt-get autoclean' 'apt-get autoremove' to clean up the system.
But the sad effect is that the cache is purged, not only the unwanted old installed kernels
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: apt 1.0.9.10ubuntu1
ProcVersionSign
Uname: Linux 4.0.0-1-generic i686
NonfreeKernelMo
ApportVersion: 2.17.3-0ubuntu4
Architecture: i386
CurrentDesktop: GNOME
Date: Tue Jun 16 14:32:06 2015
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
An alternative is to configure unattended upgrades to automatically remove unused dependencies: https:/ /bugs.launchpad .net/ubuntu/ +source/ unattended- upgrades/ +bug/1294195