Search code examples
jenkinsubuntu-14.04

jenkins gnutls_handshake() failed: Handshake failed


I'm trying to install jenkins on Ubuntu14.04 following this site.

After executing the last step, the terminal shows this error:

Err https://pkg.jenkins.io/debian-stable/ binary/ jenkins 2.235.5
  gnutls_handshake() failed: Handshake failed
E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.235.5_all.deb  gnutls_handshake() failed: Handshake failed

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I tried to run sudo apt-get update --fix-missing (no errow shown after running this cmd) but it doesn't help.

I also tried to install by downloading jenkins.war but the jenkins service isn't enabled after installing.

Please show me how to fix this issue.


Solution

  • The issue seems to be upstream (I have hit the same snag this morning trying to update one of my jenkins installls).

    You could use wget and dpkg to fetch and install the deb package:

    wget https://pkg.jenkins.io/debian-stable/binary/jenkins_2.235.5_all.deb && sudo dpkg -i jenkins_2.235.5_all.deb
    

    Which will get you Jenkins installed.