【问题标题】:fail to online install sbt (following official guide)无法在线安装 sbt(按照官方指南)
【发布时间】:2019-01-08 11:55:01
【问题描述】:

在 Ubuntu16.04 上,来自这个官方页面: https://www.scala-sbt.org/download.html

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt

我得到了什么:

fino@envy:bin$ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
[sudo] password for fino: 
deb https://dl.bintray.com/sbt/debian /

fino@envy:bin$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
Executing: /tmp/tmp.YqbI7qVhAP/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
2EE0EA64E40A89B84B2DF73499E82A75642AC823
gpg: requesting key 642AC823 from hkp server keyserver.ubuntu.com

?: keyserver.ubuntu.com: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Connection timed out
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found

我尝试直接连接到互联网或“export all_proxy=sock5h://ip:port”,因为我在大陆:-)

【问题讨论】:

  • 不能对deb 的安装说任何话,只需下载.zip,解压它,然后将/sbt/bin 子目录添加到PATH,我从来没有失败过。
  • 谢谢。我可以这样做。但仍然想找到为什么官方网站的指南不适合我的答案;或者不为其他人工作。
  • 您是否在使用公司代理?您可以将其添加到命令行-keyserver-options http-proxy=<myProxy>
  • 我面临同样的问题,我很确定我没有在任何防火墙后面。
  • 哎呀,实际上我有一个相似但不同的问题。

标签: scala ubuntu sbt


【解决方案1】:
gpg: requesting key 642AC823 from hkp server keyserver.ubuntu.com

?: keyserver.ubuntu.com: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Connection timed out
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found

您无法连接到keyserver.ubuntu.com 来验证公钥,所以我认为这不是 sbt 或其分发的问题。 我建议您手动下载 deb 文件,或查找其他可用的密钥服务器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-24
    • 2014-11-30
    • 1970-01-01
    • 2020-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多