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

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
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
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
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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

We're in Beta

About us Mission Statement