Java – GVM is always offline

I'm trying to install gradle through the GVM command '$GVM I gradle', but I received a message in offline mode

➜  ~
➜  ~
➜  ~  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.

Additional information: agent configured

➜  ~
➜  ~
➜  ~  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

Solution

If you come here six months later:

I need to install my tools, which can be deleted ~ / gvm /

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>