To avoid typing in the same set of commands, shell scripts can be great.
Here is a simple shell script that will run the commands that are used to fix the mergelist errors in Ubuntu / Linux Mint which prevents any updates from running. Check out the related post here.
[Note : If you have already fixed the errors, don’t run this script as it will start from scratch and re-run the update...

While using the package manager or trying to install applications through Terminal, it is possible to get a nasty error which is something like this :
E:Encountered a section with no Package: header,
E:Problem with MergeList /var/lib/apt/lists /us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages,
E:The package lists or status file could not be parsed or opened.
This will prevent from ...