相关疑难解决方法(0)

如何启用“backports”存储库?

如何启用 backports 存储库以便我可以获得更新版本的软件?

software-center package-management backport software-sources

45
推荐指数
2
解决办法
8万
查看次数

来自 fwupd.xml 的 APT 更新错误

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
Run Code Online (Sandbox Code Playgroud)

我以前运行过:

sudo apt install appstream/xenial-backports
sudo apt update
sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)

上述错误仍然存​​在。

apt

5
推荐指数
1
解决办法
5023
查看次数

更新时元数据和应用程序流错误

以 root 身份更新时出现错误。在终端中显示以下错误后更新日志。

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
Run Code Online (Sandbox Code Playgroud)

我按照这个答案并执行了sudo apt install appstream/xenial-backports.

我的appstream包裹已经更新:-

$ appstreamcli --version
AppStream CLI tool version: 0.10.6
Run Code Online (Sandbox Code Playgroud)

之后,强制刷新缓存数据。我收到以下错误:-

$ sudo appstreamcli refresh --force
AppStream system cache was updated, but problems were found: Metadata …
Run Code Online (Sandbox Code Playgroud)

updates package-management apt 16.04 appstream

2
推荐指数
1
解决办法
1423
查看次数