To double check my logic I ran an upgrade of a stock Ubuntu desktop system from bionic to focal and immediately after the upgrade ran 'sudo apt-get autoremove'. The list of packages marked for removal are the same as the ones the release-upgrader suggested with my change.
bdmurray@clean-bionic-amd64:/tmp/ubuntu-release-upgrader-idl254bt$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
bdmurray@clean-bionic-amd64:/tmp/ubuntu-release-upgrader-idl254bt$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
command-not-found-data diffstat gnome-software-common gsfonts guile-2.0-libs libalgorithm-diff-perl libalgorithm-merge-perl
libappstream-glib8 libarchive-zip-perl libboost-filesystem1.65.1 libboost-system1.65.1 libcgi-pm-perl libclass-method-modifiers-perl
libclass-xsaccessor-perl libclone-perl libcommon-sense-perl libcrypt-dev libdigest-bubblebabble-perl libenchant1c2a libexempi3
libexiv2-14 libfftw3-double3 libgmime-3.0-0 libgtksourceview-3.0-common libgweather-3-15 libindicator3-7 libip4tc0 libip6tc0 libitm1
libjson-xs-perl liblouis14 liblouisutdml8 liblwres160 libnet-domain-tld-perl libnetpbm10 liboauth0 libprotobuf10 libpython2.7-minimal
libpython2.7-stdlib libraw16 libref-util-perl libref-util-xs-perl libreoffice-avmedia-backend-gstreamer libreoffice-style-galaxy
librole-tiny-perl libssl1.0.0 libsub-quote-perl libtest-refcount-perl libtypes-serialiser-perl libunicode-utf8-perl
linux-hwe-5.4-headers-5.4.0-45 linux-hwe-5.4-headers-5.4.0-47 linux-libc-dev manpages-dev python3-asn1crypto python3-oauth
python3-simplegeneric python3-zope.interface qpdf xserver-xorg-input-all-hwe-18.04 xserver-xorg-legacy-hwe-18.04
xserver-xorg-video-ati-hwe-18.04 xserver-xorg-video-fbdev-hwe-18.04 xserver-xorg-video-qxl-hwe-18.04 xserver-xorg-video-radeon-hwe-18.04
xserver-xorg-video-vesa-hwe-18.04
0 upgraded, 0 newly installed, 66 to remove and 0 not upgraded.
After this operation, 214 MB disk space will be freed.
To double check my logic I ran an upgrade of a stock Ubuntu desktop system from bionic to focal and immediately after the upgrade ran 'sudo apt-get autoremove'. The list of packages marked for removal are the same as the ones the release-upgrader suggested with my change.
bdmurray@ clean-bionic- amd64:/ tmp/ubuntu- release- upgrader- idl254bt$ cat /etc/lsb-release RELEASE= 20.04 CODENAME= focal DESCRIPTION= "Ubuntu 20.04.1 LTS" clean-bionic- amd64:/ tmp/ubuntu- release- upgrader- idl254bt$ sudo apt-get autoremove not-found- data diffstat gnome-software- common gsfonts guile-2.0-libs libalgorithm- diff-perl libalgorithm- merge-perl glib8 libarchive-zip-perl libboost- filesystem1. 65.1 libboost- system1. 65.1 libcgi-pm-perl libclass- method- modifiers- perl xsaccessor- perl libclone-perl libcommon- sense-perl libcrypt-dev libdigest- bubblebabble- perl libenchant1c2a libexempi3 w-3.0-common libgweather-3-15 libindicator3-7 libip4tc0 libip6tc0 libitm1 domain- tld-perl libnetpbm10 liboauth0 libprotobuf10 libpython2. 7-minimal 7-stdlib libraw16 libref-util-perl libref-util-xs-perl libreoffice- avmedia- backend- gstreamer libreoffice- style-galaxy refcount- perl libtypes- serialiser- perl libunicode- utf8-perl hwe-5.4- headers- 5.4.0-45 linux-hwe- 5.4-headers- 5.4.0-47 linux-libc-dev manpages-dev python3-asn1crypto python3-oauth simplegeneric python3- zope.interface qpdf xserver- xorg-input- all-hwe- 18.04 xserver- xorg-legacy- hwe-18. 04 xorg-video- ati-hwe- 18.04 xserver- xorg-video- fbdev-hwe- 18.04 xserver- xorg-video- qxl-hwe- 18.04 xserver- xorg-video- radeon- hwe-18. 04 xorg-video- vesa-hwe- 18.04
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
bdmurray@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
command-
libappstream-
libclass-
libexiv2-14 libfftw3-double3 libgmime-3.0-0 libgtksourcevie
libjson-xs-perl liblouis14 liblouisutdml8 liblwres160 libnet-
libpython2.
librole-tiny-perl libssl1.0.0 libsub-quote-perl libtest-
linux-
python3-
xserver-
xserver-
0 upgraded, 0 newly installed, 66 to remove and 0 not upgraded.
After this operation, 214 MB disk space will be freed.