apt update报错:Error in `appstreamcli‘: double free or corruption ... Aborted ...(libappstream3)
生活随笔
收集整理的這篇文章主要介紹了
apt update报错:Error in `appstreamcli‘: double free or corruption ... Aborted ...(libappstream3)
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原因:
ubuntu16.0.4內(nèi)置的libappstream是2.0以前的版本,我們必須更新到3.0以上的版本才可以
解決方法:
- 清除libappstream3(purge比remove多清理配置文件)
運(yùn)行結(jié)果:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:gnome-software-common libgtkspell3-3-0 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED:appstream* gnome-software* libappstream3* ubuntu-software* 0 upgraded, 0 newly installed, 4 to remove and 281 not upgraded. After this operation, 1,759 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 214637 files and directories currently installed.) Removing ubuntu-software (3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) ... Removing gnome-software (3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) ... Purging configuration files for gnome-software (3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) ... Removing appstream (0.9.4-1) ... Purging configuration files for appstream (0.9.4-1) ... rmdir: failed to remove '/var/cache/app-info/': Directory not empty Removing libappstream3:amd64 (0.9.4-1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu4.8) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu11.3) ... yg@ubuntu:~$- 繼續(xù)執(zhí)行:
結(jié)果:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED:gnome-software-common libgtkspell3-3-0 0 upgraded, 0 newly installed, 2 to remove and 280 not upgraded. After this operation, 2,744 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 214577 files and directories currently installed.) Removing gnome-software-common (3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) ... Removing libgtkspell3-3-0:amd64 (3.0.7-2) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu11.3) ...- 執(zhí)行:
結(jié)果:
yg@ubuntu:~$ sudo apt-get update Hit:1 http://archive.canonical.com/ubuntu xenial InRelease Hit:2 http://mirrors.aliyun.com/ubuntu xenial InRelease Hit:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease Hit:4 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease Hit:5 http://mirrors.aliyun.com/ubuntu xenial-security InRelease Reading package lists... Done W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:4 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:4 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:29 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:53 W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:63 yg@ubuntu:~$沒再報(bào)錯(cuò)了
參考文章1:Error in `appstreamcli’: double free or corruption (fasttop): 0x0000000002122000
參考文章2:ubuntu appstream錯(cuò)誤
但是我明明看到他報(bào)的是appstreamcli的錯(cuò)啊,,不明覺厲。。!
20220323 還需要apt upgrade!!!
最后是不是還得執(zhí)行一個(gè)apt upgrade指令啊?
我執(zhí)行了后,它提示我更新900Mb東西。。。
還好配好了阿里云的源,沒幾分鐘就更新好了
但最后還是提示有幾個(gè)包沒下成功?
然后我又運(yùn)行了apt update和apt upgrade
好像這次update沒報(bào)錯(cuò)了
再運(yùn)行apt update和apt upgrade都無(wú)報(bào)錯(cuò)
總結(jié)
以上是生活随笔為你收集整理的apt update报错:Error in `appstreamcli‘: double free or corruption ... Aborted ...(libappstream3)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux里根目录下的/bin,usr里
- 下一篇: apt-get remove 与 apt