Update 4.1.3 auf 4.1.4

Bei mir hat das Update nicht geklappt, folgende Fehlermeldung erscheint:

Custom preupdate script /var/lib/local-preup.sh not found
Checking for space on /var/cache/apt/archives: OK
Checking for space on /boot: failed
ERROR: Not enough space in /boot, need at least 50 MB.
This may interrupt the update and result in an inconsistent system!
If neccessary you can skip this check by setting the value of the
config registry variable update41/checkfilesystems to "no".
But be aware that this is not recommended!
Old kernel versions on /boot can be pruned automatically during
next update attempt by setting config registry variable
update41/pruneoldkernel to "yes".

Error: Update aborted by pre-update script of release 4.1-4

Es sind wohl einige (zu viele) alte Kernels vorhanden:

-rw-r--r-- 1 root root 21541945 Okt  7  2015 /boot/initrd.img-3.10.0-ucs114-amd64
-rw-r--r-- 1 root root 23764657 Okt  7  2015 /boot/initrd.img-3.10.0-ucs139-amd64
-rw-r--r-- 1 root root 21510525 Dez 19  2013 /boot/initrd.img-3.10.0-ucs43-amd64
-rw-r--r-- 1 root root 21520229 Mär 29  2014 /boot/initrd.img-3.10.0-ucs46-amd64
-rw-r--r-- 1 root root 21520786 Jul  5  2014 /boot/initrd.img-3.10.0-ucs63-amd64
-rw-r--r-- 1 root root 21521614 Sep 15  2015 /boot/initrd.img-3.10.0-ucs81-amd64
-rw-r--r-- 1 root root 28745259 Feb 17  2016 /boot/initrd.img-3.16.0-ucs135-amd64
-rw-r--r-- 1 root root 28674199 Okt  7  2015 /boot/initrd.img-3.16-ucs102-amd64
-rw-r--r-- 1 root root 28679088 Okt  7  2015 /boot/initrd.img-3.16-ucs109-amd64
-rw-r--r-- 1 root root 28891664 Feb 17  2016 /boot/initrd.img-4.1.0-ucs153-amd64
-rw-r--r-- 1 root root 28242899 Feb 17  2016 /boot/initrd.img-4.1.0-ucs174-amd64
-rw-r--r-- 1 root root 28251341 Aug 14 21:13 /boot/initrd.img-4.1.0-ucs190-amd64
-rw-r--r-- 1 root root 28286530 Nov  5 14:39 /boot/initrd.img-4.1.0-ucs207-amd64

Mit welchem Kommando kann ich diese regelkonform entfernen (vor allem die 3.10er)?

Danke u. Grüße :slight_smile:

Hallo,

das einfachste ist vermutlich das zu machen was da steht :slight_smile:

[quote]Old kernel versions on /boot can be pruned automatically during
next update attempt by setting config registry variable
update41/pruneoldkernel to “yes”.[/quote]

Also ein ucr set update41/pruneoldkernel=yes auf der Kommandozeile oder wenn der grafische Weg bevorzugt wird in der UMC in der violetten Kategorie “System” das Modul “Univention Configuration Registry” nehmen.

Dann einfach das Upgrade nochmal starten, dann sollten die alten Kernel automatisch entfernt werden.

Schönen Gruß,
Michael Grandjean

Am einfachsten mit

ucr set update41/pruneoldkernel=yes

Ansonsten kannst du die ganz alten Kernel auch mit

univention-remove $paketname

entfernen. Die Paketnamen findest du mit

aptitude search linux-image

Sorry, das habe ich übersehen, lesen bildet :wink:
Damit hat das Update auf 4.1.4 nun ohne Murren funktioniert, besten Dank für euren Schubser!

Grüße

Mastodon