Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未知证书颁发机构的Go程序包安装失败_Go_Mercurial_Debian - Fatal编程技术网

未知证书颁发机构的Go程序包安装失败

未知证书颁发机构的Go程序包安装失败,go,mercurial,debian,Go,Mercurial,Debian,我正在尝试从bitbucket安装Go模块,如下所示: go get bitbucket.org/kardianos/osext 但我收到以下错误: 包bitbucket.org/kardianos/osext:Get:x509:未知授权机构签署的证书 谷歌将我引向位于的说明,随后我编辑了/etc/mercurial/hgrc,其中包含: [web] cacerts = /etc/ssl/certs/ca-certificates.crt 按照我的操作系统(Debian)的指示,但是我仍然收

我正在尝试从bitbucket安装Go模块,如下所示:

go get bitbucket.org/kardianos/osext
但我收到以下错误:

包bitbucket.org/kardianos/osext:Get:x509:未知授权机构签署的证书

谷歌将我引向位于的说明,随后我编辑了
/etc/mercurial/hgrc
,其中包含:

[web]
cacerts = /etc/ssl/certs/ca-certificates.crt
按照我的操作系统(Debian)的指示,但是我仍然收到相同的错误

我还能做什么

看起来我仍然在使用1.0.2(Debian wheezy提供的版本)

考虑到这看起来像一个测试,首先要检查的是升级到1.3+

net/http:在检查证书时,使用tls主机而不是代理

这可以解决证书问题。
提到1.3.2(但针对Debian Jessie,而非喘息)

您可以按照“”了解更多信息。

(在“”之后完成)

您使用的是什么版本的Go?这是以前修复过的:@VonC:Nice。。。看起来我仍然在使用1.0.2(Debian wheezy提供的版本)。我将尝试升级,看看是否可以修复它。