欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

Ubuntu切换阿里源报错AbortedcoredumpedexecutingscriptsAPT::Update::PostSub-processreturnedanerror

时间:2023-05-22
1、问题现象

Ubuntu 切换阿里源后使用 sudo apt-get update 更新报错:

Fetched 60.6 MB in 15s (3,983 kB/s) *** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000002077400 ***======= Backtrace: =========appstreamcli(ascli_refresh_cache+0x12e)[0x4049de]appstreamcli(as_client_run+0x6fb)[0x403ceb]/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f09c4ef4830]appstreamcli(_start+0x29)[0x403519]======= Memory map: ========00400000-00408000 r-xp 00000000 08:02 36700210 /usr/bin/appstreamcli00607000-00608000 r--p 00007000 08:02 36700210 /usr/bin/appstreamcli00608000-00609000 rw-p 00008000 08:02 36700210 /usr/bin/appstreamcli0135a000-02eb3000 rw-p 00000000 00:00 0 [heap]7f09b8000000-7f09b8021000 rw-p 00000000 00:00 0 7f09b8021000-7f09bc000000 ---p 00000000 00:00 0 7f09bf6a2000-7f09bf6ad000 r-xp 00000000 08:02 37094102 /usr/lib/x86_64-linux-......Aborted (core dumped)Reading package lists..、DoneE: 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

2、解决方法

sudo apt-get purge libappstream3sudo apt-get update

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。