# Cannot install any elm packages

**URL:** <https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084>\
**Category:** Learn\
**Created:** [February 3, 2019, 6:45am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084 "2019-02-03T06:45:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LesleyLai](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lesleylai/32/3794_2.png) [@LesleyLai](https://discourse.elm-lang.org/u/LesleyLai)\
**Post date:** [February 3, 2019, 6:45am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084/1 "2019-02-03T06:45:51Z")

</div>

Hi all, I just upgraded Elm to 19 on a Ubuntu Linux box and try to start a project through `elm init`, however, I got the following error message:

> The following HTTP request failed:
> 
> ```
> <https://package.elm-lang.org/all-packages>
> 
> ```
> 
> Here is the error message I was able to extract:
> 
> ```
> HttpExceptionRequest Request { host = "package.elm-lang.org" port = 443
> secure = True requestHeaders =
> [("User-Agent","elm/0.19.0"),("Accept-Encoding","gzip")] path =
> "/all-packages" queryString = "" method = "GET" proxy = Nothing rawBody =
> False redirectCount = 10 responseTimeout = ResponseTimeoutDefault
> requestVersion = HTTP/1.1 } (ConnectionFailure Network.Socket.getAddrInfo
> (called with preferred socket type/protocol: AddrInfo {addrFlags =
> [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream,
> addrProtocol = 6, addrAddress = <assumed to be undefined>, addrCanonName =
> <assumed to be undefined>}, host name: Just "package.elm-lang.org", service
> name: Just "443"): does not exist (Try again))
> 
> ```

This error also happens if I try to build existing Elm projects. I tried to uninstall and reinstall Elm from different sources (I installed through npm first time and downloaded the binary for the second time), the problem still preserve.

---

<div class="post-metadata">

**Author:** ![Brian\_Carroll](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/brian_carroll/32/444_2.png) [@Brian\_Carroll](https://discourse.elm-lang.org/u/Brian_Carroll)\
**Post date:** [February 3, 2019, 7:13am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084/2 "2019-02-03T07:13:42Z")

</div>

At the end of the error message it says the URL doesn’t exist. So this looks like a networking issue. Maybe test if you can reach the same URL from the same box using `curl` or `wget` or a browser. Maybe it’s behind a firewall or you need to set `HTTPS_PROXY` in the environment?

---

<div class="post-metadata">

**Author:** ![Libbum](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/libbum/32/1311_2.png) [@Libbum](https://discourse.elm-lang.org/u/Libbum)\
**Post date:** [February 3, 2019, 8:00am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084/3 "2019-02-03T08:00:42Z")

</div>

[https://package.elm-lang.org](https://package.elm-lang.org) is not set up for ipv6 (I just tested). So you need to change the protocol to v4.

---

<div class="post-metadata">

**Author:** ![LesleyLai](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lesleylai/32/3794_2.png) [@LesleyLai](https://discourse.elm-lang.org/u/LesleyLai)\
**Post date:** [February 10, 2019, 4:41am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084/4 "2019-02-10T04:41:56Z")

</div>

Solved:

1. ping [package.elm-lang.org](http://package.elm-lang.org)
2. Adds the ip into **/etc/hosts**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [February 20, 2019, 4:55am UTC](https://discourse.elm-lang.org/t/cannot-install-any-elm-packages/3084/5 "2019-02-20T04:55:45Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
