Error:
E:problem Executing scripts apt::update::P ost-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
When you run sudo apt-get update, you are presented with the following resolution: Run the following command at the terminal:
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
can be solved, although there are some small errors, but do not affect the use of.
As for why to do so. Please see: https://askubuntu.com/questions/774986/appstreamcli-hanging-with-100-cpu-usage-during-update