I have a VPS with Ubuntu Server 10.10 x64.
I tried to install Java using apt-get install openjdk-6-jre
but that fails, see ca-certificates-java fails to install.
Now I would like to install PHP with sudo apt-get install nginx php5-fpm php-apc php5-pgsql php5-suhosin
but that also fails, with the same error message as I had with Java. Why is that? How can I install other applications now after the installation of Java has failed?
You can't install other applications until you resolve the problem with
ca-certificates-java
.apt-get
won't let you keep any packages in an unconfigured state.If you are not able to resolve the problem (you should - just google the error message Java gives you), force removal of the package:
it seems like a broken ca-certificates-java package. Because the apt error says:
First try to remove it with:
dpkg -r ca-certificates-java
and reinstall it with apt:
apt-get install ca-certificates-java
if other Dependencies are not resolvable, try
apt-get -f install
to resolve failed dependencies.