1

i am currently trying to do-release-upgrade an Ubuntu 17.10 install to 18.04.6 LTS via 'sudo do-release-upgrade'. Sadly, the process does not finish, as it return the following very quickly:

(appstreamcli:26495): GLib-CRITICAL **: 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:26495): GLib-CRITICAL **: g_variant_new_variant: assertion 'value != NULL' failed

(appstreamcli:26495): GLib-ERROR **: g_variant_new_parsed: 11-13:invalid GVariant format string Trace/breakpoint trap (core dumped)

Fehler während der Aktualisierung

Bei der Aktualisierung trat ein Problem auf. Dies ist häufig auf Netzwerkprobleme zurückzuführen. Bitte überprüfen Sie Ihre Netzwerkverbindung und versuchen Sie es erneut.

E:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi', E:Sub-process returned an error code

Having stumbled upon similar questions, i tried to reinstall and even purge appstreamcli and libappstream4, however to no avail. Interestingly, both sudo apt-get upgrade and sudo apt-get upgrade work without problems (although no more upgrades can be found due to the end-of-support I guess).

Here is also the output from

sudo apt-show-versions appstream
appstream:amd64 not installed
appstream:i386 not installed

and

sudo apt-show-versions libappstream4
libappstream4:amd64/artful 0.11.3-1 uptodate
libappstream4:i386 not installed

Happy to here your thoughts on how to tackle this - thanks in advance!

Edit: Here is my login screen, prompting me to do-release-upgrade screenshot

1 Answers1

2

I had the same problem. Old Ubuntu 17.10 installation with the same exact error. I read in various articles that appstreamcli is not needed for the upgrade and ultimately i used the solution suggested in

https://unix.stackexchange.com/questions/464445/problem-with-appstreamcli-when-running-apt-update

to simply go to to /etc/apt/apt.conf.d/50appstream and comment out the APT::Update::Post-Invoke-Success function with sudo permissions. During the Upgrade appstreamcli was updated and the change i made to the 50appstream file was noticed and offered to be replaced with a new one which i accepted. The Upgrade went trough without problems and im now on 18.04.6 LTS :) Hope this helps

Nep
  • 36