Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've installed Sun Java 6 manually since Canonical has removed it from its package repo (I use Ubuntu 12.04). Now I have the following problem: when I want to install a package which depends on Java via a virtual Java packages (java2-runtime or default-jre) the package manager complains that Java is not installed and tries to install the default JRE (OpenJDK on my system). Is there a way to manually mark the virtual package (e.g. java6-runtime) to be installed? This must be a common problem - how is it best addressed?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

use the equivs package to create a dummy package which provides the missing java6-runtime dependency, which will make dpkg/apt think that this dependency is satisfied. Here are some basic instructions on the debian wiki.

Also note that openjdk-6-jre is the free version of java, which is still available from ubuntu, and generally just works, and might be a much more simple alternative.

share|improve this answer
    
that was easy - thanks a lot! –  Peter Prettenhofer May 10 '12 at 16:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.