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 apt hangs on startup in Ubuntu 18.04

Solved!

Spotify apt hangs on startup in Ubuntu 18.04

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update
sudo apt-get install spotify-client

spotify

Gtk-Message: 15:55:24.185: Failed to load module "overlay-scrollbar"
[0419/155524.255252:ERROR:nss_util.cc(724)] After loading Root Certs, loaded==false: NSS error code: -8018
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  set_option: Cannot assign requested address
Aborted (core dumped)

 

 

Reply

Accepted Solutions
Marked as solution

I have created a basic workaround for this issue which involves wrapping the failing system call and ignoring the results of the call to make spotify happy:

 

Installation instructions are at the top of the GIST

 

https://gist.github.com/mdierolf/7751f9c4535a6d402438e219617cf4c3

View solution in original post

Marked as solution

I can confirm that the bug is fixed in Spotify 1.0.79 distributed in Debian testing running on Ubuntu 18.04.

 

I hope to see Spotify 1.0.79 in Debian stable soon.

 

View solution in original post

8 Replies

I get the same error message after I updated the spotify app via apt.  I'm using Ubuntu 17.10 and

Spotify version 1.0.77.338.g758ebd78, Copyright (c) 2018, Spotify Ltd

I get similar error on Ubuntu 16.04

 

spotify
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): set_option: Cannot assign requested address

Some NixOS users discovered the same issues and found out that spotify does not crash when you start it without a network connection or with two network connections: https://github.com/NixOS/nixpkgs/issues/39208

 

But if you have exactly one network connection spotify crashes with this

set_option: Cannot assign requested address

message.

Marked as solution

I have created a basic workaround for this issue which involves wrapping the failing system call and ignoring the results of the call to make spotify happy:

 

Installation instructions are at the top of the GIST

 

https://gist.github.com/mdierolf/7751f9c4535a6d402438e219617cf4c3

 @mdierolf

You saved my day!  Your workaround works perfectly.  Thanks a lot!

Marked as solution

I can confirm that the bug is fixed in Spotify 1.0.79 distributed in Debian testing running on Ubuntu 18.04.

 

I hope to see Spotify 1.0.79 in Debian stable soon.

 

Suggested posts