[Haskell] problem installing Stack on Ubuntu Virtual Machine

Michael Snoyman michael at snoyman.com
Sat Dec 3 22:17:30 UTC 2016


Adding the haskell-stack mailing list, that's more focused than
haskell at 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 <nikoshaskell at 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 at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell/attachments/20161204/b146f4cd/attachment.html>


More information about the Haskell mailing list