gpt4 book ai didi

scala - 无法在线安装 sbt(按照官方指南)

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

在 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”:-)

最佳答案

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 文件,或找出其他可用的 key 服务器。

关于scala - 无法在线安装 sbt(按照官方指南),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51624332/

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