dongxun7301 2014-11-10 13:28
浏览 85
已采纳

Go软件包安装因未知证书颁发机构而失败

I'm attempting to install a Go module from bitbucket as follows:

go get bitbucket.org/kardianos/osext

But I receive the following error:

package bitbucket.org/kardianos/osext: Get https://api.bitbucket.org/1.0/repositories/kardianos/osext: x509: certificate signed by unknown authority

Google lead me to the instructions at this post, which I have followed by editing /etc/mercurial/hgrc to contain:

[web]
cacerts = /etc/ssl/certs/ca-certificates.crt

as instructed for my OS (Debian), however I still receive the same error.

what else can I do?

  • 写回答

1条回答 默认 最新

  • dsdzvprlp51692469 2014-11-10 13:43
    关注

    it looks like I'm still using 1.0.2 (the version provided with Debian wheezy)

    Considering that this looks like a Go 1.0 bug, the first thing to check is to upgrade Go to 1.3+.

    net/http: use tls host instead of proxy, when checking against a certificate

    That could solve the certificate issue.
    Golang Debian packages mentions 1.3.2 (but for Debian Jessie, not wheezy)

    You can follow "How to install Golang 1.1(+) in Debian from repository " for more.
    (Done after "How can I run Debian stable but install some packages from testing?")

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题