Ubuntu update source error: E: Problem executing scripts APT::Update::Post-Invoke-Success…

UBUNTU update source error:

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’ E: Sub-process returned an error code

 

Solution:

apt-get purge libappstream3
apt-get update

Read More: