Error saying "Connection failed" when trying to install java jdk on slave VM

0 votes

Hey, I have installed jenkins and java JDK on my master VM, now I'm trying to install it on the slave VM but I'm ending up with an error. I've used the same commands on my slave VM as on the master. The problem is, it worked on the master and didn't work on the slave. Where am I going wrong?

Command that produced this error:

sudo apt-get install default-jdk

Jan 2 in Jenkins by Ali
• 10,430 points
61 views

1 answer to this question.

0 votes

Hey @Ali, I went through the error and there are two possible reasons for this error:

  • either your VM is not connected to the internet

  • or it's unable to connect to the default jdk

Check your internet connection, if not connected, connect it to the internet and try the same command again. 

If that doesn't work, download the openjdk-8-jdk instead of the default one. Execute the following commands:

sudo apt-get upgrade
sudo apt-get update
sudo apt-get install openjdk-8-jdk

answered Jan 2 by Vishnu

Related Questions In Jenkins

0 votes
1 answer

Error saying "localhost:3001error" When trying to run a build - Jenkins

There are two possible issues with this ...READ MORE

answered Dec 19, 2018 in Jenkins by Kalgi
• 42,280 points
124 views
0 votes
1 answer
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,870 points
316 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
211 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Error when trying to start puppet service

first where the puppetserver is installed i.e.., ...READ MORE

answered Mar 28 in Jenkins by Mallikarjuna
• 140 points
1,268 views