在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
版权声明:本文为Jiaach原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。