Whether from the cli or Synaptic, when attempting to update/upgrade, Ubuntu 16.04 errors out due to not finding 2 kernels it wants to delete. Anyone have any clues to this?
The grub files are present, as normal. I was able to do an update by saying yes to the “Partial update” offered. (After making sure of the current backup…) The partial update did update the software, even though it, too, reported the same error regarding the 2 kernels.
I’ve search for the files that mention these kernels, removed them to other locations, but still get the error message: I’ll keep looking. There are no other problems with the installation’s behavior, but I would prefer to ferret the cause out!
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: If: not found
I am guessing you tried to change something in the file /etc/default/grub and in the process, you removed the # from the beginning of the first line. Lines starting with # means comments. Now the part of the file which is supposed to be comment is treated as code.
Could you please double check the first line of the /etc/default/grub file? If you are not sure of the things, please paste the output of /etc/default/grub file here so that we can analyze it.