Updated fix for current Debian testing aka Stretch can be found here.
Spotify needs older versions of libavcodec, libavformat and libavutil to play local files. I found this fix for Ubuntu and I checked the steps that are needed for Debian. Those older files in this blog are extracted by compiling a minimal FFmpeg 0.10.12 from source. This way, we don't have to install an entire FFmpeg + libx264 built for an older version of the library that potentially can disrupt other applications.
To get local files playing, simply follow the steps and run the commands below in a terminal.
- Select your version of Debian, 32 or 64 bit. If you don't know run this command: uname -r
- Launch each command row by row (do not copy paste the whole thing and try to run in terminal)
- NOTE: This does not overwrite any files on Debian
- Don't forget the ldconfig -command
(ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.)
32-bit
sudo wget https://dl.dropboxusercontent.com/u/8593574/spotify/ffmpeg/32-bit/libavcodec.so.53 -O /usr/lib/i386-linux-gnu/libavcodec.so.53
sudo wget https://dl.dropboxusercontent.com/u/8593574/spotify/ffmpeg/32-bit/libavformat.so.53 -O /usr/lib/i386-linux-gnu/libavformat.so.53
sudo wget https://dl.dropboxusercontent.com/u/8593574/spotify/ffmpeg/32-bit/libavutil.so.51 -O /usr/lib/i386-linux-gnu/libavutil.so.51
sudo ldconfig
64-bit
sudo wget https://dl.dropboxusercontent.com/u/8593574/Spotify/ffmpeg/libavcodec.so.53 -O /usr/lib/x86_64-linux-gnu/libavcodec.so.53
sudo wget https://dl.dropboxusercontent.com/u/8593574/Spotify/ffmpeg/libavformat.so.53 -O /usr/lib/x86_64-linux-gnu/libavformat.so.53
sudo wget https://dl.dropboxusercontent.com/u/8593574/Spotify/ffmpeg/libavutil.so.51 -O /usr/lib/x86_64-linux-gnu/libavutil.so.51
sudo ldconfig
That's all! Following repository can be used to install Spotify on Debian.
Debian
# 1. Add this line to your list of repositories by # editing your /etc/apt/sources.list deb http://repository.spotify.com stable non-free # 2. If you want to verify the downloaded packages, # you will need to add our public key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59 # 3. Run apt-get update sudo apt-get update # 4. Install spotify! sudo apt-get install spotify-client
thanks for tips about local files in Debian, now it's working !!
ReplyDeleteI'd rather use the LD_LIBRARY_PATH for what we expect to be a "temporary patch"
ReplyDelete(thus not poisoning the system directories)
thanks you'r the best.. yes it's working!!
ReplyDelete