GVM:在Ubuntu 14.04中安装GVM时出现问题

Har*_*ara 2 installation gvm ubuntu-14.04

我是新手,GVM根据其文档,当我运行以下命令安装时GVM,终端上没有输出显示如下:

james@james-K52F:~$ curl -s get.gvmtool.net | bash
james@james-K52F:~$ 
Run Code Online (Sandbox Code Playgroud)

当我运行该命令后CURL,我收到以下错误:

james@james-K52F:~$ gvm
No command 'gvm' found, but there are 20 similar ones
gvm: command not found
Run Code Online (Sandbox Code Playgroud)

当我点击CURL没有-s标志的命令,然后得到以下错误:

james@james-K52F:~$ curl get.gvmtool.net | bash
% Total    % Received % Xferd  Average Speed   Time    Time     Time    Current
                             Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to get.gvmtool.net port 80: Network is unreachable
Run Code Online (Sandbox Code Playgroud)

我怎么能解决这些问题并安装GVM在我的系统上?

更新

使用以下命令解决此问题:

james@james-K52F:~$ sudo curl --ipv4 get.gvmtool.net | bash
Run Code Online (Sandbox Code Playgroud)

但现在的问题是,当我运行上面的命令时,GVM installation进程启动但产生以下错误:

------------------
Create candidate directories...
Prime the config file...
Download script archive...
Extract script archive...
[/home/james/.gvm/tmp/res-2.4.1.zip]
 End-of-central-directory signature not found.  Either this file is not
 a zipfile, or it constitutes one disk of a multi-part archive.  In the
 latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/james/.gvm/tmp/res-2.4.1.zip or
    /home/james/.gvm/tmp/res-2.4.1.zip.zip, and cannot find /home/james/.gvm/tmp/res-2.4.1.zip.ZIP, period.
Install scripts...
mv: cannot stat ‘/home/james/.gvm/tmp/stage/gvm-init.sh’: No such file or directory
mv: cannot stat ‘/home/james/.gvm/tmp/stage/gvm-*’: No such file or directory
Attempt update of bash profiles...
Attempt update of zsh profiles...
All done!

Please open a new terminal, or run the following in the existing one:

source "/home/james/.gvm/bin/gvm-init.sh"

Then issue the following command:

gvm help

Enjoy!!!
Run Code Online (Sandbox Code Playgroud)

之后,当我source "/home/james/.gvm/bin/gvm-init.sh"在新终端上运行时,我收到以下错误:

james@james-K52F:~$ source "/home/james/.gvm/bin/gvm-init.sh"
bash: /home/james/.gvm/bin/gvm-init.sh: No such file or directory
Run Code Online (Sandbox Code Playgroud)

看来,bash文件不是从网上下载的.我认为这是curl命令或其他问题?

Sha*_*nam 6

CURL无法解析gvmtool.net,因为它被重定向到sdkman.io

sdk以前被称为gvm.而不是gvm尝试使用sdk安装Groovy,Grails等.尝试以下命令

$ curl -s "https://get.sdkman.io" | bash

要安装grails,请参阅 - https://grails.org/download.html