繁体   English   中英

haskell-stack获取TlsExceptionHostPort错误

[英]haskell-stack getting TlsExceptionHostPort error

通过流浪汉在Debian 8.2中运行stack / ghc了一段时间。 今天早上:

$  stack setup
Run from outside a project, using implicit global project config
Using resolver: lts-4.2 from implicit global project's config file: /home/vagrant/.stack/global-project/stack.yaml
Downloading lts-4.2 build plan ...TlsExceptionHostPort (HandshakeFailed (Error_Protocol ("certificate has expired",True,CertificateExpired))) "raw.githubusercontent.com" 443

$  stack --version
Version 1.0.2, Git revision fa09a980d8bb3df88b2a9193cd9bf84cc6c419b3 (3084 commits) x86_64

即使删除~/.stack仍然存在相同的错误。 我搞砸了吗?

您可能想尝试运行stack -v setup以查看正在下载的文件。 然后确定由于该TlsExceptionHostPort而无法下载哪些文件-希望它们不会太多-然后运行:

curl -0 https://raw.githubusercontent.com/path_to_your_file > your_file

下载阻止文件后,重新运行stack setup

这可能不是一个干净的方法,但是对我有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM