解决ubuntu 16.04 appstreamcli 问题

ubuntu 16.04 经常出现内部错误,错误原因是 appstreamcli 意外停止,另外 sudo apt-get update 时候也出现错误。

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’

解决方法如下:
sudo pkill -KILL appstreamcli
cd /tmp;mkdir asfix
sudo wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_i386.deb
sudo wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_i386.deb
sudo dpkg -i  *.deb

如果安装的是64位的系统,把i386改为amd64

You may also like...

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据