gpt4 book ai didi

ubuntu - 通过代理在 Ubuntu 上安装 Heroku Toolbelt

转载 作者:太空宇宙 更新时间:2023-11-03 16:51:07 24 4
gpt4 key购买 nike

我正在尝试在通过代理连接到互联网的 Ubuntu 机器上安装 Heroku Toolbelt。我对 Ubuntu 及其设置还很陌生,但我成功地连接到了互联网。 Internet 似乎工作正常,仅通过 apt-get 浏览和获取更新总是成功的,curl 命令返回预期的结果。

当我尝试在 Heroku Toolbelt 站点上运行命令时:

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

我得到了一些错误:

me@mypc-vb:~/Documents/stuff$ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
This script requires superuser access to install apt packages.
You will be prompted for your password by sudo.
[sudo] password for hsiehbe:
--2012-11-15 15:09:46-- https://toolbelt.heroku.com/apt/release.key
Resolving toolbelt.heroku.com... failed: Name or service not known.
wget: unable to resolve host address `toolbelt.heroku.com'
gpg: no valid OpenPGP data found.
Ign http://us.archive.ubuntu.com oneiric InRelease
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://extras.ubuntu.com oneiric InRelease
...
Fetched 12.9 MB in 32s (394 kB/s)
Reading package lists... Done
W: GPG error: http://toolbelt.heroku.com ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
foreman heroku libreadline5 libruby1.9.1 ruby1.9.1
Suggested packages:
ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
The following NEW packages will be installed:
foreman heroku heroku-toolbelt libreadline5 libruby1.9.1 ruby1.9.1
0 upgraded, 6 newly installed, 0 to remove and 27 not upgraded.
Need to get 4,815 kB of archives.
After this operation, 15.9 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
foreman heroku heroku-toolbelt
E: There are problems and -y was used without --force-yes

最明显的错误可能就是

Resolving toolbelt.heroku.com... failed: Name or service not know.

我错过了什么?

最佳答案

我在代理后面安装 heroku toolbelt 时遇到了同样的问题:

问题的核心是这样的:

GPG error: http://toolbelt.heroku.com ./ Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY C927EBE00F1B0520

您会注意到,下次运行 apt-get update 时,您会收到相同的消息。看来 ubuntu 无法获取 heroku 包存储库的公钥。

要解决这个问题,您可以按照此处所述手动附加公钥: http://en.kioskea.net/faq/809-debian-apt-get-no-pubkey-gpg-error

gpg --keyserver pgpkeys.mit.edu --recv-key  C927EBE00F1B0520 
gpg -a --export C927EBE00F1B0520 | sudo apt-key add -

在此之后安装脚本将正常运行。

关于ubuntu - 通过代理在 Ubuntu 上安装 Heroku Toolbelt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13408092/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com