2016-01-21 28 views
1

已经在Debian 8.2中通过vagrant运行stack/ghc一段时间。今天早上:haskell-stack获取TlsExceptionHostPort错误

$ 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也会出现同样的错误。我搞砸了吗?

+1

这可能会帮助你:http://stackoverflow.com/q/32654493/1651941 如果没有帮助,你可能想重新打开这个问题:https://github.com/commercialhaskell/stack/issues/1668 – Sibi

回答

1

您可能想要尝试运行stack -v setup以查看哪些文件正在下载。希望不会有太多的人 - - 然后确定哪些文件(S)也不能因为这个TlsExceptionHostPort下载并运行:

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

一旦阻塞文件(S)已被下载,再运行stack setup

这可能不是一个干净的方法,但它为我工作。