Ubuntu – How to overcome these package dependency problems

apt

I upgraded to 11.10 and lost power during the upgrade. After bringing the box back up, I attempted to continue the upgrade and at one point did a partial upgrade to resolved dependency issues that I thought at the time were related to may failed upgrade. Now I have a working system for the most part. The problem is I can not install the 'acroread' package anymore because of dependency errors:

~ $ sudo apt-get install acroread
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 acroread : Depends: nspluginwrapper but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

~ $ sudo apt-get install nspluginwrapper

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nspluginwrapper : Depends: nspluginviewer (= 1.4.4-0ubuntu3)
E: Unable to correct problems, you have held broken packages.

 ~ $ sudo apt-get install nspluginviewer

R

eading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nspluginviewer:i386 : Depends: libgtk2.0-0:i386 (>= 2.8.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am running 64-bit but it seems acroread needs some 32-bit libraries that are not able to be installed. In my reading, I've found that there were some changes to multi-arch packages.

Does anyone know how I can repair my system to get around this problem?

Best Answer

Try sudo apt-get install -f. It will probably give some suggestions about removing and installing packages, do what seems reasonable. If that doesn't help, try booting into recovery mode and choosing the "fix broken packages". If that doesn't work... I don't know, I'd reinstall Ubuntu if I were you. (This is a good reason to always have /home on a separate partition!)

Related Question