[RESOLVED] Installing elixir - ubuntu 18.04 - Sources disagree on hashes

Hi,

I’m using ubuntu 18.04 and wanted to install elixir using the erlang-solutions repo.
After doing the following:

  • apt install ./erlang-solutions_2.0_all.deb
  • apt update
  • apt install elixir

I get the following warnings:

W: Sources disagree on hashes for supposely identical version '1:22.1.6-1' of 'erlang-base:amd64'.
W: Sources disagree on hashes for supposely identical version '1:22.1.6-1' of 'erlang-base:amd64'.
W: Sources disagree on hashes for supposely identical version '1:22.1.6-1' of 'erlang-crypto:amd64'.
...
Do you want to continue? [Y/n]

When doing Yes I get the following error for each package:

  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:427e1cc8355eb9b4de298d49241573fbaa73c3a05740f9838d7256ab8c0ad46a
   - SHA1:7fb2075530976f473d00d1b274a07278d5897307 [weak]
   - MD5Sum:8d042325c1a031a6e77a9b174ed73bf6 [weak]
   - Filesize:8044980 [weak]

I guess the erlang-solutions repo is at fault here. Can anyone help me out?

Issue is fixed. I just did

apt update && apt install elixir

Now everything went as expected. Does anyone know why my issue happened?

Hi,
Usually when you add a new repo in ubuntu you need to let the current session know, ussually bash that Ubuntu has a got a new set of information regarding the packages that are available.
So you use:

sudo apt-get update

This should explain a lot more https://help.ubuntu.com/community/Repositories/CommandLine