Today I tried to update my two Linux servers. on one it failed because /boot did not have enough space, which was easy to solve. But now I have different Kernels on this machines because apt update/upgrade does not try to install the newest anymore on the machine where it failed on the first try.
How can I force the update now?
Ubuntu 16.04 LTS where update worked:
$ uname -r
4.4.0-127-generic
Ubuntu 16.04 LTS where update FAILED:
$ uname -r
4.4.0-31-generic
$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
amd64-microcode intel-microcode iucode-tool
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
How to get the latest kernel also on this machine?
$ sudo apt list --installed 'linux-image*'
Auflistung... Fertig
linux-image-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
linux-image-extra-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
Output from 'apt-cache plicy linux-image-generic
$ sudo apt-cache policy linux-image-generic
linux-image-generic:
Installiert: (keine)
Installationskandidat: 4.4.0.127.133
Versionstabelle:
4.4.0.127.133 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
LANG=C
if you are about to post the command output (e.g.LANG=C sudo apt-get upgrade
), so the output gets printed in English. I personally can understand German but others may not. – Melebius Jun 05 '18 at 10:04apt-cache policy linux-image-generic
. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long). – user535733 Jun 05 '18 at 13:46