Last updated on September 8, 2020 by Dan Nanni
sudo apt-get update, it throws the following error:
E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/dpkg/status E: The package lists or status file could not be parsed or opened.I then cannot install any package on Raspbian. How can I solve this error?
The following error that says "Problem with MergeList
/var/lib/dpkg/status indicates that the status file got corrupted for some reason, and so cannot be parsed. This status file contains information about installed deb packages, and thus needs to be carefully backed up.
In this case, since this is freshly installed Raspbian, you can safely remove the status file, and re-generate it as follows.
$ sudo rm /var/lib/dpkg/status $ sudo touch /var/lib/dpkg/status $ sudo apt-get update
This website is made possible by minimal ads and your gracious donation via PayPal or credit card
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.