-
最近在Ubuntu操作系统上的Terminal软件上,执行sudo apt-get update命令,会有如下错误提示,从而导致命令执行失败:
-
*** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000001549c80 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7faf638d87e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7faf638e137a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7faf638e553c]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_component_complete+0x439)[0x7faf63c5dd19]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_data_pool_update+0x44a)[0x7faf63c5ef0a]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_cache_builder_refresh+0x1c2)[0x7faf63c54272]
appstreamcli(ascli_refresh_cache+0x12e)[0x4049de]
appstreamcli(as_client_run+0x6fb)[0x403ceb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7faf63881830]
appstreamcli(_start+0x29)[0x403519]
-
碰到该提示,我们需要执行如下命令:
-
sudo apt-get purge libappstream3
-
该命令执行完后,我们再执行如下命令:
-
sudo apt-get update
-
此时,该命令就能执行成功了。