Problem upragding to focal fossa 20.04 authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' Authentication failed

Solution 1:

I tried to upgrade from 18.04 to 20.04 and got the same error.

The problem was that the 'bionic-updates' channel wasn't active in my /etc/apt/sources.list I had only 'bionic' and 'bionic-security'.

After adding a line to the sources.list:

deb http://hu.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

sudo apt update && sudo apt dist-upgrade installed about 300+ packages and after that do-release-upgrade worked.

Solution 2:

We encountered this error message on a couple of servers today, all with various different packages installed and custom source-lists.

After testing different approaches (listed here and in other threads), what worked for us on all servers, was to manually do the upgrade to the latest versions of the packages, then remove the source lists and then do-release-upgrade.

I highly recommend backing up the source folder before removing the files.

sudo apt update
sudo apt upgrade -y
sudo rm /etc/apt/sources.list.d/*
sudo do-release-upgrade

Solution 3:

I'm now getting this :

(appstreamcli:15661): GLib-CRITICAL **: 10:32:27.652: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed

(appstreamcli:15661): GLib-CRITICAL **: 10:32:27.652: g_variant_new_variant: assertion 'value != NULL' failed

(appstreamcli:15661): GLib-ERROR **: 10:32:27.652: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Hit http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                              
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                         

... :-(

I wonder how it went in that state but I ended up removing appstream apt-get remove appstream, which should have complained a lot but NO : removed fine. go wonder. Upgrade process on its way. Finger crossed (and backup done)

...

ended up on total crash during update.

Reinstalled from stratch.