Gaspar Cheng
Gaspar Cheng

Reputation: 1155

Install Jenkins in Ubuntu 18.04 LTS failed (Failed to start LSB: Start Jenkins at boot time.)

[Symptoms]

[Environment]

Upvotes: 40

Views: 43460

Answers (4)

interestedparty333
interestedparty333

Reputation: 2536

FWIW, my problem exhibiting the same symptom and solution was that the disk was full.

Upvotes: -1

Ritesh Jhaggar
Ritesh Jhaggar

Reputation: 113

Sometimes it also give an error due to some permission changed. You can try this:

chown root:root /tmp

chmod ugo+rwXt /tmp

Upvotes: 0

Gaspar Cheng
Gaspar Cheng

Reputation: 1155

[Root cause]

  • Ubuntu 18.04 LTS use Java 9 as default java
  • Jenkins 2.107.2 still use Java 8

[Solution]

  • Install Java 8 before install Jenkins

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt install oracle-java8-installer
    wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
    sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"
    sudo apt-get update
    sudo apt install jenkins
    

Upvotes: 62

Iftekhar Uddin Ahmed
Iftekhar Uddin Ahmed

Reputation: 589

  1. Install java 8
sudo apt install openjdk-8-jre
  1. Set default java version as java 8
sudo update-alternatives --config java
  1. Add the key
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
  1. Add repository
sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"
  1. Install jenkins
sudo apt install jenkins

Upvotes: 43

Related Questions