Ubuntu 16.04
我得到了这个apt update错误:
AppStream system cache was updated, but problems were found:
Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml我以前曾跑过:
sudo apt install appstream/xenial-backports
sudo apt update
sudo apt upgrade上述错误仍然存在。
发布于 2018-07-24 03:23:05
在评论之后,对我来说解决这个问题的是:
# rm /var/cache/app-info/xmls/fwupd.xml
# appstreamcli refresh --force
AppStream cache update completed successfully.
# apt update现在一切似乎都好起来了。
还应该补充说,我的0.10.6版本是从xenial/back-ports安装的。
发布于 2018-07-30 20:14:09
我发现问题中描述的错误是由/var/cache/app-info/xmls/fwupd.xml中的错误引起的。
sudo gedit /var/cache/app-info/xmls/fwupd.xml在终端上打开该文件。这里我使用的是gedit文本编辑器。您可以使用您熟悉的任何文本编辑器。<checksum filename="Firmware_SF30&SN30_Pro_V1.26.dat" target="content" type="sha1">3ef2bdee8aca2a45b9f53b4d4cce9722523f57f8</checksum>。为了修复这个错误,我所做的就是将错误SF30&SN30更正为SF30&SN30。也就是说,应该将&符号更改为&。若要检查是否成功,请在终端sudo apt update上运行。错误不应该存在。但是如果它还在,我运行命令appstreamcli refresh --force,然后运行sudo apt update。到了这个阶段,我不再在同一登录会话中遇到错误。
sudo apt update期间在您的问题中遇到了相同的错误消息。为了避免错误,我只是重做上面提到的过程。希望开发人员能尽快修复这个错误。fwupd.xml和50appstream的建议。然而,我注意到这些文件包含了用于某些目的的指令。因此,我的修复过程没有删除这些文件。如果你想移除它们,我建议你先备份它们。https://askubuntu.com/questions/1053869
复制相似问题