markmark206

markmark206

Installing erlang / elixir on ubuntu 20.04 is failing (`esl-erlang_25.0.2-1~ubuntu~focal_amd64.deb`, "file has unexpected size")

(EDIT: the problem seems to be specific to esl-erlang 25.0.2, I was able to install 25.0.1 via aptitude (or via sudo apt-get install esl-erlang=1:25.0-1) just fine.)

I am following the installation instructions on Installing Elixir - The Elixir programming language , for Ubuntu, and the sudo apt-get install esl-erlang step is failing, with the error that says

E: Failed to fetch http://binaries.erlang-solutions.com/debian/pool/esl-erlang_25.0.2-1~ubuntu~focal_amd64.deb  File has unexpected size (40579688 != 40585792). Mirror sync in progress? [IP: 108.138.246.41 80]

I waited a few minutes, in case this were a transient error, but 20+ mins later the problem is still there, so I thought I’d double-check here. ; )

(I am running this on a “general purpose” Digital Ocean droplet in SFO3).

Thank you!


More of the “log”:

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal
# wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
--2022-07-04 21:29:43--  https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 99.84.238.183, 99.84.238.211, 99.84.238.155, ...
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|99.84.238.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6288 (6.1K)
Saving to: ‘erlang-solutions_2.0_all.deb’

erlang-solutions_2.0_al 100%[==============================>]   6.14K  --.-KB/s    in 0s

2022-07-04 21:29:44 (188 MB/s) - ‘erlang-solutions_2.0_all.deb’ saved [6288/6288]
...
# sudo apt-get update && sudo apt-get install -y esl-erlang elixir
...
Get:1 http://binaries.erlang-solutions.com/debian focal/contrib amd64 esl-erlang amd64 1:25.0.2-1 [40.6 MB]
Err:1 http://binaries.erlang-solutions.com/debian focal/contrib amd64 esl-erlang amd64 1:25.0.2-1
  File has unexpected size (40579688 != 40585792). Mirror sync in progress? [IP: 108.138.246.97 80]
  Hashes of expected file:
   - SHA256:8645d44d27d641ba927f4899aabfd1e6317b56efb620495051b899de5d3ca57f
   - SHA1:77df6ed1e992c5714ca968e7637500ee1604e60f [weak]
   - MD5Sum:1c383df15d0fa762c9312daca01c5175 [weak]
   - Filesize:40585792 [weak]
E: Failed to fetch http://binaries.erlang-solutions.com/debian/pool/esl-erlang_25.0.2-1~ubuntu~focal_amd64.deb  File has unexpected size (40579688 != 40585792). Mirror sync in progress? [IP: 108.138.246.97 80]
   Hashes of expected file:
    - SHA256:8645d44d27d641ba927f4899aabfd1e6317b56efb620495051b899de5d3ca57f
    - SHA1:77df6ed1e992c5714ca968e7637500ee1604e60f [weak]
    - MD5Sum:1c383df15d0fa762c9312daca01c5175 [weak]
    - Filesize:40585792 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Most Liked

idflyfish

idflyfish

Hey Mark,

It seems we were running into the same problem on the same day! Thanks for posting what you did to make it work. I’m on the path now.

drobban

drobban

thanks mate…

Had the same issue, so thank you for posting your solution.

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

Other popular topics Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43757 214
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement