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