ubuntu sudo apt-get update报错
(appstreamcli:3994): GLib-CRITICAL **: 22:35:28.773: 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:3994): GLib-CRITICAL **: 22:35:28.774: g_variant_new_variant: assertion 'value != NULL' failed
(appstreamcli:3994): GLib-ERROR **: 22:35:28.774: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Reading package lists... Done
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
这个报错可给我搞废了,网上能找的都找了试了
最后解决方法:
sudo sed -i -e 's/bionic/xenial/g' /etc/apt/sources.list
sudo apt update
以上是我的解决方法,解决不了的话就再去找其他的(勿骂),相关链接我就懒得放了,搬砖去了