duanheye7909 2017-10-13 10:58
浏览 506

go get gopkg.in:连接被拒绝

I tried to install different packages from gopkg.in but none of them work.

Example:

$ go get -v gopkg.in/gomail.v2

Fetching https://gopkg.in/gomail.v2?go-get=1
Parsing meta tags from https://gopkg.in/gomail.v2?go-get=1 (status code 200)
get "gopkg.in/gomail.v2": found meta tag get.metaImport{Prefix:"gopkg.in/gomail.v2", VCS:"git", RepoRoot:"https://gopkg.in/gomail.v2"} at https://gopkg.in/gomail.v2?go-get=1s
gopkg.in/gomail.v2 (download)
# cd .; git clone https://gopkg.in/gomail.v2 /data/gowork/src/gopkg.in/gomail.v2
Cloning into '/data/gowork/src/gopkg.in/gomail.v2'...
fatal: unable to connect to gopkg.in:
gopkg.in[0: 45.33.37.13]: errno=Connection refused

package gopkg.in/gomail.v2: exit status 128

My git version is 2.13.0 and I enabled git sslCertify with

$ git config --global http.sslVerify true

No firewall or proxy is blocking the connection to the SSL port on gopkg.in:

$ nmap gopkg.in -p 443

Starting Nmap 7.12 ( https://nmap.org ) at 2017-10-13 12:54 CEST
Nmap scan report for gopkg.in (45.33.37.13)
Host is up (0.25s latency).
rDNS record for 45.33.37.13: 13.37.33.45.in-addr.arpa
PORT    STATE SERVICE
443/tcp open  https

Nmap done: 1 IP address (1 host up) scanned in 0.53 seconds

Any clue?

  • 写回答

1条回答 默认 最新

  • v_笑 2021-01-12 11:03
    关注

    解决了吗

    评论

报告相同问题?