Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-985

Ubuntu Installation Instructions lead to "Protocol "http" not supported or disabled in libcurl"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Coming from the main page for Jenkins (jenkins.io), selecting ubuntu/debian installation of the LTS version takes you to https://pkg.jenkins.io/debian-stable/

      The installation instructions suggest to add deb https://pkg.jenkins.io/debian-stable binary/ to /etc/apt/sources.list, but if you try to install jenkins with that you'll get:

      sudo apt-get install jenkins
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following additional packages will be installed:
        daemon
      The following NEW packages will be installed:
        daemon jenkins
      0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
      Need to get 68.9 MB/69.0 MB of archives.
      After this operation, 70.1 MB of additional disk space will be used.
      Do you want to continue? [Y/n] Y
      Err:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.19.3
        Protocol "http" not supported or disabled in libcurl
      E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.19.3_all.deb  Protocol "http" not supported or disabled in libcurl
      
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
      

      Changing the url from "https" to "http" fixes the problem.

      Other installation instructions don't mention the https url:
      https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu

        Attachments

          Issue Links

            Activity

            Hide
            hoeferh Henning Hoefer added a comment -

            Same on Ubuntu Trusty.
            This is probably because the download is being redirected to http:

            jenkinsvm:~$ curl -I https://pkg.jenkins.io/debian-stable/binary/jenkins_2.19.3_all.deb
            HTTP/1.1 200 Connection Established
            Proxy-Connection: keep-alive
            
            HTTP/1.1 302 Found
            Date: Fri, 18 Nov 2016 10:23:38 GMT
            Server: Apache/2.4.7 (Ubuntu)
            Location: http://mirrors.jenkins.io/debian-stable/jenkins_2.19.3_all.deb
            Content-Type: text/html; charset=iso-8859-1
            

            Also, this is not a bug in Jenkins. This issue should be moved to the INFRA project.

            Show
            hoeferh Henning Hoefer added a comment - Same on Ubuntu Trusty. This is probably because the download is being redirected to http: jenkinsvm:~$ curl -I https: //pkg.jenkins.io/debian-stable/binary/jenkins_2.19.3_all.deb HTTP/1.1 200 Connection Established Proxy-Connection: keep-alive HTTP/1.1 302 Found Date: Fri, 18 Nov 2016 10:23:38 GMT Server: Apache/2.4.7 (Ubuntu) Location: http: //mirrors.jenkins.io/debian-stable/jenkins_2.19.3_all.deb Content-Type: text/html; charset=iso-8859-1 Also, this is not a bug in Jenkins. This issue should be moved to the INFRA project .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: R. Tyler Croy
            Path:
            dist/profile/files/mirrorbrain/sync.sh
            http://jenkins-ci.org/commit/jenkins-infra/139223102666651effce749bd5221b086b5eec9b
            Log:
            Avoid pkg.jenkins.io staging => production rsync overwrites of Puppet managed files

            These files (like .htaccess) have been removed (jenkinsci/packaging#81) but seem
            to keep cropping up. This makes sure they're not rsynced into production.

            Fixes INFRA-985, INFRA-989

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: R. Tyler Croy Path: dist/profile/files/mirrorbrain/sync.sh http://jenkins-ci.org/commit/jenkins-infra/139223102666651effce749bd5221b086b5eec9b Log: Avoid pkg.jenkins.io staging => production rsync overwrites of Puppet managed files These files (like .htaccess) have been removed (jenkinsci/packaging#81) but seem to keep cropping up. This makes sure they're not rsynced into production. Fixes INFRA-985 , INFRA-989
            Hide
            harmv Harm V added a comment - - edited

            This seems to have happened again. -> Reopen.

             I get this on Ubuntu 16.04

            E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.222.3_all.deb  Protocol "http" not supported or disabled in libcurl 

             This is because the jenkins urls (incorrectly!) redirects to http (instead of downloading over https)

            $ curl -I https://pkg.jenkins.io/debian-stable/binary/jenkins_2.222.3_all.deb
            
            HTTP/1.1 302 Found
            Connection: keep-alive
            Content-Length: 247
            Server: Apache/2.4.29 (Ubuntu)
            Location: http://mirrors.jenkins.io/debian-stable/jenkins_2.222.3_all.deb
            Content-Type: text/html; charset=iso-8859-1
            Accept-Ranges: bytes
            Date: Tue, 28 Apr 2020 14:44:42 GMT
            Via: 1.1 varnish
            Age: 2820
            X-Served-By: cache-ams21077-AMS
            X-Cache: HIT
            X-Cache-Hits: 1
            X-Timer: S1588085083.756804,VS0,VE0
            Strict-Transport-Security: max-age=300 
            Show
            harmv Harm V added a comment - - edited This seems to have happened again. -> Reopen.  I get this on Ubuntu 16.04 E: Failed to fetch https: //pkg.jenkins.io/debian-stable/binary/jenkins_2.222.3_all.deb  Protocol "http" not supported or disabled in libcurl  This is because the jenkins urls (incorrectly!) redirects to http (instead of downloading over https) $ curl -I https: //pkg.jenkins.io/debian-stable/binary/jenkins_2.222.3_all.deb HTTP/1.1 302 Found Connection: keep-alive Content-Length: 247 Server: Apache/2.4.29 (Ubuntu) Location: http: //mirrors.jenkins.io/debian-stable/jenkins_2.222.3_all.deb Content-Type: text/html; charset=iso-8859-1 Accept-Ranges: bytes Date: Tue, 28 Apr 2020 14:44:42 GMT Via: 1.1 varnish Age: 2820 X-Served-By: cache-ams21077-AMS X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1588085083.756804,VS0,VE0 Strict-Transport-Security: max-age=300
            Hide
            olblak Olivier Vernin added a comment -

            This is fixed for now we temporarily reverted a change we recently did until we work on a better solution for pkg.jenkins.io

            Show
            olblak Olivier Vernin added a comment - This is fixed for now we temporarily reverted a change we recently did until we work on a better solution for pkg.jenkins.io

              People

              Assignee:
              olblak Olivier Vernin
              Reporter:
              dageissl Daniel Geißler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: