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, 2019 in Jenkins by Ali
• 11,360 points
1,137 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 3, 2019 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
• 52,350 points
1,503 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
• 10,620 points
3,594 views
0 votes
1 answer

Error when trying to start puppet service

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

answered Mar 28, 2019 in Jenkins by Mallikarjuna
• 140 points
9,035 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP