Reputation: 127
AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
Reading package lists... Done
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-cache > /dev/null; fi'
E: Sub-process returned an error code
When run sudo apt-get update
i'm just facing this issue.
Ubuntu Version: 18.04.1
Upvotes: 2
Views: 2405
Reputation: 374
There seems to be an "illegal character" in that xml (a &
inside a string), the manual solution is to find the line (usually 265) and encode propperly the &
as &
, the technical explanation is that a &
inside a xml starts an entity as explanied here, so replacing &
with &
makes the XML valid again.
for reference see comment by Sun Bear at this askubuntu thread
and his proposed solution here https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1644498/comments/56
Upvotes: 1