运行时出现以下错误 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) 我该如何摆脱这个?
$ 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 …
操作系统:16.04
自动升级后,apt-get update导致如下错误:
*** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000001166b20 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fe27911e7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fe27912737a]
...
7ffc8371a000-7ffc8371c000 r--p 00000000 00:00 0 [vvar]
7ffc8371c000-7ffc8371e000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
Run Code Online (Sandbox Code Playgroud)
我发现这是应用程序流的错误,但我该如何修复它?
当我将 Ubuntu 从 16.04 更新到 18.04 时,出现大量错误:
$ sudo apt update && sudo apt upgrade
Hit:1 http://ubuntu.ntc.net.np/ubuntu bionic InRelease
(appstreamcli:30076): GLib-CRITICAL **: 20:36:32.027: g_strchug: assertion 'string != NULL' failed
(appstreamcli:30076): GLib-CRITICAL **: 20:36:32.027: g_strchomp: assertion 'string != NULL' failed
corrupted double-linked list
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)
另外,当我检查我的 Ubuntu 版本时,它显示18.04在终端中,但在启动时它显示16.04. …
如果我没记错的话,我使用了sudo apt-get dist-upgrade,但我取消了中间的过程。我收到了(Y/N)升级到最后的提示,然后输入了 N。
在此之后,我在运行时遇到了一些这样的问题 apt-get update
有趣的是,我实际上运行的是 16.04。
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
Run Code Online (Sandbox Code Playgroud)
但不知何故 apt-get 寻找artful包而不是那些用于xenial.
Get:25 http://archive.ubuntu.com/ubuntu artful-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:26 http://archive.ubuntu.com/ubuntu artful-backports/universe amd64 DEP-11 Metadata [5,088 B]
Fetched 1,592 kB in 5s (283 kB/s)
(appstreamcli:8437): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
(appstreamcli:8437): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
Run Code Online (Sandbox Code Playgroud)
编辑:这就是我的/etc/apt/sources.list样子
我到处都用 xenial 替换了 artful,问题似乎已经解决了。