Wednesday, July 29, 2015

APT- Trouble Shooting (gap intentional)

These kind of errors are more often seen when ever you are trying to install a new software in your Linux machine.


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 libradsec0 (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/http.kali.org_kali_dists_kali-dev_main_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

Here is the solution that worked for me on Backtrack 5 R2

Linux bt 3.2.6 i686 GNU/Linux

Add the following line to the file 70debconf which can be found under /etc/apt/apt.conf.d

You can do the same by the following commands..

cd /etc/apt/apt.conf.d

Open the file in your favorite editor

nano 70debconf

And then add the following line

APT::Cache-Limit "100000000";

Don't forget to do the last step of putting salt to your food ;)

sudo apt-get clean && sudo apt-get update --fix-missing

With this there are some other commands as well that will come handy..

apt-get autoclean--- This command removes the .deb files for all the packages that are no longer installed on your system.

Now you can also remove these files from the location 


And yes it gives you a lot of space.
You can correlate this when you delete the %temp% files from your windows system. ;) (I know it is a bad example)

Similarly the command apt-get clean (that is used in the example above)removes all packages from the package cache.

If you are too much into Ubuntu and want to learn more, here is the 

No comments:

Post a Comment