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

解决方法:

 

先remove libappstream3

  1.  
    sudo apt-get remove libappstream3
  2.  
    or
  3.  
    sudo apt remove libappstream3
再进行update

sudo apt-get update


参考:

https://askubuntu.com/questions/942895/e-problem-executing-scripts-aptupdatepost-invoke-success

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案