Ubuntu用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
解决方法:
先remove libappstream3
-
sudo apt-get remove libappstream3
-
or
-
sudo apt remove libappstream3
再进行update
sudo apt-get update
参考:
https://askubuntu.com/questions/942895/e-problem-executing-scripts-aptupdatepost-invoke-success
原文地址:https://www.cnblogs.com/JIKes/p/9426635.html
时间: 2024-10-05 05:50:19