I tried to install a automatic mount program "autofs5". I used " sudo apt-get install autofs5". This failed. Thereafter I have received another error when running "update"

Asked by Michael F Winthrop

I tried to install a automatic mount program "autofs5". The version was supposed to be compatible with Ubuntu 11 and later. I used " sudo apt-get install autofs5". This failed. Thereafter I have received another error when running "update", "E:Encountered a section with no Package: header,
E:Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-amd64_Packages,
E:The package lists or status file could not be parsed or opened."

I tried the remove for this package but get the same error.

"E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened."

What is recommended for the problem?

Thanks in advance
Mike W

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu autofs5 Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Revision history for this message
Michael F Winthrop (mwinthrop-1) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
Michael F Winthrop (mwinthrop-1) said :
#3

Everything worked like a charm except the Cashe-Limit. I doubled the value and PROBLEM SOLVED

Get:144 http://us.archive.ubuntu.com precise-backports/universe Translation-en [8646 B]
Fetched 25.4 MB in 19s (1316 kB/s)
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
Reading package lists... Error!
E: Unable to increase the size of the MMap as the limit of 25165824 bytes is already reached.
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 kradioripper (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
michael1204@mike314159:~$

At this point I received a notice that I had 23 updates.

Reading package lists... Done
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

Ran last command, but forgot to increase "Cache-Limit. Current value: 25165824"

I increased the Cashe-Limit to 50331648 and ran again:

This run was successful. I ran update manager and was notified "up to date". I recommend this solution.

Kudos to actionparsnip's solution. I recommend a larger value for "Cache-Limit. Current value: 25165824", i.e., 50331648