我正在尝试通过gvm命令'$ gvm i gradle'安装gradle,但收到脱机模式的消息。
(任何安装都会失败,并显示以下消息)


➜  ~
➜  ~
➜  ~  gvm i gradle
GVM can't reach the internet so going offline. Re-enable online with:

  $ gvm offline disable

==== BROADCAST =============================================

OFFLINE MODE ENABLED! Some functionality is now disabled.

============================================================
This command is not available in offline mode.
➜  ~
➜  ~
➜  ~  gvm offline disable
Online mode re-enabled!
➜  ~
➜  ~
➜  ~  gvm i gradle
GVM can't reach the internet so going offline. Re-enable online with:

  $ gvm offline disable

==== BROADCAST =============================================

OFFLINE MODE ENABLED! Some functionality is now disabled.

============================================================
This command is not available in offline mode.


附加信息:代理已配置。


➜  ~
➜  ~
➜  ~  ping gvmtool.net
PING gvmtool.net (192.30.252.154) 56(84) bytes of data.
64 bytes from pages.github.com (192.30.252.154): icmp_seq=1 ttl=50 time=150 ms
64 bytes from pages.github.com (192.30.252.154): icmp_seq=2 ttl=50 time=151 ms
64 bytes from pages.github.com (192.30.252.154): icmp_seq=3 ttl=50 time=159 ms
64 bytes from pages.github.com (192.30.252.154): icmp_seq=4 ttl=50 time=155 ms
64 bytes from pages.github.com (192.30.252.154): icmp_seq=5 ttl=50 time=151 ms
^C
--- gvmtool.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 150.383/153.800/159.585/3.507 ms


最佳答案

如果半年后您来这里:
gvm不见了,现在是“sdkman!”。

我需要安装我的工具,并且可以删除〜/.gvm/

关于java - GVM始终离线,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31272184/

10-10 07:16