ubuntu下的若干问题 E: Sub-process returned an error code

来源:互联网 发布:126邮箱smtp端口号 编辑:程序博客网 时间:2024/05/20 08:00

今天使用两台不同的机子(ubuntu系统)出现了相同的问题,解决这个问题花费了较长的时间,下面分享一下我的解决方法:
更新软件的源以及执行update的时候出现下面的错误:

Aborted (core dumped)  Reading package lists... DoneE: 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

问题解决,如果期间还有什么问题,报什么错误,头痛医头脚痛医脚即可,难点就是这两步。

阅读全文
0 0
原创粉丝点击