簡體   English   中英

GVM始終脫機

[英]GVM Always Offline

我正在嘗試通過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 /

**

編輯

使用sdkman

此解決方案太舊無法解決任何問題...請將您的GVM升級到SDKMAN

**

在訪問此地址( http://cast.gvm.io/broadcast/latest “通過cURL”) gvm install ,啟動安裝



➜  ~  curl -v http://cast.gvm.io/broadcast/latest
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3128 (#0)
 GET http://cast.gvm.io/broadcast/latest HTTP/1.1
 User-Agent: curl/7.38.0
 Host: cast.gvm.io
 Accept: */*
 Proxy-Connection: Keep-Alive

 HTTP/1.1 200 OK
 Via: 1.1 10.0.10.78 (McAfee Web Gateway 7.3.2.11.0.17883)
 Date: Tue, 07 Jul 2015 19:41:04 GMT
* Server Apache-Coyote/1.1 is not blacklisted
 Server: Apache-Coyote/1.1
 X-Cache: MISS from 10.0.10.78
 Content-Type: text/plain
 Content-Length: 387
 X-Cf-Requestid: 912e0f56-782d-4df1-5cee-e6a5d4f31386
 Proxy-Connection: Keep-Alive
 X-Application-Context: cast:cloud:0
 Connection: close

==== BROADCAST =================================================================
* 02/07/15: Springboot 1.2.5.RELEASE has been released on GVM. #springboot
* 25/06/15: Gradle 2.5-rc-1 has been released on GVM. #gradle
* 21/06/15: Legacy versions of #groovylang restored on GVM. Thanks @glaforge + @bintray!
* Closing connection 0
================================================================================%


之后,我可以使用gvm命令安裝任何東西。

參考: https//github.com/gvmtool/gvm-cli/issues/314

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM