Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Spotify install not working due to TLS shenaningans (snap, flatpak, AUR) (Manjaro)

Solved!

Spotify install not working due to TLS shenaningans (snap, flatpak, AUR) (Manjaro)

Operating System

Manjaro

 

My Question or Issue

It seems the download of https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e... isn't working properly r/n (at least on my system). I tried installing spotify via snap, flatpak and the AUR today and all 3 installs failed. As I understand it, all 3 install mathods depend on downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e... .

 

Here's the output of flatpak install spotify:

Looking for matches…
Found similar ref(s) for ‘spotify’ in remote ‘flathub’ (system).
Use this remote? [Y/n]: Y
Found ref ‘app/com.spotify.Client/x86_64/stable’ in remote ‘flathub’ (system).
Use this ref? [Y/n]:

com.spotify.Client permissions:
ipc network pulseaudio x11 dri file access [1] dbus access [2] bus ownership [3]
tags [4]

[1] xdg-music:ro, xdg-pictures:ro
[2] org.freedesktop.Notifications, org.gnome.SessionManager, org.gnome.SettingsDaemon
[3] org.mpris.MediaPlayer2.spotify
[4] proprietary


ID Branch Op Remote Download
1. [✗] com.spotify.Client stable i flathub 28,6 MB / 126,4 MB

Error: While downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...: Connection terminated unexpectedly
error: Failed to install com.spotify.Client: While downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...: Connection terminated unexpectedly

 

 

I also tried wget-ing the file to see if it really is the download. This is the output of that:

 

 

Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving repository-origin.spotify.com (repository-origin.spotify.com)... 35.186.224.30
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114975574 (110M) [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_  19%[=============>                                                               ]  21,29M   665KB/s    in 59s                                                   ]   4,43M   221KB/s    eta 8m 8s   

2019-12-19 00:37:21 (372 KB/s) - Read error at byte 22319290/114975574 (The TLS connection was non-properly terminated.). Retrying.

--2019-12-19 00:37:22--  (try: 2)  https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 114975574 (110M), 92656284 (88M) remaining [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_  34%[++++++++++++++===========>                                                   ]  37,94M  2,16MB/s    in 31s      

2019-12-19 00:37:53 (545 KB/s) - Read error at byte 39778951/114975574 (The TLS connection was non-properly terminated.). Retrying.

--2019-12-19 00:37:55--  (try: 3)  https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 114975574 (110M), 75196623 (72M) remaining [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_  73%[++++++++++++++++++++++++++=============================>                     ]  80,91M  7,86MB/s    in 6,1s     

2019-12-19 00:38:02 (7,08 MB/s) - Read error at byte 84837784/114975574 (The TLS connection was non-properly terminated.). Retrying.

--2019-12-19 00:38:05--  (try: 4)  https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 114975574 (110M), 30137790 (29M) remaining [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_  83%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++=======>             ]  91,94M   269KB/s    in 42s      

2019-12-19 00:38:47 (269 KB/s) - Read error at byte 96403017/114975574 (The TLS connection was non-properly terminated.). Retrying.

--2019-12-19 00:38:51--  (try: 5)  https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 114975574 (110M), 18572557 (18M) remaining [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_  93%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++======>      ] 102,06M  1,41MB/s    in 13s      

2019-12-19 00:39:04 (799 KB/s) - Read error at byte 107022654/114975574 (The TLS connection was non-properly terminated.). Retrying.

--2019-12-19 00:39:09--  (try: 6)  https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...
Connecting to repository-origin.spotify.com (repository-origin.spotify.com)|35.186.224.30|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 114975574 (110M), 7952920 (7,6M) remaining [application/octet-stream]
Saving to: ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’

spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1          100%[+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=========>] 109,65M  1,25MB/s    in 6,1s     

2019-12-19 00:39:15 (1,25 MB/s) - ‘spotify-client_1.1.10.546.ge08ef575-19_amd64.deb.1’ saved [114975574/114975574]

While the download did finish in the end, it was terminated multiple times in the process. My guess is that most install methods don't handle connection dropping that well.

I also wget-ed another big file (Manjaro KDE ISO) to see if my connection is just spotty, but that worked just fine.

So, in conclusion, it seems that (at least for me), the spotify server terminated the TLS connection while I'm trying to download the .deb, which leads to me not being able to install spotify.

Reply

Accepted Solutions
Marked as solution

Flatpak is fixed now.

View solution in original post

15 Replies

same for me

Same for me today.

I have the same issue. I can't install Spotify on my Arch Linux system

same for me on manjaro 😞

Same here 😞

Same here on Ubuntu 19.10

 

Input:

flatpak install flathub com.spotify.Client

 

Output:

Error: While downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...: Connection terminated unexpectedly
error: Failed to install com.spotify.Client: While downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.10.546.ge08e...: Connection terminated unexpectedly

Same here.

If you are on Manjaro or any Arch based you can try this solution (it works for me):
https://forum.manjaro.org/t/having-trouble-updating-spotify/115814

That should work 🙂 It's essentially telling pacman to just not use TLS.

 

I'm not going to accept this as a solution however, because it doesn't work for people who are not on arch trying to install via snap/flatpak, and IMO the folks over at Spotify should really fix the underlying issue of their servers missbehaving.

 

But it's a pretty good and simple workaround, thx 🙂

I agree with you, I hope they fix it because I prefer the flatpack. This is only a temporary solution

I wonder where they got the repository url from. The documented repository host is repository.spotify.com, not repository-origin.spotify.com

Marked as solution

Flatpak is fixed now.

Nice!

Thanks! It works!

Suggested posts