I want to install sdkman on elementary OS Loki . I try to do everything according to the instructions from the site , I enter into the curl -s "https://get.sdkman.io" | bash console curl -s "https://get.sdkman.io" | bash curl -s "https://get.sdkman.io" | bash and nothing happens. The sdkman developers said that maybe it's because of server locks, but I have vpn and I can ping get.sdkman.io , and also if I enter this address into the browser, then their page opens, from here I concluded that it's not about blocking, what could be the problem then?

UPD: tried to change the query here is the result

 curl -sv "https://get.sdkman.io/" | bash Rebuilt URL to: https://get.sdkman.io/ Trying 159.89.187.78... Connected to get.sdkman.io (159.89.187.78) port 443 (#0) found 148 certificates in /etc/ssl/certs/ca-certificates.crt found 597 certificates in /etc/ssl/certs ALPN, offering http/1.1 gnutls_handshake() failed: Error in the push function. Closing connection 0 

UPD2:

 ls -l $(which bash) -rwxr-xr-x 1 root root 1037528 ноя 27 2017 /bin/bash bash --version GNU bash, версия 4.3.48(1)-release (x86_64-pc-linux-gnu) 

UPD3:

 $ wget 'https://get.sdkman.io' --2018-09-27 16:25:07-- https://get.sdkman.io/ Распознаётся get.sdkman.io (get.sdkman.io)... 159.89.187.78 Подключение к get.sdkman.io (get.sdkman.io)|159.89.187.78|:443... соединение установлено. Не удаётся установить SSL-соединение. 

UPD4: I use VPN, I can go to get.sdkman.io via the browser. enter image description here

  • And please show the result of the commands: ls -l $(which bash) and bash --version . - Axenow
  • I'm afraid I can not help here, try searching the internet for what it is: gnutls_handshake() failed: Error in the push function . - Axenow
  • one
    @nobody, my browser opens the get.sdkman.io page and everything is the same thing that you dropped the link. - Andrey Popov
  • one
    In the browser you can otirt page? get.sdkman.io or get.sdkman.io my script gives me. See IP blocking or other filters. Your local bash / curl has nothing to do with it. - Hellseher
  • one
    openssl recently updated? - 0andriy

2 answers 2

according to information from https://zapret.info/index.php?url=get.sdkman.io :

Sorry, the resource get.sdkman.io (159.89.187.78) is in the list of blocked resources on the territory of the Russian Federation!


if you have ssh access to the server where the get.sdkman.io site (and api.sdkman.io , which is accessed already inside the script that you want to receive and execute) is not blocked , you can use the advice from another my answer: How to proxy http [s] through ssh tunnel? (more precisely, the first item from the answer).

  1. In a separate terminal emulator, start the proxying process:

     $ ssh -D 1122 user@server 
  2. in another terminal emulator, where you are going to start the curl program, declare the HTTPS_PROXY environment HTTPS_PROXY , the value of which is used by the program:

     $ export HTTPS_PROXY=socks5://localhost:1122 

    (the port number is the same as you specified when ssh was started)

  3. now in this terminal emulator command

     $ curl https://get.sdkman.io | ... 

    will work well.


if you, like me, do not trust any left-wing sites and install programs from them exclusively in docker containers, then the container should be run (at least at the stage of running scripts with sdkman.io ), for example, with the option --network=host . The first item is performed on the host machine, the second and third are inside the container.

    Just use

     curl -s "http://get.sdkman.io" | bash 
    • no, this way doesn't work - Andrey Popov
    • Although the link can find the answer to the question, it is better to point out the most important thing here, and give the link as a source. If the page to which the link leads will be changed, the response link may become invalid. - from the queue of checks - Air
    • one
      @Air sometimes the automatic check is wrong :) - KoVadim
    • one
      You would read UPD3 in question. And better delete the answer, it's not about that. - 0andriy