Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk
, the following error appears:
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: openjdk-7-jdk :
Depends: openjdk-7-jre (= 7u51-2.4.6-1ubuntu4) E: Unable to correct
problems, you have held broken packages.
How do I fix this problem?