I have a VPS server with a hosting company that I have ssh/root access. I recently tried to upgrade the kernel to the latest (4.18.5-041805-generic). I was running 4.4.0-169 and thought it was time to upgrade.
So I ran the following:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
After all of that, the kernel version still remained the same. So, after a search I found this set of instructions:
I followed the instructions and attempted to install the latest kernel version. Near the end it generated an error indicating it was leaving it unconfigured, yet when I run "uname -rs" it lists the new kernel:
~$ uname -rs Linux 4.18.5-041805-generic
However, now when I try to make sure everything else is also up to date again I get a dependency error:
~$ sudo apt-get update && sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-headers-4.19.0-041900rc1-generic : Depends: libssl1.1 (>= 1.1.0) but it is not installable linux-image-unsigned-4.19.0-041900rc1-generic : Depends: linux-modules-4.19.0-041900rc1-generic but it is not installable E: Unmet dependencies. Try using -f.
So, I wanted to go back to the old 4.4.0-169-generic kernel but I cannot figure out how to do this. Every instruction that I can find in my searches says to use a keyboard shortcut to interrupt grub and then select a different kernel.
The problem is that I am running on a VPS cloud server and do not have a physical keyboard connected to the server. I only have the ssh window into the server to get anything done.
How do I delete the new kernel that generates the dependency issue and get back to booting with the previous kernel?