一、执行apt update
报错如下
(appstreamcli:1684): GLib-CRITICAL **: 12:05:15.224: 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:1684): GLib-CRITICAL **: 12:05:15.224: g_variant_new_variant: assertion 'value != NULL' failed (appstreamcli:1684): GLib-ERROR **: 12:05:15.224: g_variant_new_parsed: 11-13:invalid GVariant format string Trace/breakpoint trap (core dumped) 正在读取软件包列表... 完成 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 |
二、解决方法
执行一下命令重新安装libappstream4
,问题解决
sudo apt install --reinstall libappstream4