菜鸟遇到ubuntu的疑难杂症

前端之家收集整理的这篇文章主要介绍了菜鸟遇到ubuntu的疑难杂症前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

命令如下:

  1. sudo apt-get update

报错信息如下

  1. >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
  2. >E: Sub-process returned an error code

解决办法如下:
链接https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/comments/24

  1. >cd /tmp && mkdir asfix
  2. >cd asfix
  3. >wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
  4. >wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
  5. >sudo dpkg -i *.deb

猜你在找的Ubuntu相关文章