> Since you have installed java manually, without the package manager,
it has no way of knowing it shouldn't install java from the archive.

When Java is installed, the following returns a 0 value:

java -version > /dev/null 2>&1 && echo $?

>From a script, detecting Java is simple:

--
#!/bin/bash

echo -n "Java is ";
java -version > /dev/null 2>&1

if [ "$?" != "0" ]; then
  echo -n "not ";
fi

echo "installed."
--

The package manager technically *can* detect whether Java is installed
(either as a package or manually), but it might not be worthwhile.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1450950

Title:
  Package dependency on Java

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1450950/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to