美文网首页
Ubuntu unable to access 'https:/

Ubuntu unable to access 'https:/

作者: Aegis | 来源:发表于2021-03-12 16:10 被阅读0次

参考链接:完美解决从github上下载东西慢的方法

Ubuntu服务器,运行go命令时,报错

 go get github.com/beego/bee

报错信息如下:

# cd .; git clone -- https://github.com/beego/bee /usr/local/go/bin/src/github.com/beego/bee
Cloning into '/usr/local/go/bin/src/github.com/beego/bee'...
fatal: unable to access 'https://github.com/beego/bee/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
package github.com/beego/bee: exit status 128

解决方法:

输入以下两行命令即可:

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

相关文章

网友评论

      本文标题:Ubuntu unable to access 'https:/

      本文链接:https://www.haomeiwen.com/subject/nwyzqltx.html