Dist-upgrading Ubuntu Server 18.04 located in remote site?

Oliver Grawert ogra at ubuntu.com
Mon Feb 7 13:22:13 UTC 2022


hi,
Am Montag, dem 07.02.2022 um 08:05 -0500 schrieb Robert Heller:
> At Mon, 07 Feb 2022 12:03:26 +0100 "Ubuntu user technical support,?
> not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> 
> > hi,
> > Am Sonntag, dem 06.02.2022 um 16:08 -0500 schrieb Robert Heller:
> > > apt autoremove
> > > 
> > > Then,
> > > 
> > > apt purge linux-image-4.15.0-XXX-generic
> > > 
> > 
> > the first command is supposed to be enough, if you actually need
> > the
> > second one because not all automatically upgraded kernels got
> > removed
> > with the first command, please file a bug using "ubuntu-bug linux"
> > ...
> 
> *Normally* autoremove would be enough most of the time.  Autoremove
> leaves 
> behind 1-2 older kernels, so if you need a partitularly "lean" /boot
> directory 
> (FS), then manually purging the 1-2 kernels left by autoremove might
> be 
> needed.  The op has a *small* /boot FS, so the extra purge(s) will
> trim things 
> even more than autoremove and make sure there is plenty of free
> space.
> 

autoremove should always leave you with exactly three kernels, the one
used at original install time, since this one is known to have worked
back wen you installed the system (this can be a really old one in case
of LTSes that have been installed from the .0 release), the last one
you upgraded from last and the new current one...

indeed, if you want to drop the original one or the last known good
one, you can manually remove either of them, but the next autoremove
will still leave you with three kernels by default so this is a bit of
a sisyphus job if you want to do it every time though ... :)

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220207/8185ddb1/attachment.sig>


More information about the ubuntu-users mailing list