I had that happen to me to a while back when my sources.list was humongous. I've since trimmed my list down to include just a few reliable repositories.
To address this error: E: Dynamic MMap ran out of room
Here's what I did:
add/modify this entry in your /etc/apt/apt.conf
Code:
APT::Cache-Limit 10000000;
that seems to fix the "out of room" errors.
Hope this helps someone.