4

I have upgraded to 12.04 from 11.10. I am getting following error message

E:Problem parsing dependency Depends 
E:Error occurred while processing iw (NewVersion2) 
E:Problem with MergeList /var/lib/dpkg/status 
E:The package lists or status file could not be parsed or opened.

I have tried the following command

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

Ubuntu Software Center crashes with above error message.

Avinash Raj
  • 77,204
  • 56
  • 214
  • 254
aashish
  • 151
  • 1
  • 5
  • 1
    Possible duplicate of [How do I fix a "Problem with MergeList" or "status file could not be parsed" error when trying to do an update?](http://askubuntu.com/questions/30072/how-do-i-fix-a-problem-with-mergelist-or-status-file-could-not-be-parsed-err) – karel Mar 26 '17 at 00:22

1 Answers1

6

It seems like your /var/lib/dpkg/status file is corrupted. So try to replace the current status file with the old one.

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bak
sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
Avinash Raj
  • 77,204
  • 56
  • 214
  • 254
  • This worked for me, also another related answer: http://askubuntu.com/questions/343616/dpkg-exit-with-error-parsing-file-var-lib-dpkg-status-what-to-do – Ashutosh Jindal Nov 09 '15 at 20:23