[ubuntu] "Package dependencies cannot be resolved." when trying to install OpenJDK 6 Runtime.

view story

http://ubuntuforums.org – As the title says, I was trying to install OpenJDK 6 Runtime on Ubuntu 12.04, but I'm getting this error: "Package dependencies cannot be resolved. This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time. The following packages have unmet dependencies: openjdk-6-jre: Depends: openjdk-6-jre-headless (>= 6b24-1.11.1-4ubuntu2) but 6b24-1.11.1-4ubuntu2 is to be installed Depends: libjpeg8 (>= 8c) but 8 (Hardware)