尝试 sudo apt-get 任何内容时,动态 MMap 空间不足

use*_*406 11 10.04 apt

我在更新管理器中遇到错误,要求我进行部分升级,但失败了。现在我sudo apt-get install什么也做不了。我试图修复它,现在我sudo apt-get什么也做不了。每次,我都会得到这个输出:

Reading package lists... Error!
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing libuptimed0 (NewVersion1)
E: Problem with MergeList
/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid_universe_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.
Run Code Online (Sandbox Code Playgroud)

我不知道为什么会发生这种情况或如何解决它,我担心如果我尝试一些可能不起作用的东西,它会使我的问题变得更糟。(仅供参考,我目前在我的机器上运行 10.04 (Lucid)。)

Col*_*ing 21

我相信一种解决方案是在 /etc/apt/apt.conf.d/70debconf 中增加 APT::Cache-Limit 的值,为此使用:

sudo gedit /etc/apt/apt.conf.d/70debconf
Run Code Online (Sandbox Code Playgroud)

并将以下内容添加到文件末尾:

APT::Cache-Limit "100000000";
Run Code Online (Sandbox Code Playgroud)

..然后运行:

sudo apt-get clean
sudo apt-get update --fix-missing
Run Code Online (Sandbox Code Playgroud)