apt update报错:Error in `appstreamcli‘: double free or corruption ... Aborted ...(libappstream3)
原因:
ubuntu16.0.4内置的libappstream是2.0以前的版本,我们必须更新到3.0以上的版本才可以
解决方法:
- 清除
libappstream3
(purge比remove多清理配置文件)
sudo apt-get purge libappstream3
运行结果:
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:~$
- 继续执行:
sudo apt autoremove
结果:
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) ...
- 执行:
sudo apt-get update
结果:
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:~$
没再报错了
参考文章1:Error in `appstreamcli’: double free or corruption (fasttop): 0x0000000002122000
参考文章2:ubuntu appstream错误
但是我明明看到他报的是appstreamcli的错啊,,不明觉厉。。!
20220323 还需要apt upgrade!!!
最后是不是还得执行一个apt upgrade
指令啊?
我执行了后,它提示我更新900Mb东西。。。
还好配好了阿里云的源,没几分钟就更新好了
但最后还是提示有几个包没下成功?
然后我又运行了apt update
和apt upgrade
好像这次update没报错了
再运行apt update
和apt upgrade
都无报错
apt update报错:Error in `appstreamcli‘: double free or corruption ... Aborted ...(libappstream3)相关推荐
- LS1028A make 错误 sudo apt update 错误: Error in `appstreamcli‘
在安装LS1028A的 OpenIL(open industry linux) 环境时遇到错误, NXP官方的操作流程: $ git clone https://github.com/openil/o ...
- Mac安装HomeBrew及update报错Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed
Mac安装HomeBrew及update报错Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed! 报错 运 ...
- Ubuntu20.03 sudo apt update报错 E 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件
晚上想在ubuntu上安装docker时,用apt-get update报错了 没有截图,图网上找的,情况类似 尝试过换源,换上了清华和阿里云的镜像都没用 然后用ifconfig发现只有docker0 ...
- 解决update报错:Truncated incorrect DOUBLE value:
用springboot写更新语句的时候,报错了Truncated incorrect DOUBLE value:的错,看了一下网上的解决办法,总结一下: 1.看sql语句有没有写对,字段的类型匹不匹配 ...
- Error in `appstreamcli': double free or corruption (fasttop): 0x0000000002122000
https://blog.csdn.net/taosera/article/details/78148845
- 【BUG解决】sudo apt-get update 报错 E: The repository ‘http://xxx Release‘ does not have a Release file.
BUG描述 前两天在虚拟机Vmware中安装了Ubuntu18.04操作系统,因为需要安装其他工具.所以想着执行命令 sudo apt-get update 更新一下系统,以便进行安装.结果出现&qu ...
- Ubuntu 20.04 QGIS update 报错 GPG error: https://ubuntu.qgis.org/ubuntu jammy InRelea
ubuntu 安装完qgis 后 update 报错 中文版可能是这样的 N: 鉴于仓库 'https://qgis.org/ubuntu jammy InRelease' 不支持 'i386' 体系 ...
- kali linux 2.0配置更新源后apt-get update 报错
这个是我/etc/apt/sources.list的更新源: 1 deb http://http.kali.org/kali kali-rolling main contrib non-free 2 ...
- 安装ROS使用sudo rosdep init 报错ERROR: cannot download default sources list from:
Author: 杭州电子科技大学-自动化学院-智能系统和机器人研究中心-Jolen Xie Q:安装ROS使用rosdep init报错 sudo apt install python-rosdep ...
最新文章
- 手术革命:这三家公司如何用AR技术辅助医疗手术
- JAVAC 命令详解
- Hadoop集群安装-CDH5(5台服务器集群)
- IOS学习之多线程(9)--NSOperation简单介绍
- 周报速递丨《网络安全审查办法》修订发布;微信支持数字人民币支付
- boost::fibers模块实现适配方法调用的测试程序
- 【Python】Effective Python 读书笔记
- spring依赖注入_Spring依赖注入
- NodeJs实现自定义分享功能,获取微信授权+用户信息
- go grpc压缩_跟我学 gRPC—1. gRPC 及相关介绍
- 苹果mac菜单栏应用管理软件Bartender 让Mac选项列不再拥挤
- 【python学习】如何批量从文件夹中根据文件后缀名提取文件,并存储到新的文件夹
- rsyslog 定义格式
- 【经验科普】实战分析C工程代码可能遇到的编译问题及其解决思路
- 模拟退火算法(惩罚函数法求约束优化问题)
- 【Day1】一小时入门 python 基础,从安装到入门
- Kubernetes----Job控制器
- 烤仔的朋友们丨详解数字美元白皮书:双层架构、通证化、汇款通道
- 基于深度学习的显著性检测用于遥感影像地物提取(U-2-NET)
- PROJECT2: 华为云 >> 企业云平台完整架构实例应用分解(第一部分Web端)
热门文章
- [数据恢复答疑]有关还原精灵保护系统的数据恢复
- 【学习笔记】JS进阶语法一window对象
- 【学习笔记】SAP Fiori相关概念介绍
- 【一周入门MySQL—3】多表查询、子查询、常用函数
- 交货单批次拆分(BAPI_OUTB_DELIVERY_CHANGE )并更改拣配数量,发货过账(WS_DELIVERY_UPDATE)
- 把内表 itab1 的 n1 到 n2 行内容附加到 itab2 内表中去.
- SAP更新数据表的程序执行需要SE38后执行
- 2017年我国SAP行业三大利好
- 34、Power Query-中国式排名
- BAPI_PO_CREATE1