# Error installing rebar3

**URL:** <https://forum.elixirforum.com/t/error-installing-rebar3/56160>\
**Category:** Questions\
**Tags:** deployment, github-actions\
**Created:** [May 29, 2023, 12:35pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160 "2023-05-29T12:35:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrus-jvrensburg](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petrus-jvrensburg/32/30959_2.png) [@petrus-jvrensburg](https://forum.elixirforum.com/u/petrus-jvrensburg)\
**Post date:** [May 29, 2023, 12:35pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/1 "2023-05-29T12:35:03Z")

</div>

I’m using the [GitHub - erlef/setup-beam: Set up your BEAM-based GitHub Actions workflow (Erlang, Elixir, Gleam, ...) · GitHub](https://github.com/erlef/setup-beam) github action for Continuous Integration. I ran into this error for the first time today:

```elixir
Run erlef/setup-beam@v1
Parsing version file at .tool-versions
Installing Erlang/OTP OTP-25.3 - built on ubuntu-22.04
Using Elixir v1.14.4 (built for Erlang/OTP 25)
Installing Elixir v1.14.4-otp-25
Running mix local.rebar,--force
  /home/runner/work/_temp/.setup-beam/elixir/bin/mix local.rebar --force
  ** (Mix) Data does not match the given SHA-512 checksum.
  
  Expected: 7a5907453f8f756a004e56af7ec7e835394eb4afbeeaa906d4eac2791f2b0d44b193c317c003f04545354fbe5f79e7b24fe3c3055c16b9ec5bc5a4c4b4340f08
    Actual: dc559ace623406453c424debbcccb3eca3d40403920f6be0e240f5ec7e8f2836886fd3a3d6355e06d924781143f1275c35067e8ad7d1fe0995e35e74dedc6f17

```

Any idea what might be causing it?

---

<div class="post-metadata">

**Author:** ![petrus-jvrensburg](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petrus-jvrensburg/32/30959_2.png) [@petrus-jvrensburg](https://forum.elixirforum.com/u/petrus-jvrensburg)\
**Post date:** [May 29, 2023, 12:37pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/2 "2023-05-29T12:37:47Z")

</div>

Aah… bumping the Elixir version in my `.tool-versions` file fixed it for me. This is what my .tool-versions currently looks like:

```elixir
elixir 1.14.5-otp-25
erlang 25.3

```

---

<div class="post-metadata">

**Author:** ![perzanko](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/perzanko/32/20088_2.png) [@perzanko](https://forum.elixirforum.com/u/perzanko)\
**Post date:** [May 29, 2023, 12:39pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/3 "2023-05-29T12:39:07Z")

</div>

I’m seeing the same error locally

```elixir
mix do local.hex --force, local.rebar --force
* creating /Users/perzanko/.asdf/installs/elixir/1.14.2-otp-25/.mix/archives/hex-2.0.6
** (Mix) Data does not match the given SHA-512 checksum.

Expected: 7a5907453f8f756a004e56af7ec7e835394eb4afbeeaa906d4eac2791f2b0d44b193c317c003f04545354fbe5f79e7b24fe3c3055c16b9ec5bc5a4c4b4340f08
  Actual: dc559ace623406453c424debbcccb3eca3d40403920f6be0e240f5ec7e8f2836886fd3a3d6355e06d924781143f1275c35067e8ad7d1fe0995e35e74dedc6f17

Could not fetch rebar3 at:

    https://repo.hex.pm/installs/1.13.0/rebar3-3.15.2

Please download the file above manually to your current directory and run:

    mix local.rebar rebar3 ./rebar3

```

---

<div class="post-metadata">

**Author:** ![perzanko](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/perzanko/32/20088_2.png) [@perzanko](https://forum.elixirforum.com/u/perzanko)\
**Post date:** [May 29, 2023, 12:40pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/4 "2023-05-29T12:40:09Z")

</div>

Related?

> **[Hex Status](https://status.hex.pm/)**
>
> Welcome to Hex's home for real-time and historical data on system performance.

 ![image (4)](https://forum.elixirforum.com/uploads/default/original/3X/e/2/e2f5a0930c6f6f3a84d33e58e5f9c81beaec447f.png)

---

<div class="post-metadata">

**Author:** ![kevinlang](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/k/d9b06d/32.png) [@kevinlang](https://forum.elixirforum.com/u/kevinlang)\
**Post date:** [May 29, 2023, 12:53pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/5 "2023-05-29T12:53:59Z")

</div>

Same issue. I bumped my Elixir version from `elixir 1.14.4-otp-25` to `elixir 1.14.5-otp-25` but that did not fix it.

---

<div class="post-metadata">

**Author:** ![alexdesousa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/alexdesousa/32/1477_2.png) [@alexdesousa](https://forum.elixirforum.com/u/alexdesousa)\
**Post date:** [May 29, 2023, 1:06pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/6 "2023-05-29T13:06:45Z")

</div>

I’m experiencing the same issue in several projects at the moment. I’ve tried:

- `1.14.2-otp-25`
- `1.14.3-otp-25`
- `1.14.4-otp-25`
- `1.14.5-otp-25`
- `1.14.5-otp-26`

Where the Erlang versions were: `25.3`, `25.3.1`, `25.3.2`, and `26.0`.

---

<div class="post-metadata">

**Author:** ![kevinlang](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/k/d9b06d/32.png) [@kevinlang](https://forum.elixirforum.com/u/kevinlang)\
**Post date:** [May 29, 2023, 1:07pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/7 "2023-05-29T13:07:28Z")

</div>

Here’s the tracking issue. Looks like they are looking into it. 👍

[https://github.com/elixir-lang/elixir/issues/12615](https://github.com/elixir-lang/elixir/issues/12615)

---

<div class="post-metadata">

**Author:** ![vish198910](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/vish198910/32/25600_2.png) [@vish198910](https://forum.elixirforum.com/u/vish198910)\
**Post date:** [May 29, 2023, 1:19pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/8 "2023-05-29T13:19:20Z")

</div>

> [@petrus-jvrensburg](#):
>
> ```elixir
> elixir 1.14.5-otp-25
> erlang 25.3
> 
> ```

Similar issue for me too

mix local.rebar --force is giving this issue too

\*\* (Mix) Could not install Rebar because Mix could not verify authenticity of metadata file at “[https://repo.hex.pm/installs/rebar3-1.x.csv](https://repo.hex.pm/installs/rebar3-1.x.csv)”. This may happen because a proxy or some entity is interfering with the download or because you don’t have a public key to verify the download.

You may try again later or check if a new public key has been released in our public keys page: [Public keys - Elixir](https://repo.hex.pm/installs/public_keys.html)

---

<div class="post-metadata">

**Author:** ![alexdesousa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/alexdesousa/32/1477_2.png) [@alexdesousa](https://forum.elixirforum.com/u/alexdesousa)\
**Post date:** [May 29, 2023, 1:55pm UTC](https://forum.elixirforum.com/t/error-installing-rebar3/56160/12 "2023-05-29T13:55:14Z")

</div>

It’s working for me now.
