aptitude should warn before removing running kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptitude (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1)
Installed kernel: linux-image-
2) looked up linux-image-
3) went to 'obsolete and locally created packages' and hit 'r' to see what options aptitude would provide
There was a lot of packages there -- I was not able to remove the packages at the end of the upgrade process because wifi was not working. linux-image-
4) hit 'g' twice to start the upgrade - eventually I was met with a 'W' message saying that the current running kernel was being removed. This activity for quite a few versions of debian/ubuntu has brought a user prompt asking the user to make sure yo knows what they are doing. This prompt did not come up, instead aptitude removed the current running kernel and continued on installing the next version of the kernel (4.8.0)
While in this case, it *may* seem like Linux 4.8.0 was able to install successfully, I have seen kernels that have not. If one of *those* kernels was the one that was replacing 4.4.0, the system would have been left in an unbootable state(and may yet be in one). This is a good reason why Aptitude should have prompted me upon attempting to remove it, I would have certainly said to not continue.
Ubuntu: 16.10
Aptitude: 0.8.3-1ubuntu1
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: aptitude 0.8.3-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Oct 16 13:12:50 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (829 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
SourcePackage: aptitude
UpgradeStatus: Upgraded to yakkety on 2016-10-16 (0 days ago)