我正在尝试从 18.04 升级到 19.04,但出现了一系列错误,我不确定如何解决:
Hit http://archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://security.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Fetched 0 B in 0s (0 B/s)
(appstreamcli:13741): GLib-CRITICAL **: 03:30:43.927: 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:13741): GLib-CRITICAL **: 03:30:43.927: g_variant_new_variant: assertion 'value != NULL' failed
(appstreamcli:13741): GLib-ERROR **: 03:30:43.927: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Hit http://archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://security.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Fetched 0 B in 0s (0 B/s)
(appstreamcli:14683): GLib-CRITICAL **: 03:30:50.679: 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:14683): GLib-CRITICAL **: 03:30:50.679: g_variant_new_variant: assertion 'value != NULL' failed
(appstreamcli:14683): GLib-ERROR **: 03:30:50.679: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Hit http://archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic InRelease
Hit http://security.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-security InRelease
Hit http://gb.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Fetched 0 B in 0s (0 B/s)
(appstreamcli:15643): GLib-CRITICAL **: 03:30:57.135: 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:15643): GLib-CRITICAL **: 03:30:57.135: g_variant_new_variant: assertion 'value != NULL' failed
(appstreamcli:15643): GLib-ERROR **: 03:30:57.135: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Error during update
当我收到此错误时,我正在执行 sudo do-release-upgrade。根据此错误修复,它指出我需要使用 0.12.0-3,而我的已经是这个版本:
dpkg -l appstream libappstream4
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================================-============================-============================-===================================================================================================
ii appstream 0.12.0-3 amd64 Software component metadata management
ii libappstream4:amd64 0.12.0-3 amd64 Library to access AppStream services