apt 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'
解决办法:
依次执行:
step1: sudo pkill -KILL appstreamcli
step2: wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.12.0-3ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream-4_0.12.0-3ubuntu1_amd64.deb
step3:sudo dpkg -i /tmp/appstream_0.12.0-3ubuntu1_amd64.deb /tmp/libappstream-dev_0.12.0-3ubuntu1_amd64.deb