当前位置: 首页 > news >正文

apt update报错E: Dynamic MMap ran out of room

在FreeBSD jail 里安装启动Ubuntu jammy系统,每次装好执行jexec ubjammy sh进入Ubuntu系统后,执行apt update报错。

apt update报错信息:

Fetched 11.7 MB in 8s (1525 kB/s)                                              
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
Reading package lists... Error!
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing libsurgescript0.5.4.4 (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

根据提示,使用

man 5 apt.conf 查看帮助,发现:

Cache-Start, Cache-Grow, Cache-LimitAPT uses since version 0.7.26 a resizable memory mapped cache fileto store the available information.  Cache-Start acts as a hint ofthe size the cache will grow to, and is therefore the amount ofmemory APT will request at startup. The default value is 20971520bytes (~20 MB). Note that this amount of space needs to beavailable for APT; otherwise it will likely fail ungracefully, sofor memory restricted devices this value should be lowered while onsystems with a lot of configured sources it should be increased.Cache-Grow defines in bytes with the default of 1048576 (~1 MB) howmuch the cache size will be increased in the event the spacedefined by Cache-Start is not enough. This value will be appliedagain and again until either the cache is big enough to store allinformation or the size of the cache reaches the Cache-Limit. Thedefault of Cache-Limit is 0 which stands for no limit. IfCache-Grow is set to 0 the automatic growth of the cache isdisabled.

那就增大限制,使用Cache-Grow没有成功,那就直接增大Cache-start,设为64M。因为当前系统里没有vi,所以直接使用了echo 重定向:

echo 'APT::Cache-Start "67108864";' > /etc/apt/apt.conf.d/99cachelimit

再次执行apt update,成功!

# apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • 集成excel工具:自定义导入回调监听器、自定义类型转换器、web中的读
  • JMESPath: 强大的处理JSON数据
  • Python|OpenCV-实现人物的姿态识别检测以及实时计数(18)
  • 解决:WPS,在一个表格中,按多次换行,无法换到下一页
  • Web 性能入门指南-1.5 创建 Web 性能优化文化的最佳实践
  • 概率论期末速成(知识点+例题)
  • Nginx 负载均衡详解
  • windows USB 设备驱动开发-USB 功能控制器驱动开发(一)
  • 最新版智能修图-中文luminar ai 1.55(13797) 和 neo1.20,支持m芯片和intel芯片(绝对可用)
  • PyMysql error : Packet Sequence Number Wrong - got 1 expected 0
  • 通过 Azure OpenAI 服务使用 GPT-35-Turbo and GPT-4(win版)
  • 35 解决单条链路故障问题-华三链路聚合
  • 【VS2019】安装下载库HtmlAgilityPack,可解析 HTML (图文详情)
  • QGroundControl连接运行在Docker中的PX4固件模拟器
  • [PaddlePaddle飞桨] PaddleOCR-光学字符识别-小模型部署
  • 【Leetcode】101. 对称二叉树
  • 【css3】浏览器内核及其兼容性
  • 002-读书笔记-JavaScript高级程序设计 在HTML中使用JavaScript
  • bearychat的java client
  • centos安装java运行环境jdk+tomcat
  • docker容器内的网络抓包
  • happypack两次报错的问题
  • JavaScript 一些 DOM 的知识点
  • java中具有继承关系的类及其对象初始化顺序
  • sublime配置文件
  • TypeScript实现数据结构(一)栈,队列,链表
  • use Google search engine
  • Vue官网教程学习过程中值得记录的一些事情
  • WordPress 获取当前文章下的所有附件/获取指定ID文章的附件(图片、文件、视频)...
  • 阿里研究院入选中国企业智库系统影响力榜
  • 对话 CTO〡听神策数据 CTO 曹犟描绘数据分析行业的无限可能
  • 前端面试之CSS3新特性
  • 前嗅ForeSpider教程:创建模板
  • 微信支付JSAPI,实测!终极方案
  • 协程
  • 支付宝花15年解决的这个问题,顶得上做出十个支付宝 ...
  • ​力扣解法汇总1802. 有界数组中指定下标处的最大值
  • # Redis 入门到精通(一)数据类型(4)
  • #laravel部署安装报错loadFactoriesFrom是undefined method #
  • #pragma data_seg 共享数据区(转)
  • #在线报价接单​再坚持一下 明天是真的周六.出现货 实单来谈
  • (11)MATLAB PCA+SVM 人脸识别
  • (2)空速传感器
  • (八)光盘的挂载与解挂、挂载CentOS镜像、rpm安装软件详细学习笔记
  • (不用互三)AI绘画工具应该如何选择
  • (附源码)php投票系统 毕业设计 121500
  • (附源码)springboot宠物医疗服务网站 毕业设计688413
  • (附源码)计算机毕业设计SSM疫情下的学生出入管理系统
  • (转)es进行聚合操作时提示Fielddata is disabled on text fields by default
  • (转)Sublime Text3配置Lua运行环境
  • (转)淘淘商城系列——使用Spring来管理Redis单机版和集群版
  • (转)总结使用Unity 3D优化游戏运行性能的经验
  • *++p:p先自+,然后*p,最终为3 ++*p:先*p,即arr[0]=1,然后再++,最终为2 *p++:值为arr[0],即1,该语句执行完毕后,p指向arr[1]
  • *算法训练(leetcode)第四十天 | 647. 回文子串、516. 最长回文子序列
  • .Net 8.0 新的变化