更新软件源执行
sudo apt-get update
时出现以下错误:
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 > /dev/null;
fi'
E: Sub-process returned an error code
解决方法:
# 删除software center
sudo apt-get remove libappstream3
# 重新安装
sudo apt-get update
成功解决: