Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-I
发布时间:2020-09-16 09:26:56 所属栏目:Ubuntu 来源:互联网
导读:http://www.cnblogs.com/EasonJim/p/7343892.html EasonJim Code, code and more code. Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-Invoke-Success if /usr/bin/test -w /var/cache/app-info -a
http://www.cnblogs.com/EasonJim/p/7343892.html
EasonJimCode,code and more code.Ubuntu 16.04出现: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'错误: 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 update时出现如上信息,解决方法如下: sudo pkill -KILL appstreamcli wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb 执行完上述命令之后再次运行sudo apt-get update就不会再出现上面的错误。 参考: https://askubuntu.com/questions/774986/appstreamcli-hanging-with-100-cpu-usage-during-update 分类: 服务器运维-[Linux/Ubuntu/CentOS/Windows] 标签: linux, ubuntu(编辑:台州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |