[Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

Solved!
Reply

[Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

ramedeiros
Regular

Hi, I have installed ubuntu-restricted-extras, ffmpeg, libavcodec, livavutil, libavformat, zenity but doesn't work.

 

:/

 

  1. Your device and operating system: Intel® Core™ i3 CPU M 330 @ 2.13GHz × 4, 4GB, 64bit, Ubuntu 16.04 LTS
  2. Type of Spotify account you have (Free/ Premium): Free
  3. The app version of Spotify you’re using: 1.0.28.89.gf959d4ce
  4. Brief description of the issue: Local files do not play on Ubuntu 16.04

Spotify finds the songs, but don't play and close the app. 

 

 

=======================================================

Solved after read this post: https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Can-t-play-local-files-with-current-...

 

So, I decided publish the solution.

 

1º) Install some packs: ubuntu-restricted-extras, ffmpeg, libavcodec, livavutil, libavformat, zenity.

 

sudo apt install ubuntu-restricted-extras ffmpeg libavcodec-extra libavcodec-extra57 libavutil55 libavformat57 zenity -y

New version to packs: libavformat57 libavcodec-extra57 libavcodec-extra libavutil55 

 

 

2º) Download some archives: (I put all in the github repository)

 

--> Download the package: https://github.com/ramedeiros/spotify_libraries/archive/master.zip

 

Or direct from the terminal: 

 

git clone https://github.com/ramedeiros/spotify_libraries.git

3º) Put all the files in to /usr/lib/x86_64-linux-gnu/ with root privileges.

 

cd spotify_libraries
sudo cp lib* /usr/lib/x86_64-linux-gnu/

4º) Execute: ldconfig

 

sudo ldconfig

5º) If show any problem with link, make new links.

 

e.g.: "/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libavutil.so.52 it's not a symbolic link"

So, execute command:

 

sudo ln -frs /usr/lib/x86_64-linux-gnu/libavutil.so.52.6.100 /usr/lib/x86_64-linux-gnu/libavutil.so.52
sudo ln -frs /usr/lib/x86_64-linux-gnu/libavformat.so.54.36.100 /usr/lib/x86_64-linux-gnu/libavformat.so.54
sudo ln -frs /usr/lib/x86_64-linux-gnu/libavcodec.so.54.71.100 /usr/lib/x86_64-linux-gnu/libavcodec.so.54

 

And so on...

1 ACCEPTED SOLUTION

Accepted Solutions
Solution!

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

olejon
Roadie

Easier solution. It works on Ubuntu 16.10 and 17.04 as well. Make sure you copy the entire lines: https://github.com/olejon/spotcommander/wiki/LocalFiles


And COME ON Spotify, 16.04 is almost a year old!

 

SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!
36 Replies
Highlighted

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

durin
Roadie

Can you install libavcodec53 from Ubuntu precise (12.04LTS) http://packages.ubuntu.com/precise/libavcodec53 to Ubuntu 16.04 LTS? That should replace the step 2º).

 

Spotify should be build using the latest stable and not the LTS. That should at least fix this local file playback and libssl problem.

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

shez951
Newbie

THANK YOU\! u helped me fix the local files issue that i was searching for on and off ever since i have been spotify on linux

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

ramedeiros
Regular

@durin wrote:

Can you install libavcodec53 from Ubuntu precise (12.04LTS) http://packages.ubuntu.com/precise/libavcodec53 to Ubuntu 16.04 LTS? That should replace the step 2º).

 

Spotify should be build using the latest stable and not the LTS. That should at least fix this local file playback and libssl problem.


 

Maybe yes, as one of the places I'd researched (https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Can-t-play-local-files-with-current-...).

However, after a long time and many attemps, it worked for me. So, I decided upload the package to help the community. :D

But thanks for your tip, have you tested? I find very useful!! :D

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

ramedeiros
Regular

@shez951 wrote:

THANK YOU\! u helped me fix the local files issue that i was searching for on and off ever since i have been spotify on linux



Hehehehe me too had the same problem, after 17862783612783 attempts its worked!! You're first after me that tested, is a good notice!

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

Spotify
Spotify

You can install libavcodec54 and libavformat54 from 14.04 trusty in 16.04 xenial as well, but it also feels hacky.

 

echo deb http://se.archive.ubuntu.com/ubuntu trusty main universe | sudo tee /etc/apt/sources.list.d/temp-trusty.list
echo deb http://security.ubuntu.com/ubuntu trusty-security main universe | sudo tee -a /etc/apt/sources.list.d/temp-trusty.list
sudo apt update
sudo apt install libavcodec54 libavformat54
sudo rm /etc/apt/sources.list.d/temp-trusty.list
sudo apt update

A better solution would be if the client just supported all different versions or shipped an embedded library.

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

Draqun
Newbie
God Thank you. This help a lot.

Best regards.

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

LinuxScouser
Casual Listener

You're a hero dude. Nice one. This worked for me.

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

tatobecerra_92
Newbie

Dude, I love you. I've been struggling with this problem for so long, and now you fixed it. Thanks!

Re: [Linux] Local files do not play on Ubuntu 16.04 [SOLVED]

xtevemeash
Newbie

...and thank you for taking the time to post the solution and package the needed files.

SUGGESTED POSTS