Errori rilevati nell'aggiornare un server Plesk

← Torna ad Plesk

Errore dovuto allo spazio sulla partizione di /boot

fonte: https://help.ubuntu.com/community/RemoveOldKernels

Conoscere la versione del kernel attuale

$ uname -r
4.2.0-21-generic

Lista dei pacchetti kernel installati

$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
rc  linux-image-4.2.0-14-generic  ## The oldest kernel in the database
                                  ## Status 'rc' means it's already been removed
ii  linux-image-4.2.0-15-generic  ## The oldest installed kernel. Removable.
                                  ## Status 'ii' means Installed.
ii  linux-image-4.2.0-16-generic  ## Another old installed kernel. Removable.
ii  linux-image-4.2.0-18-generic  ## Another old installed kernel. Removalbe.
ii  linux-image-4.2.0-19-generic  ## The previous good kernel. Keep.
ii  linux-image-4.2.0-21-generic  ## Same version as 'uname -r', package for the current kernel. DO NOT REMOVE.
iU  linux-image-4.2.0-22-generic  ## DO NOT REMOVE. Status 'iU' means it's not installed,
                                  ## but queued for install in apt.
                                  ## This is the package we want apt to install.

Procedura automatica

sudo apt-get autoremove --purge

Con questo comando verranno elencati i pacchetti che verranno cancellati, DA CONTROLLARE CON ATTENZIONE, e verrà chiesta la conferma per cancellarli

Procedura manuale

Controllare i pacchetti della lista e rimuovere SOLO I PIU' VECCHI

$ sudo update-initramfs -d -k 4.2.0-15-generic
$ sudo dpkg --purge linux-image-4.2.0-15-generic

Con questo comando verranno elencati i pacchetti che verranno cancellati, DA CONTROLLARE CON ATTENZIONE