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?")

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

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配