Unable to update Ubuntu 10.04

No Gravatar

I tried to update Ubuntu 10.04, but it ended up crashing.  Therefore, I had no other choice but to reboot.  Upon rebooting, I ended up getting the following error message when I tried to update Ubuntu 10.04.

‘E:Malformed 2nd word in the Status line, E:Error occurred while processing libsasl2-modules (UsePackage1), E:Problem with MergeList /var/lib/dpkg/status, E:The package lists or status file could not be parsed or opened.’

Looking online did not provide much help, so I had to do my own testing.

My first attempt was to rename status to status.old in hopes of the file being recreated.  That did not work.  My next attempt was to rename status-old to status.  That worked.

Therefore, in order to fix Ubuntu, one will have to do the following.

  1. Click on Applications -> Accessories -> Terminal
  2. In the terminal window type sudo nautilus and press the enter key
  3. Navigate to the File System -> var -> lib -> dpkg directory
  4. right click on the status file and click on rename
  5. rename the file to status.old
  6. right click on the status-old file and click on rename
  7. rename status-old to status
  8. close the navigation window
  9. type exit and enter
  10. type exit and enter to close the terminal window

Fortunately, Ubuntu Linux keeps a copy of the old files before deleting them.  Therefore, if an upgrade fails, one can try using the old file instead.  In my case, the old file solved the unable to update problem.

It is recommended to do a filesystem check since Ubuntu may have some errors after a crash.  http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/ will provide help in this area.  su – is used in Redhat Linux, therefore, sudo will have to used instead for Ubuntu.  The commands for Ubuntu are in the command line:

  1. cd /
  2. sudo touch /forcefsck
  3. reboot

The following post, from a while ago, also has the solution which I wish I had found sooner http://ubuntuforums.org/archive/index.php/t-907474.html

Leave a Reply