Pour avoir eu ça :
$ sudo apt-get update
\[sudo\] password for XXX:
...
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
$ sudo appstreamcli --version
AppStream CLI tool version: 0.10.6
$ sudo appstreamcli refresh-cache --force --verbose
\*\* (appstreamcli:15334): DEBUG: Added /usr/share/app-info/xmls to metadata search path.
\*\* (appstreamcli:15334): DEBUG: Added /var/lib/app-info/yaml to metadata search path.
\*\* (appstreamcli:15334): DEBUG: Added /var/cache/app-info/xmls to metadata search path.
\*\* (appstreamcli:15334): DEBUG: Refreshing AppStream cache
\*\* (appstreamcli:15334): DEBUG: Searching for data in: /usr/share/app-info/xmls
\*\* (appstreamcli:15334): DEBUG: Searching for data in: /var/cache/app-info/xmls
\*\* (appstreamcli:15334): DEBUG: Searching for data in: /var/lib/app-info/yaml
\*\* (appstreamcli:15334): DEBUG: Reading: /usr/share/app-info/xmls/org.freedesktop.fwupd.xml
\*\* (appstreamcli:15334): DEBUG: Reading: /var/cache/app-info/xmls/fwupd.xml
\*\* (appstreamcli:15334): DEBUG: WARNING: Could not parse XML data: Entity: line 265: parser error : EntityRef: expecting ';'
<checksum filename="Firmware\_SF30&SN30\_Pro\_V1.26.dat" target="content" t
^
...
La solution est :
$ sudo -i
# cd /var/cache/app-info/xmls/
# ls -l
total 236
drwxr-xr-x 2 root root 4096 jul 27 09:56 ./
drwxr-xr-x 5 root root 4096 aug 31 2017 ../
-rw-r--r-- 1 root root 233177 jun 29 16:02 fwupd.xml
# sed < fwupd.xml -rne 's/Firmware\_SF30\\&SN30\_Pro\_V1.26.dat/Firmware\_SF30\\&SN30\_Pro\_V1.26.dat/gp'
<checksum filename="Firmware\_SF30&SN30\_Pro\_V1.26.dat" target="content" type="sha1">3ef2bdee8aca2a45b9f53b4d4cce9722523f57f8</checksum>
# sed fwupd.xml -i\_BACKUP -re 's/Firmware\_SF30\\&SN30\_Pro\_V1.26.dat/Firmware\_SF30\\&SN30\_Pro\_V1.26.dat/gp'
# ls -l
total 464
drwxr-xr-x 2 root root 4096 jul 27 09:57 ./
drwxr-xr-x 5 root root 4096 aug 31 2017 ../
-rw-r--r-- 1 root root 233328 jul 27 09:57 fwupd.xml
-rw-r--r-- 1 root root 233177 jun 29 16:02 fwupd.xml\_BACKUP
# rm fwupd.xml\_BACKUP
# apt-get update
Hit:1 http://se.archive.ubuntu.com/ubuntu xenial InRelease
...
Fetched 491 kB in 0s (715 kB/s)
Reading package lists... Done
# exit
logout
$
Note :
https://github.com/hughsie/lvfs-website/issues/33