首页 Ubuntu Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-I

Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-I

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

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 -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

本文来自网络,不代表云浮站长网立场。转载请注明出处: https://www.0766zz.com/html/zhonghe/fwq/ubuntu/20200915/10300.html
上一篇
下一篇

作者: dawei

【声明】:云浮站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部