Linux下update错误 E: Dynamic MMap ran out of room. 的解决方法

来源:互联网 发布:设备费用估算法 编辑:程序博客网 时间:2024/06/05 11:10

错误: 

     在linux下更新时出现错误,内容为:E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)

 

解决办法:

终端下输入命令 sudo vim /etc/apt/apt.conf.d/70debconf

在打开的文件中添加一行 "APT::Cache-Limit 33554432;"。

 

注:

在ubuntu10.04下,70debconf 是缓存配置文件,在其他的一些linux系统中可能在./apt目录下就有配置文件了。

33554432指的是是缓存大小,尽量大吧,保存ok!