Ubuntu 16.04 LTS: apt-get update 失败处理 Aborted (core dumped)
在Ubuntu 16.04运行sudo apt-get update出现如下错误:
rogn@ubuntu:~$ sudo apt-get update Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] ...... ...... Get:80 http://us.archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B] Fetched 43.5 MB in 3min 35s (201 kB/s) *** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000002edee30 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7f75d2fff725] /lib/x86_64-linux-gnu/libc.so.6(+0x7ff4a)[0x7f75d3007f4a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f75d300babc] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_component_complete+0x439)[0x7f75d3383d19] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_data_pool_update+0x44a)[0x7f75d3384f0a] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_cache_builder_refresh+0x1c2)[0x7f75d337a272] appstreamcli(ascli_refresh_cache+0x12e)[0x4049de] appstreamcli(as_client_run+0x6fb)[0x403ceb] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f75d2fa8830] appstreamcli(_start+0x29)[0x403519] ======= Memory map: ======== 00400000-00408000 r-xp 00000000 08:01 63 /usr/bin/appstreamcli ...... ...... ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] 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
解决方法:删除libappstream3就可以了。(实测有效)
sudo apt-get purge libappstream3
或者
sudo apt-get remove libappstream3
执行完后再次执行sudo apt-get update命令就正常了。
个性签名:时间会解决一切