转自:http://blog.csdn.net/zzq123686/article/details/77454066

 

出现错误信息:

  1. Reading package lists... Done  
  2. E: Problem executing scripts APT::Update::Post-Invoke-Success  
  3. 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;  
  4.  then appstreamcli refresh > /dev/null;  
  5.  fi'  
  6. E: Sub-process returned an error code  

 

解决方法:

  1. sudo pkill -KILL appstreamcli  
  2.   
  3.   
  4. 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  
  5.   
  6.   
  7. sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb  

相关文章:

  • 2021-11-26
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案