今天使用两台不同的机子(ubuntu系统)出现了相同的问题,解决这个问题花费了较长的时间,下面分享一下我的解决方法:
更新软件的源以及执行update的时候出现下面的错误:
Aborted (core dumped)
Reading package lists... Done
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
解决方法:
sudo apt-get remove libappstream3
刚才的步骤是删除software center
接下来重新安装
sudo apt-get update
sudo apt-get install --reinstall software-center software-center-aptdaemon-plugins
问题解决,如果期间还有什么问题,报什么错误,头痛医头脚痛医脚即可,难点就是这两步。