Ubuntu 执行sudo apt-get update 出现错误 E:Sub-process returned an error code 的解决办法
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 执行sudo apt-get update 出现错误 E:Sub-process returned an error code 的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Ubuntu 執行sudo apt-get update 出現錯誤 E:Sub-process returned an error code 的解決方法
ubuntu 在執行:
sduo apt-get update
出現如下錯誤:
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 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
執行完成之后,應該就可以解決問題了。
總結
以上是生活随笔為你收集整理的Ubuntu 执行sudo apt-get update 出现错误 E:Sub-process returned an error code 的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android studio初次安装启动
- 下一篇: VMWare虚拟机忘记window se