Adding the haskell-stack mailing list, that's more focused than
haskell@haskell.org. Just leaving this message on that mailing list in case
someone in the future wonders where this conversation is moving to.
Short answer: try adding the following to ~/.stack/config.yaml:

package-indices:
- name: Hackage
  download-prefix: https://s3.amazonaws.com/hackage.fpcomplete.com/package/
  http: https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz

Longer answer: most likely it wasn't completely stalled, just going _very_
slowly. We've had some reports from users - usually depending on geography
- of slow downloads of the cabal file Git repo. The snippet above will
switch you into an HTTPS download, which may be faster.

On Sat, Dec 3, 2016 at 10:21 PM, Nikos Karagiannidis <nikoshask...@gmail.com
> wrote:

> Hi all,
>
> I am tryning to install Stack on an 64-bit Ubuntu VM (Ubuntu 16.04.1 LTS).
>
> I have followed strictly all the steps that are mentioned in:
>
> https://docs.haskellstack.org/en/stable/install_and_upgrade/#ubuntu
>
> the installation completes OK and I get the following stack version
> installed:
>
> *$ stack --version*
> *Version 1.2.0, Git revision 241cd07d576d9c0c0e712e83d947e3dd64541c42
> (4054 commits) x86_64 hpack-0.14.0*
>
> But, when I run "stack setup"  it tries to update package index and then
> it stucks there forever!
>
> *$ stack setup*
> *Run from outside a project, using implicit global project config*
> *Using resolver: lts-7.11 from implicit global project's config file:
> /home/nikos/.stack/global-project/stack.yaml*
> *Updating package index Hackage (mirrored at
> https://github.com/commercialhaskell/all-cabal-hashes.git
> <https://github.com/commercialhaskell/all-cabal-hashes.git>) ...*
>
> any suggestions?
>
> thank you in advance!
>
> Nikos
>
>
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell
>
>
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell

Reply via email to