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 apt-get update
时,我正面临这个问题。
Ubuntu 版本:18.04.1
最佳答案
那个xml中似乎有一个“非法字符”(字符串中的&
),手动解决方案是找到该行(通常是265)并正确编码&
as &
,技术解释是 xml 中的 &
启动一个实体,如解释的那样 here ,因此将 &
替换为 &
会使 XML 再次有效。
引用 Sun Bear 的评论 在this askubuntu thread
和他在这里提出的解决方案 https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1644498/comments/56
关于linux - AppStream 系统缓存已更新,但发现问题 : Metadata files have errors:/var/cache/app-info/xmls/fwupd. xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52198379/