There does seem to be a 'problem' with apt wanting to remove the older kernel when just two kernels are installed, even when the controlling file (forget which one) is configured to keep two kernels, the latest and prior, installed. Others have experienced this, and so have I.
Just now, I updated/dist-upgraded on my 14.10 where I have kernel 3.16.0-43-generic running, and 3.16.0-41-generic as the prior kernel.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-3.16.0-41-generic* linux-image-extra-3.16.0-41-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 203 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
paul@tanagra:~$ mykernels
linux-image-3.16.0-41-generic
linux-image-3.16.0-43-generic
linux-image-extra-3.16.0-41-generic
linux-image-extra-3.16.0-43-generic
linux-image-generic
NOTE: There is not a 3.16.0-42-generic kernel available:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.16.0-42-generic
E: Couldn't find any package by regex 'linux-image-3.16.0-42-generic'
paul@tanagra:~$
So it would seem, that when the 'prior' installed kernel is greater than one version number below the current running kernel, apt wants to remove it, which would leave only one installed kernel, contrary to what the controlling file dictates.
Just now, I updated/dist-upgraded on my 14.10 where I have kernel 3.16.0-43-generic running, and 3.16.0-41-generic as the prior kernel.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-3.16.0-41-generic* linux-image-extra-3.16.0-41-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 203 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
paul@tanagra:~$ mykernels
linux-image-3.16.0-41-generic
linux-image-3.16.0-43-generic
linux-image-extra-3.16.0-41-generic
linux-image-extra-3.16.0-43-generic
linux-image-generic
NOTE: There is not a 3.16.0-42-generic kernel available:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.16.0-42-generic
E: Couldn't find any package by regex 'linux-image-3.16.0-42-generic'
paul@tanagra:~$
So it would seem, that when the 'prior' installed kernel is greater than one version number below the current running kernel, apt wants to remove it, which would leave only one installed kernel, contrary to what the controlling file dictates.
Comment