20.04.4 to 22.04.1 upgrade: dovecot-core, libdvd-pkg, VirtualBox, amdgpu

Andrew J. Caines A.J.Caines at halplant.com
Mon Aug 22 02:43:25 UTC 2022


Fellow present and future upgraders,

My primary workstation has been upgraded to a newer LTS release before.
It has LVM, LUKS encryption, swap volume, ext2 on /boot, ext4 on /,
btrfs, VirtualBox VMs, GNOME desktop, amdgpu driver, packages, Snaps and
Flatpaks and runs some network application services.

The upgrade was run from Software Updater completed, but with errors.
This is a terse summary with some observations.


The do-release-upgrade process failed at or around

----8<----
Could not install 'dovecot-core'

The upgrade will continue but the 'dovecot-core' package may not be in a
working state. Please consider submitting a bug report about it.

triggers looping, abandoned

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).

Upgrade complete

The upgrade has completed but there were errors during the upgrade process.
----8<----

I re-ran Update Manager to see the result, which was just some old
kernels ready to autoremove, but then

----8<----
Not enough free disk space

The upgrade needs a total of 97.7 M free space on disk '/boot'. Please
free at least an additional 49.7 M of disk space on '/boot'. You can
remove old kernels using 'sudo apt autoremove', and you could also set
COMPRESS=xz in /etc/initramfs-tools/initramfs.conf to reduce the size of
your initramfs.
----8<----

Interestingly this advice conflicts somewhat with  with the latest
change to prefer "COMPRESS=zstd". I was already using xz as this isn't
the first time I've had to clean out my old 470 MB /boot.

Dealing with updated config files wasn't an issue since I knew what to
keep and replace, but with the recent default changes in OpenSSH and my
modified sshd_config, I tried a three-way merge, which failed, so I
installed the package version, then made my modifications later.

Since the install left a lot of packages for autoremoval which I was not
yet ready to remove after the install errors, I removed the older kernel
packages.

