I am trying to install Jenkins on ubuntu 11.04
I have installed Oracle Java
$:~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) Server VM (build 25.5-b02, mixed mode)
$:~$ javac -version
javac 1.8.0_05
$:~$
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.8.0_05/bin:/usr/lib/hadoop/hadoop-1.2.0/bin/:/usr/lib/pig/pig-0.12.0/bin:/usr/lib/hive/hive-0.11.0/bin:/usr/lib/hbase/hbase-0.94.8/bin
$:~$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.8.0_05
When I try to install, I have some dependency issues..
$ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
jenkins : Depends: daemon but it is not installable
Depends: default-jre-headless but it is not installable or
java-runtime-headless but it is not installable
E: Broken packages
to work install Jenkins they request Java versions greater than 1.8.0_1. I got hte same error and I updated java to below version
java -version
java version "1.8.0_121"
Now jenkins installing without errors Below link worked for 14.04 (hope it works for 11.04 too) Install Java version in ubuntu
Try this:
sudo apt-get update
sudo apt-get remove default-jre default-jdk
sudo apt-get update
sudo apt-get install default-jre default-jdk
More about java on Ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
Steps to install jenkins and view in browser with IP:-
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
add below line in the file /etc/apt/sources.list: sudo nano /etc/apt/sources.list OR sudo vi /etc/apt/sources.list
Add this below link at the end of editing document.
deb https://pkg.jenkins.io/debian binary/
Update your local package index
sudo apt-get update
Install jenkins now
sudo apt install jenkins
start jenkins service
sudo systemctl start jenkins
Enable the jenkins service
sudo systemctl enable jenkins
Now jenkins installed in your system. If are following these steps you are good to go. heat localhost:8080 in the browser. because jenkins works on 8080 by default. you can change it's port to others.
Now if are using google cloud then there is one more step.
<your-ip>
:8080 jenkins will open and ask you
to view the password which give location on the ui.For more detail please visit
https://www.jenkins.io/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With