我无法安装任何软件包。似乎apt-get update必须运行该命令,但它会引发一些错误:
$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://ve.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ve.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://ve.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 102 kB in 23s (4337 B/s)
*** Error in `appstreamcli': double free or corruption (fasttop): 0x000000000210f4b0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fac8d8317e5]
[...]
Aborted (core dumped)
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 > /dev/null; fi'
E: Sub-process returned an error code …Run Code Online (Sandbox Code Playgroud) appstreamcli通过不断使用 100% 的核心使我的笔记本电脑过热。我唯一的解决办法就是杀死它。这是截图top:
我可以appstreamcli用或杀死。但是一旦我这样做,该过程将再次返回并挂起更新。如果我然后杀死它,我会得到以下输出:sudo kill pidsudo killall appstreamclisudo apt updateappstreamcli
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 > /dev/null;
fi'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud)
这个过程是什么,为什么要使用这么多 CPU?
运行时出现以下错误 sudo apt update
Aborted (core dumped)
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 > /dev/null; fi'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud) 还有一个关于 AppStream的问题——无论好坏——都集中在 AppStream 中似乎是一个特定的错误上,但这让我意识到我不知道这个东西到底是什么。
man appstreamcli (应用程序将 CPU 带离了深处)在混乱中抛出了一些技术术语:
appstreamcli 是一个小型辅助工具,用于处理 AppStream 元数据并从命令行访问 AppStream 组件索引。AppStream 组件索引包含您的发行版的所有可用软件组件的列表,与其包名称相匹配。它是使用 AppStream XML 或 Debian DEP-11 数据生成的,这些数据由您的经销商提供。
那么......它究竟有什么用?所有桌面(及其相关的包管理器)都使用它吗?
我实际上的意思是:当我用牙齿把它撕掉时,什么会破裂?
我该如何摆脱这个?
$ sudo apt-get 更新 命中:1 http://se.archive.ubuntu.com/ubuntu xenial InRelease 命中:2 http://se.archive.ubuntu.com/ubuntu xenial-updates InRelease 命中:3 http://download.virtualbox.org/virtualbox/debian xenial InRelease 命中:4 http://se.archive.ubuntu.com/ubuntu xenial-backports InRelease 命中:5 http://ppa.launchpad.net/freecad-community/ppa/ubuntu xenial InRelease 获取:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] 命中:7 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial InRelease 命中:8 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial InRelease 命中:9 http://ppa.launchpad.net/geany-dev/ppa/ubuntu xenial InRelease 获取:10 个 http://security.ubuntu.com/ubuntu xenial-security/main amd64 包 [517 kB] 命中:11 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu xenial InRelease 命中:12 http://ppa.launchpad.net/otto-kesselgulasch/gimp-edge/ubuntu xenial InRelease 命中:13 http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu xenial InRelease 命中:14 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease 获取:15 个 http://security.ubuntu.com/ubuntu xenial-security/main i386 包 [455 kB] 获取:16 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [221 …
I am trying to enable WiFi. I tried sudo apt-get update. But I am getting this error:
The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information.
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)
How can I complete sudo apt-get update and enable …
以 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)