我无法安装任何软件包。似乎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)
小智 101
这对我有用(从这里开始,https : //forum.siduction.org/index.php?topic=6174.0):
sudo apt-get purge libappstream3
Run Code Online (Sandbox Code Playgroud)
小智 65
sudo apt install --reinstall libappstream3
Run Code Online (Sandbox Code Playgroud)
可以修复它。
小智 8
我来自这个页面并被重定向到这里,在那里我无法回答,但这实际上是该页面的一个答案。由于我遇到了同样的问题(至少与相关问题之一相同,但是嘿,如果这对您来说不是正确的解决方案,我没有将它们联系起来很抱歉)并且发现很难找到正确的信息,但最终成功了,我想为什么不在这里分享呢。我花了两天晚上的时间把这些碎片拼凑在一起,但这就是我所做的,希望对你们中的一些人有所帮助。
我按照这个程序清理了烂摊子,先做了一个备份,以防万一。
sudo apt install appstream/xenial-backports
sudo rm /etc/apt/apt.conf.d/50appstream
sudo rm /var/cache/app-info/xmls/fwupd.xml
sudo apt install --reinstall libappstream4
sudo appstreamcli refresh --force
sudo reboot
Run Code Online (Sandbox Code Playgroud)
不确定是否需要重启,但重启后我做了:
sudo appstreamcli refresh --force
Run Code Online (Sandbox Code Playgroud)
并且没有更多错误。
小智 8
从 16.04 LTS 升级到 18.04.1 LTS 后,我遇到了这个问题。我最初的错误信息是:
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 rm /var/cache/app-info/xmls/fwupd.xml
$ sudo appstreamcli refresh --force
Run Code Online (Sandbox Code Playgroud)
这导致了这个终端消息:
AppStream cache update completed successfully.
Run Code Online (Sandbox Code Playgroud)
然后,sudo apt-get update并sudo apt-get upgrade完美地工作。
| 归档时间: |
|
| 查看次数: |
69821 次 |
| 最近记录: |