Oracle-jdk8-installer was not found While java is installed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I installed java by downloading its source. I set java path, it's OK and works but when I want to install another app (e.g Apache-Ambari-server with ambari-server start) I get this error:



E: Release 'ambari-server*.deb' for 'oracle-jdk8-installer' was not found


Why do I get an error when I have java on my system?



Edited:



Install JAVA:
Add path to /etc/profile:



JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1

sudo update-alternatives --set java /usr/local/java/jdk1.8.0_20/bin/java

source /etc/profile






share|improve this question






















  • What java do you have? How did you install it?
    – Yoran Jansen
    Apr 28 at 12:33










  • @Yoran Jansen. I edited the question, please read again.
    – ParisaN
    Apr 28 at 13:02










  • Please take a look at askubuntu.com/questions/521145/… for more information
    – Yoran Jansen
    Apr 29 at 10:33














up vote
0
down vote

favorite












I installed java by downloading its source. I set java path, it's OK and works but when I want to install another app (e.g Apache-Ambari-server with ambari-server start) I get this error:



E: Release 'ambari-server*.deb' for 'oracle-jdk8-installer' was not found


Why do I get an error when I have java on my system?



Edited:



Install JAVA:
Add path to /etc/profile:



JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1

sudo update-alternatives --set java /usr/local/java/jdk1.8.0_20/bin/java

source /etc/profile






share|improve this question






















  • What java do you have? How did you install it?
    – Yoran Jansen
    Apr 28 at 12:33










  • @Yoran Jansen. I edited the question, please read again.
    – ParisaN
    Apr 28 at 13:02










  • Please take a look at askubuntu.com/questions/521145/… for more information
    – Yoran Jansen
    Apr 29 at 10:33












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I installed java by downloading its source. I set java path, it's OK and works but when I want to install another app (e.g Apache-Ambari-server with ambari-server start) I get this error:



E: Release 'ambari-server*.deb' for 'oracle-jdk8-installer' was not found


Why do I get an error when I have java on my system?



Edited:



Install JAVA:
Add path to /etc/profile:



JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1

sudo update-alternatives --set java /usr/local/java/jdk1.8.0_20/bin/java

source /etc/profile






share|improve this question














I installed java by downloading its source. I set java path, it's OK and works but when I want to install another app (e.g Apache-Ambari-server with ambari-server start) I get this error:



E: Release 'ambari-server*.deb' for 'oracle-jdk8-installer' was not found


Why do I get an error when I have java on my system?



Edited:



Install JAVA:
Add path to /etc/profile:



JAVA_HOME=/usr/local/java/jdk1.8.0_20
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1

sudo update-alternatives --set java /usr/local/java/jdk1.8.0_20/bin/java

source /etc/profile








share|improve this question













share|improve this question




share|improve this question








edited Apr 28 at 13:01

























asked Apr 28 at 12:31









ParisaN

1127




1127











  • What java do you have? How did you install it?
    – Yoran Jansen
    Apr 28 at 12:33










  • @Yoran Jansen. I edited the question, please read again.
    – ParisaN
    Apr 28 at 13:02










  • Please take a look at askubuntu.com/questions/521145/… for more information
    – Yoran Jansen
    Apr 29 at 10:33
















  • What java do you have? How did you install it?
    – Yoran Jansen
    Apr 28 at 12:33










  • @Yoran Jansen. I edited the question, please read again.
    – ParisaN
    Apr 28 at 13:02










  • Please take a look at askubuntu.com/questions/521145/… for more information
    – Yoran Jansen
    Apr 29 at 10:33















What java do you have? How did you install it?
– Yoran Jansen
Apr 28 at 12:33




What java do you have? How did you install it?
– Yoran Jansen
Apr 28 at 12:33












@Yoran Jansen. I edited the question, please read again.
– ParisaN
Apr 28 at 13:02




@Yoran Jansen. I edited the question, please read again.
– ParisaN
Apr 28 at 13:02












Please take a look at askubuntu.com/questions/521145/… for more information
– Yoran Jansen
Apr 29 at 10:33




Please take a look at askubuntu.com/questions/521145/… for more information
– Yoran Jansen
Apr 29 at 10:33















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029200%2foracle-jdk8-installer-was-not-found-while-java-is-installed%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029200%2foracle-jdk8-installer-was-not-found-while-java-is-installed%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error