Announcements

Help Wizard

Step 1

NEXT STEP

New version from Debian repo requires GLIBC_2.38

New version from Debian repo requires GLIBC_2.38

After updating spotify-client to the latest version 1.2.77.358.g4339a634 from https://repository.spotify.com stable/non-free application won't launch:

./spotify: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by ./spotify)

 

This is a problem, because a lot of Linux systems use GLIBC 2.36 (Debian stable, Ubuntu LTS, POP_OS! LTS) and do not have this version.

The only option for many Linux users for now is to stay on the older version (or use flatpack)

Regards!

CJ

Reply
47 Replies

Same issue for me on Linux Mint 21, which comes with glibc 2.35.

Can you please either push an update built against an older glibc, or make the previous build available again? I don't see a reason why you guys absolutely need to *build* the Linux client on the very latest release of Ubuntu/whatever.

On ubuntu 22.04.5 this solved the GLIBC issue:
wget https://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.2.74.477.g3be53afe_am...
sudo dpkg -i spotify-client_1.2.74.477.g3be53afe_amd64.deb

I found the solution currently is to remove the version that just got updated to, downgrade by reinstalling the previous version, and then put a hold of that version for the time being.

It seems they've removed the old deb file that everyone's linking, any idea if it has been mirrored anywhere?

I have uploaded it to the wayback machine here:

https://archive.org/details/spotify-client_1.2.74.477.g3be53afe_amd64

I found a mirror here.

 

https://mirror.math.princeton.edu/pub/redcorelinux/amd64/distfiles/spotify-client_1.2.74.477.g3be53a... 

 

 

I had to adjust /etc/apt/sources.list.d/spotify.list to make the repo use https instead of http

 

 

I then held the spotify-client from updating future releases by running:

 

sudo apt-mark hold spotify-client

So from what I saw, you should have a cached copy of the previous version
in your /var/cache/apt/archives/ folder. To find if and what version, you
can try this > "ls /var/cache/apt/archives/ | grep spotify"

First thing I did was to remove the version that is installed, then used
dpkg to install the specific version I wanted (the older one in the cache
folder). My example looks like this > "sudo dpkg -i
/var/cache/apt/archives/spotify-client_1%3a1.2.74.477.g3be53afe_amd64.deb"
Finally, I put a hold on the package version > sudo apt-mark hold
spotify-client

Tip: Spotify doesn't open

Everyone here probably knows this already, but you can open Spotify from the command line to see any messages it logs to the console:

> spotify

The binary name is `spotify` and the package name is `spotify-client`

Fix: GLIB not found

./spotify: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by ./spotify)

 

The latest version of Spotify (1:1.2.77.358.g4339a634) requires a later version of GLIBC than is available in many distros.


Downgrade by installing a cached version of the spotify-client package. There's many solutions in the replies here but _Mata's answer worked for me:


@_Mata wrote:

Solved it on my Linux Mint 21.3 this way:

$ apt-cache madison spotify-client

spotify-client | 1:1.2.77.358.g4339a634 | https://repository.spotify.com stable/non-free amd64 Packages
spotify-client | 1:1.2.63.394.g126b0d89 | https://ftp.sh.cvut.cz/mint virginia/import amd64 Packages

 

I used the older version of the package 1:1.2.63.394.g126b0d89

 

$ apt install spotify-client=1:1.2.63.394.g126b0d89

 

I hope it works for others as well. Cheers. M.


 

Fix: Core Dump

If anyone is getting the following error after downgrading:

[1]    12701 trace trap (core dumped)  spotify

try deleting or renaming the following directories:

  • /usr/share/spotify/
  • ~/.config/spotify/
  • ~/.cache/spotify/

so that you're not using config/cache from the new version. Note that this will remove all your settings, etc. You probably don't need to delete all of these but idk which one was the issue in my case so you'll have to try yourself.

 

Tip: Blocking package upgrades

Once downgrading, you probably want to prevent Spotify from upgrading to the latest version again. Using apt, you can do this with:

sudo apt-mark hold spotify-client

In Linux Mint, you can also do this by going to Preferences > Packages in the Update Manager.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random