linux - AppStream 系统缓存已更新,但发现问题 : Metadata files have errors:/var/cache/app-info/xmls/fwupd. xml

标签 linux ubuntu-18.04

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/

相关文章:

docker - 使用 docker compose 在后台运行 ubuntu 容器

python - Ubuntu 18.04 上的 "E: Unable to locate package python-pip"

Linux 通过从终端链接预建库来运行可执行文件

linux - 如何仅grep包含x和y的内容?

Mysql异常慢

php - MySQL 查询在更新后以不同的顺序返回列

Scala REPL 在 Ubuntu 上不起作用

linux - shmget 上没有 IPC_EXCL 的 EEXIST

python - Tails - 包 'python3-tk' 没有安装候选

c - 使用 C 中的静态库重定向标准输出(例如到文件)