在Ubantu中输入命令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
解决方法:
删除 libappstream3 with the CLI command
sudo apt-get remove libappstream3
sudo apt remove libappstream3
即可成功升级
Reference:
https://askubuntu.com/questions/942895/e-problem-executing-scripts-aptupdatepost-invoke-success