运行时出现以下错误 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)
小智 61
使用 CLI 命令删除 libappstream3
sudo apt-get remove libappstream3
Run Code Online (Sandbox Code Playgroud)
或者
sudo apt remove libappstream3
Run Code Online (Sandbox Code Playgroud)
之后, apt update 应该可以正常工作了。
来源:https : //forum.siduction.org/index.php?topic=6174.0
小智 6
(在 Matthias 的评论https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/comments/24 on bug #1579712)对我有用。
/usr/bin/appstreamcli如果您之后安装固定包,则删除是可以的。要手动安装,请执行以下操作(对于 amd64,请调整其他架构的 URL):
Run Code Online (Sandbox Code Playgroud)cd /tmp && mkdir asfix cd asfix wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb sudo dpkg -i *.deb这应该可以解决问题。
| 归档时间: |
|
| 查看次数: |
96128 次 |
| 最近记录: |