Announcements

Help Wizard

Step 1

NEXT STEP

Unable to Install Spotify Flatpak package on Linux

Unable to Install Spotify Flatpak package on Linux

Plan

Free

Country

 

Device

Laptop 32-bit CPU

Operating System

AntiX 19.2 Marielle Franco

 

My Question or Issue

I installed flatpak via apt-get and I added the repo
flatpak remote-add –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

 

After rebooting my laptop, I tried to install the 32-bit Flakpak for the Spotify client without success.

I get the following error.  Looks like there is a problem with the 32-bit Spotify Flatpak file.  Any ideas on how to get it fixed?

 

user@antix1-laptop:~
$ flatpak install flathub com.spotify.Client
Looking for matches…
Required runtime for com.spotify.Client/i386/stable (runtime/org.freedesktop.Platform/i386/18.08) found in remote flathub
Do you want to install it? [Y/n]: Y

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                                            Arch         Branch         Remote         Download
 1. [✓] org.freedesktop.Platform                      i386         18.08          flathub        292.7 MB / 306.7 MB
 2. [✓] org.freedesktop.Platform.Locale               i386         18.08          flathub        161.0 MB / 316.0 MB
 3. [✓] org.freedesktop.Platform.VAAPI.Intel          i386         18.08          flathub          1.9 MB / 1.9 MB
 4. [✓] org.freedesktop.Platform.html5-codecs         i386         18.08          flathub          3.3 MB / 3.4 MB
 5. [✗] com.spotify.Client                            i386         stable         flathub         32.7 MB / 109.0 MB

Error: While downloading https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.72.117.g6bd7cc73-35_i386.deb: 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.0.72.117.g6bd7cc73-35_i386.deb: Connection terminated unexpectedly
user@antix1-laptop:~
 

 

Reply
3 Replies

I forgot to mention that was trying to install the 32-bit version of the Spotify Flatpak on my 32-bit laptop.  I added this info to my original post.

 

Same issue here on 64 bit system. I'm working on a setup script that installs the spotify flatpak, among other things. Was working fine as of Friday, but today I'm getting the same error. Tried installing manually on terminal 3-4 times, same result every time.

 

My script also installs 3 other flatpaks (signal, telegram, discord) which are working without issue, so the problem seems to be isolated to Spotify's repo server.

 

vm@vm:~$ sudo flatpak install -y flathub com.spotify.Client
[sudo] password for vm:
Looking for matches…

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 75.0 MB / 138.2 MB

Error: While downloading http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.42.622.gbd112320-37_amd64.deb: Connection terminated unexpectedly
error: Failed to install com.spotify.Client: While downloading http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.42.622.gbd112320-37_amd64.deb: Connection terminated unexpectedly

Unfortunately the repository-origin issue [1] (now?) propagates to cloudfront. When a cloudfront download (repository.spotify.com) uses a backend that has a cache miss for the deb file, it will try to fetch it from repository-origin.spotify.com which still shows the premature transfer close phenomenon.

In my tests, two things seem to be the case:

- a cloudfront cache is not going to be filled by partial downloads.
- repository-origin will prematurely close if the download is not fast enough.


This means that cloudfront regions close to the repository-origin of their region (repository-origin is googleusercontent and thus probably anycast) are more likely to get their caches filled.

[1] https://community.spotify.com/t5/Desktop-Linux/Spotify-install-not-working-due-to-TLS-shenaningans-s...

Suggested posts