我正在按照以下步骤操作此链接安装即可。
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
,我收到以下错误:
$ 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
:
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