首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装go语言时出错

安装go语言时出错
EN

Ask Ubuntu用户
提问于 2015-09-03 22:43:34
回答 1查看 697关注 0票数 1

我正在按照此链接的步骤安装go。

代码语言:javascript
复制
sudo apt-get install python-software-properties  # 12.04
sudo add-apt-repository ppa:duh/golang
sudo apt-get update
sudo apt-get install golang

但是对于add-apt-repository,我得到了以下错误:

代码语言:javascript
复制
$ sudo add-apt-repository ppa:duh/golang
Cannot add PPA: 'ppa:duh/golang'.
Please check that the PPA name or format is correct.

在谷歌搜索后,我发现添加-E工作了:sudo -E add-apt-repository ppa:duh/golang,但是对于apt-get update,我得到了以下错误:

代码语言:javascript
复制
W: GPG error: downloads-distro.mongodb.org dist Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9ECBEC467F0CEB10
W: Failed to fetch <url>/Packages  404  Not Found
W: Failed to fetch <url>//Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

其中url = http://ppa.launchpad.net/duh/golang/ubuntu/dists/trusty/main/binary-i386/Packages

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-09-04 03:21:06

它在一开始就抱怨“无法添加PPA”,因为这个包不能用于可信的14.04,请参阅PPA页面的“已发布包”这里

(对我的12.04来说很好)

在14.04,有一个名为戈朗-去的官方软件包

您可以使用:sudo apt-get install golang-go安装它。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/669004

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档