----8<----
$ uname -r
5.4.0-124-generic
ajc at hal11000:~$ ls -lt /boot/*-5.4.0-???-generic
-rw-r--r-- 1 root root 93031002 Aug 19 19:58
/boot/initrd.img-5.4.0-124-generic
-rw-r--r-- 1 root root 51723704 Aug 19 19:39
/boot/initrd.img-5.4.0-121-generic
-rw-r--r-- 1 root root 58516336 Aug 19 19:39
/boot/initrd.img-5.4.0-122-generic
-rw------- 1 root root 13660416 Aug  3 21:54 /boot/vmlinuz-5.4.0-124-generic
-rw-r--r-- 1 root root   237947 Aug  3 21:48 /boot/config-5.4.0-124-generic
-rw------- 1 root root  4758850 Aug  3 21:48
/boot/System.map-5.4.0-124-generic
-rw-r--r-- 1 root root 19182164 Jun 29 17:53
/boot/initrd.img-5.4.0-113-generic
-rw------- 1 root root 13660416 Jun 22 09:26 /boot/vmlinuz-5.4.0-122-generic
-rw-r--r-- 1 root root   237947 Jun 22 09:00 /boot/config-5.4.0-122-generic
-rw------- 1 root root  4758694 Jun 22 09:00
/boot/System.map-5.4.0-122-generic
-rw------- 1 root root 13672704 Jun 15 09:18 /boot/vmlinuz-5.4.0-121-generic
-rw-r--r-- 1 root root   237975 Jun 15 09:13 /boot/config-5.4.0-121-generic
-rw------- 1 root root  4761203 Jun 15 09:13
/boot/System.map-5.4.0-121-generic
$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on

/dev/sda1       470M  400M   46M  90% /boot
$ sudo apt remove linux-*-5.4.0-12{1,2}-generic
...
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages.
Aborting...
----8<----

I re-ran Update Manager.

----8<----
The computer needs to restart to finish installing updates.

[Restart Now]
----8<----


Before rebooting, I tested an apt update

----8<----
$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 https://downloads.1password.com/linux/debian/amd64 stable
InRelease

Hit:3 https://mirror.us.leaseweb.net/ubuntu jammy InRelease

Hit:4 https://mirror.us.leaseweb.net/ubuntu jammy-updates InRelease
Hit:5 https://mirror.us.leaseweb.net/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
ajc at hal11000:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer
required:
      cryptsetup-run dvd+rw-tools exfat-fuse g++-9 g++-9-multilib
gcc-10-base gir1.2-gnomebluetooth-1.0 gir1.2-handy-0.0 growisofs
ippusbxd lib32stdc++-9-dev libaom0
      libasn1-8-heimdal libboost-filesystem1.67.0 libboost-iostreams1.67.0
libboost-program-options1.67.0 libboost-system1.67.0
libboost-thread1.71.0 libcamel-1.2-62
      libcbor0.6 libcdio18 libcodec2-0.9 libcroco3 libdc1394-22 libdcmtk14
libdns-export1109 libdvdnav4 libdvdread7 libedataserver-1.2-24
libedataserverui-1.2-2
      libevent-2.1-7 libextutils-pkgconfig-perl libfftw3-double3
libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgl1-mesa-glx
libgssapi3-heimdal libgupnp-1.2-0
      libhandy-0.0-0 libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhogweed5 libhsa-runtime64-1 libhsakmt1
libhx509-5-heimdal libicu66 libigdgmm11
      libjson-c4 libkrb5-26-heimdal libldap-2.4-2 libllvm12 liblua5.1-0
libmozjs-68-0 libmysqlclient21 libnettle7 libntfs-3g883 libpgm-5.2-0
libphonenumber7 libpoppler97
      libprotobuf17 libpython2-stdlib libpython2.7-minimal
libpython2.7-stdlib libpython3.8 libpython3.8-minimal
libpython3.8-stdlib libqpdf26 libraw19
      libroken18-heimdal libsane libstdc++-7-dev libstdc++-9-dev
libtracker-control-2.0-0 libtracker-miner-2.0-0 libtracker-sparql-2.0-0
libwebp6 libwind0-heimdal
      libwmf0.2-7 libx264-155 libx265-179 libx32stdc++-9-dev libxmlb1 lz4
mysql-common pkg-config python2 python2-minimal python2.7
python2.7-minimal python3-entrypoints
      python3-requests-unixsocket python3.8 python3.8-minimal rocminfo
syslinux syslinux-common syslinux-legacy
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
----8<----

After the reboot, dovecot.service was running fine despite the error. I
fixed libdvd-pkg with

----8<----
$ sudo dpkg-reconfigure libdvd-pkg
$ sudo apt install --reinstall libdvd-pkg
----8<----


After re-enabling the repo which had been updated to jammy, updating
virtualbox-6.1 and fixing the repo to ignore i386 (again) with

----8<----
$ sed -n '/^deb/s/ / [arch=amd64] /p'
/etc/apt/sources.list.d/virtualbox.list
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian jammy
contrib
$ sudo sed -i '/^deb/s/ / [arch=amd64] /'
/etc/apt/sources.list.d/virtualbox.list
----8<----

but not (yet) fixing[1]

----8<----
W:
https://download.virtualbox.org/virtualbox/debian/dists/jammy/InRelease:
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see
the DEPRECATION section in apt-key(8) for details.
----8<----

a new VM failed sound output with

----8<----
Host audio backend (PulseAudio) initialization has failed. Selecting the
NULL audio backend with the consequence that no sound is audible.


Error ID:
HostAudioNotResponding
Severity:
Warning
----8<----


Trying to install the latest AMDGPU driver[2] for jammy after removing
the installed one for focal and cleaning out the old repos fails to find
various packages depending on the install type, but adding a repo for
"main" fixed the missing packages errors. I'm sure I missed something
for doing this the easy and right way.

----8<----
$ sudo sudo amdgpu-uninstall
$ sudo rm -v /etc/apt/sources.list.d/{amdgpu,rocm}*
$ wget
https://repo.radeon.com/amdgpu-install/22.20.3/ubuntu/jammy/amdgpu-install_22.20.50203-1_all.deb
$ sudo apt install ./amdgpu-install_22.20.50203-1_all.deb
$ sed -n '/^#deb/s/^#//p' /etc/apt/sources.list.d/amdgpu-proprietary.list
deb https://repo.radeon.com/amdgpu/22.20.3/ubuntu jammy proprietary
$ sudo sed -i '/^#deb/s/^#//'
/etc/apt/sources.list.d/amdgpu-proprietary.list
$ sed '/^deb/s/proprietary/main/'
/etc/apt/sources.list.d/amdgpu-proprietary.list | sudo tee
/etc/apt/sources.list.d/amdgpu.list
# Enabling this repository requires acceptance of the following license:
# /usr/share/amdgpu-install/AMDGPUPROEULA
deb https://repo.radeon.com/amdgpu/22.20.3/ubuntu jammy main
$ sudo amdgpu-install --no-32 --usecase=graphics --vulkan=pro
----8<----

As usual when installing an updated GNOME and some other applications, I
clean out almost all configs from ~/.config/ and sometimes data from
~/.local/share/ to start with the fresh default experience and customise
from there.
While the same may apply to Snaps and Flatpaks, I did not change the
three Snap applications in ~/snap/ or any Flatpaks since they don't
change with the Ubuntu update, however a couple of Flatpaks launched
"fresh", requiring authentication for the first run.

With the new GNOME version, I made a few Extension[2] changes, with
Smart Auto Move being a favourite which only works on 4x versions. The
full list right now is Coverflow Alt-Tab, Extension List, Hide Top Bar,
Smart Auto Move, Sound Input & Output Device Chooser, Undecorate Window
for Wayland and User Themes. I also changed more things with
dconf-editor than are worth mentioning here.

Now it's all working nicely, it's time to find something to break.


[1] See
https://www.virtualbox.org/pipermail/vbox-dev/2022-June/015721.html and
the linked message
[2]
https://repo.radeon.com/amdgpu-install/22.20.3/ubuntu/jammy/amdgpu-install_22.20.50203-1_all.deb
- newer than linked from
https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-22-20
[3] https://extensions.gnome.org/

--
-Andrew J. Caines-   Unix Systems Architect   A.J.Caines at halplant.com
      "Machines take me by surprise with great frequency" - Alan Turing





More information about the ubuntu-users mailing list