E: Could not perform immediate configuration on 'multiarch-support' - did you delete /var/lib/dpkg?

Well, I did - boy what a mistake it was. Online, I read that the only way to fix it was to reinstall. I obviously don't use windows, so that was certainly my last resort!

So here is how you can fix it, if you want to.

First, you need another computer running the same version (I think) of operating system as the computer you fscked up. Copy /var/lib/dpkg from the computer that works to the computer you screwed.

Next, if the computers don't run the same architecture, you must fix it. For instance, my fscked computer was running amd64 and the working computer was a i386. Go to /var/lib/dpkg and run this command:

sed -i 's/i386/amd64/' status

Lastly, you must configure all packages again: dpkg-reconfigure -a

Now, you should be able to install stuff again - see, it's not easier than reinstalling. :-)

Written by Jannich Brendle tor 08 december 2011 In How to

tags: postaweek2011

Related posts