我正在按照此链接的步骤安装go。
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
https://askubuntu.com/questions/669004
复制相似问题