在Ubuntu16.04操作系统中,初次运行sudo apt-get update时,总会报如下错误。

*** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000002c79ec0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7fe249d25725]
/lib/x86_64-linux-gnu/libc.so.6(+0x7ff4a)[0x7fe249d2df4a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fe249d31abc]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_component_complete+0x439)[0x7fe24a0a9d19]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_data_pool_update+0x44a)[0x7fe24a0aaf0a]
/usr/lib/x86_64-linux-gnu/libappstream.so.3(as_cache_builder_refresh+0x1c2)[0x7fe24a0a0272]
appstreamcli(ascli_refresh_cache+0x12e)[0x4049de]
appstreamcli(as_client_run+0x6fb)[0x403ceb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fe249cce830]
appstreamcli(_start+0x29)[0x403519]
======= Memory map: ========
00400000-00408000 r-xp 00000000 08:01 655410                             /usr/bin/appstreamcli
00607000-00608000 r--p 00007000 08:01 655410                             /usr/bin/appstreamcli
00608000-00609000 rw-p 00008000 08:01 655410                             /usr/bin/appstreamcli
02121000-03ceb000 rw-p 00000000 00:00 0                                  [heap]
7fe240000000-7fe240021000 rw-p 00000000 00:00 0
7fe240021000-7fe244000000 ---p 00000000 00:00 0
7fe24447c000-7fe244487000 r-xp 00000000 08:01 920891                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7fe244487000-7fe244687000 ---p 0000b000 08:01 920891                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7fe244687000-7fe244688000 r--p 0000b000 08:01 920891                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7fe244688000-7fe244689000 rw-p 0000c000 08:01 920891                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7fe244689000-7fe2446bf000 r-xp 00000000 08:01 921372                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fe2446bf000-7fe2448bf000 ---p 00036000 08:01 921372                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fe2448bf000-7fe2448c4000 r--p 00036000 08:01 921372                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fe2448c4000-7fe2448c5000 rw-p 0003b000 08:01 921372                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fe2448c5000-7fe2448de000 r-xp 00000000 08:01 920895                     /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
7fe2448de000-7fe244ade000 ---p 00019000 08:01 920895                     /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
7fe244ade000-7fe244ae1000 r--p 00019000 08:01 920895                     /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
7fe244ae1000-7fe244ae2000 rw-p 0001c000 08:01 920895                     /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
7fe244ae2000-7fe2454a1000 r--p 00000000 08:01 662608                     /usr/lib/locale/locale-archive
7fe2454a1000-7fe246d57000 r-xp 00000000 08:01 664267                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7fe246d57000-7fe246f56000 ---p 018b6000 08:01 664267                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7fe246f56000-7fe246f57000 r--p 018b5000 08:01 664267                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7fe246f57000-7fe246f58000 rw-p 018b6000 08:01 664267                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7fe246f58000-7fe246f5c000 r-xp 00000000 08:01 2626195                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe246f5c000-7fe24715b000 ---p 00004000 08:01 2626195                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe24715b000-7fe24715c000 r--p 00003000 08:01 2626195                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe24715c000-7fe24715d000 rw-p 00004000 08:01 2626195                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe24715d000-7fe247265000 r-xp 00000000 08:01 2626081                    /lib/x86_64-linux-gnu/libm-2.23.so
7fe247265000-7fe247464000 ---p 00108000 08:01 2626081                    /lib/x86_64-linux-gnu/libm-2.23.so
7fe247464000-7fe247465000 r--p 00107000 08:01 2626081                    /lib/x86_64-linux-gnu/libm-2.23.so
7fe247465000-7fe247466000 rw-p 00108000 08:01 2626081                    /lib/x86_64-linux-gnu/libm-2.23.so
7fe247466000-7fe247487000 r-xp 00000000 08:01 2626078                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fe247487000-7fe247686000 ---p 00021000 08:01 2626078                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fe247686000-7fe247687000 r--p 00020000 08:01 2626078                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fe247687000-7fe247688000 rw-p 00021000 08:01 2626078                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fe247688000-7fe247807000 r-xp 00000000 08:01 664281                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7fe247807000-7fe247a07000 ---p 0017f000 08:01 664281                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7fe247a07000-7fe247a17000 r--p 0017f000 08:01 664281                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7fe247a17000-7fe247a18000 rw-p 0018f000 08:01 664281                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7fe247a18000-7fe247a1c000 rw-p 00000000 00:00 0
7fe247a1c000-7fe247a1f000 r-xp 00000000 08:01 2626035                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fe247a1f000-7fe247c1e000 ---p 00003000 08:01 2626035                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fe247c1e000-7fe247c1f000 r--p 00002000 08:01 2626035                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fe247c1f000-7fe247c20000 rw-p 00003000 08:01 2626035                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fe247c20000-7fe247c36000 r-xp 00000000 08:01 2626049                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe247c36000-7fe247e35000 ---p 00016000 08:01 2626049                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe247e35000-7fe247e36000 rw-p 00015000 08:01 2626049                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe247e36000-7fe247fa8000 r-xp 00000000 08:01 664727                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fe247fa8000-7fe2481a8000 ---p 00172000 08:01 664727                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fe2481a8000-7fe2481b2000 r--p 00172000 08:01 664727                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fe2481b2000-7fe2481b4000 rw-p 0017c000 08:01 664727                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fe2481b4000-7fe2481b8000 rw-p 00000000 00:00 0
7fe2481b8000-7fe2481e8000 r-xp 00000000 08:01 664572                     /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fe2481e8000-7fe2483e7000 ---p 00030000 08:01 664572                     /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fe2483e7000-7fe2483e8000 r--p 0002f000 08:01 664572                     /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fe2483e8000-7fe2483e9000 rw-p 00030000 08:01 664572                     /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fe2483e9000-7fe2485dd000 r-xp 00000000 08:01 664932                     /usr/lib/x86_64-linux-gnu/libxapian.so.22.7.0
7fe2485dd000-7fe2487dd000 ---p 001f4000 08:01 664932                     /usr/lib/x86_64-linux-gnu/libxapian.so.22.7.0
7fe2487dd000-7fe2487e4000 r--p 001f4000 08:01 664932                     /usr/lib/x86_64-linux-gnu/libxapian.so.22.7.0
7fe2487e4000-7fe2487e5000 rw-p 001fb000 08:01 664932                     /usr/lib/x86_64-linux-gnu/libxapian.so.22.7.0
7fe2487e5000-7fe248802000 r-xp 00000000 08:01 664986                     /usr/lib/x86_64-linux-gnu/libyaml-0.so.2.0.4
7fe248802000-7fe248a02000 ---p 0001d000 08:01 664986                     /usr/lib/x86_64-linux-gnu/libyaml-0.so.2.0.4
7fe248a02000-7fe248a03000 r--p 0001d000 08:01 664986                     /usr/lib/x86_64-linux-gnu/libyaml-0.so.2.0.4
7fe248a03000-7fe248a04000 rw-p 0001e000 08:01 664986                     /usr/lib/x86_64-linux-gnu/libyaml-0.so.2.0.4
7fe248a04000-7fe248bb4000 r-xp 00000000 08:01 664978                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7fe248bb4000-7fe248db3000 ---p 001b0000 08:01 664978                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7fe248db3000-7fe248dbb000 r--p 001af000 08:01 664978                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7fe248dbb000-7fe248dbd000 rw-p 001b7000 08:01 664978                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7fe248dbd000-7fe248dbe000 rw-p 00000000 00:00 0
7fe248dbe000-7fe248dc5000 r-xp 00000000 08:01 663972                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7fe248dc5000-7fe248fc4000 ---p 00007000 08:01 663972                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7fe248fc4000-7fe248fc5000 r--p 00006000 08:01 663972                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7fe248fc5000-7fe248fc6000 rw-p 00007000 08:01 663972                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7fe248fc6000-7fe248fdd000 r-xp 00000000 08:01 2626163                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7fe248fdd000-7fe2491dd000 ---p 00017000 08:01 2626163                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7fe2491dd000-7fe2491de000 r--p 00017000 08:01 2626163                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7fe2491de000-7fe2491df000 rw-p 00018000 08:01 2626163                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7fe2491df000-7fe2491e1000 rw-p 00000000 00:00 0
7fe2491e1000-7fe249200000 r-xp 00000000 08:01 2626169                    /lib/x86_64-linux-gnu/libselinux.so.1
7fe249200000-7fe2493ff000 ---p 0001f000 08:01 2626169                    /lib/x86_64-linux-gnu/libselinux.so.1
7fe2493ff000-7fe249400000 r--p 0001e000 08:01 2626169                    /lib/x86_64-linux-gnu/libselinux.so.1
7fe249400000-7fe249401000 rw-p 0001f000 08:01 2626169                    /lib/x86_64-linux-gnu/libselinux.so.1
7fe249401000-7fe249403000 rw-p 00000000 00:00 0
7fe249403000-7fe24941c000 r-xp 00000000 08:01 2626202                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fe24941c000-7fe24961b000 ---p 00019000 08:01 2626202                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fe24961b000-7fe24961c000 r--p 00018000 08:01 2626202                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fe24961c000-7fe24961d000 rw-p 00019000 08:01 2626202                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fe24961d000-7fe249620000 r-xp 00000000 08:01 664103                     /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4800.0
7fe249620000-7fe24981f000 ---p 00003000 08:01 664103                     /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4800.0
7fe24981f000-7fe249820000 r--p 00002000 08:01 664103                     /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4800.0
7fe249820000-7fe249821000 rw-p 00003000 08:01 664103                     /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4800.0
7fe249821000-7fe249839000 r-xp 00000000 08:01 2626157                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fe249839000-7fe249a38000 ---p 00018000 08:01 2626157                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fe249a38000-7fe249a39000 r--p 00017000 08:01 2626157                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fe249a39000-7fe249a3a000 rw-p 00018000 08:01 2626157                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fe249a3a000-7fe249a3e000 rw-p 00000000 00:00 0
7fe249a3e000-7fe249aac000 r-xp 00000000 08:01 2626140                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7fe249aac000-7fe249cac000 ---p 0006e000 08:01 2626140                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7fe249cac000-7fe249cad000 r--p 0006e000 08:01 2626140                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7fe249cad000-7fe249cae000 rw-p 0006f000 08:01 2626140                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7fe249cae000-7fe249e6e000 r-xp 00000000 08:01 2626011                    /lib/x86_64-linux-gnu/libc-2.23.so
7fe249e6e000-7fe24a06d000 ---p 001c0000 08:01 2626011                    /lib/x86_64-linux-gnu/libc-2.23.so
7fe24a06d000-7fe24a071000 r--p 001bf000 08:01 2626011                    /lib/x86_64-linux-gnu/libc-2.23.so
7fe24a071000-7fe24a073000 rw-p 001c3000 08:01 2626011                    /lib/x86_64-linux-gnu/libc-2.23.so
7fe24a073000-7fe24a077000 rw-p 00000000 00:00 0
7fe24a077000-7fe24a0c2000 r-xp 00000000 08:01 663665                     /usr/lib/x86_64-linux-gnu/libappstream.so.0.9.4
7fe24a0c2000-7fe24a2c2000 ---p 0004b000 08:01 663665                     /usr/lib/x86_64-linux-gnu/libappstream.so.0.9.4
7fe24a2c2000-7fe24a2c3000 r--p 0004b000 08:01 663665                     /usr/lib/x86_64-linux-gnu/libappstream.so.0.9.4
7fe24a2c3000-7fe24a2c4000 rw-p 0004c000 08:01 663665                     /usr/lib/x86_64-linux-gnu/libappstream.so.0.9.4
7fe24a2c4000-7fe24a316000 r-xp 00000000 08:01 664127                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.0
7fe24a316000-7fe24a515000 ---p 00052000 08:01 664127                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.0
7fe24a515000-7fe24a516000 r--p 00051000 08:01 664127                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.0
7fe24a516000-7fe24a517000 rw-p 00052000 08:01 664127                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.0
7fe24a517000-7fe24a697000 r-xp 00000000 08:01 664089                     /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.0
7fe24a697000-7fe24a897000 ---p 00180000 08:01 664089                     /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.0
7fe24a897000-7fe24a89b000 r--p 00180000 08:01 664089                     /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.0
7fe24a89b000-7fe24a89d000 rw-p 00184000 08:01 664089                     /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.0
7fe24a89d000-7fe24a89f000 rw-p 00000000 00:00 0
7fe24a89f000-7fe24a9ad000 r-xp 00000000 08:01 2626053                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.0
7fe24a9ad000-7fe24abad000 ---p 0010e000 08:01 2626053                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.0
7fe24abad000-7fe24abae000 r--p 0010e000 08:01 2626053                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.0
7fe24abae000-7fe24abaf000 rw-p 0010f000 08:01 2626053                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.0
7fe24abaf000-7fe24abb0000 rw-p 00000000 00:00 0
7fe24abb0000-7fe24abd6000 r-xp 00000000 08:01 2625983                    /lib/x86_64-linux-gnu/ld-2.23.so
7fe24ad91000-7fe24adb0000 r--s 00000000 08:01 1179749                    /usr/share/mime/mime.cache
7fe24adb0000-7fe24adbe000 rw-p 00000000 00:00 0
7fe24add2000-7fe24add5000 rw-p 00000000 00:00 0
7fe24add5000-7fe24add6000 r--p 00025000 08:01 2625983                    /lib/x86_64-linux-gnu/ld-2.23.so
7fe24add6000-7fe24add7000 rw-p 00026000 08:01 2625983                    /lib/x86_64-linux-gnu/ld-2.23.so
7fe24add7000-7fe24add8000 rw-p 00000000 00:00 0
7fff004d3000-7fff004f4000 rw-p 00000000 00:00 0                          [stack]
7fff0054e000-7fff00550000 r--p 00000000 00:00 0                          [vvar]
7fff00550000-7fff00552000 r-xp 00000000 00:00 0                          [vdso]
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

该报错为appstreamcli问题,解决办法如下:

sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

执行完上述命令之后再次运行sudo apt-get update就不会再报上述错误。

Logo

更多推荐