Thursday, May 16, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2591  / 2 Years ago, tue, may 31, 2022, 3:10:19

As the title says, I can't install spotify. I've googled for answers but nothing was relevant to the case. Another problem is that I can't install wine (so I have to install Spotify through Terminal).



I've followed the instructions at spotifys web.



But when I run /etc/apt/sources.list



deb http://repository.spotify.com stable non-free


I got this:



chucknorris@ubuntu:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
chucknorris@ubuntu:~$ deb http://repository.spotify.com stable non-free
No command 'deb' found, did you mean:
Command 'debc' from package 'devscripts' (main)
Command 'derb' from package 'libicu-dev' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'debi' from package 'devscripts' (main)
Command 'xdeb' from package 'xdeb' (universe)
Command 'dwb' from package 'dwb' (universe)
deb: command not found
chucknorris@ubuntu:~$


So what should I do?
PS. I have reinstalled Ubuntu a couple of times because of problems and the first Ubuntu (also 12.10) I was able to install it.


More From » installation

 Answers
7

You need root privileges to modify the /etc/sources.list



Try this:



sudo chmod o+w /etc/apt/sources.list
sudo echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
sudo apt-get update
sudo apt-get install -y spotify-client

[#32646] Wednesday, June 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
beateyra

Total Points: 499
Total Questions: 113
Total Answers: 125

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
beateyra questions
Mon, Jul 11, 22, 17:35, 2 Years ago
Wed, Sep 22, 21, 13:51, 3 Years ago
Tue, Jan 3, 23, 12:05, 1 Year ago
Mon, Sep 26, 22, 09:51, 2 Years ago
;