otrott
November 27, 2022, 11:20am
1
dear community
i want to install Spotify for the very first time on EOS
while wanting to install spotify on EOS i found various threads that discuss the topic.
eg: Installing Spotify for the first time
take a look at the pinned comment at https://aur.archlinux.org/packages/spotify/
-> curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --import - that should solve your issue.
here some extra notes:
https://aur.archlinux.org/packages/spotify
yay -G spotify (download PKGBUILD file)
cd spotify (open spotify install folder)
vim PKGBUILD (edit the PKGBUILD file with previous changes if not downloaded)
makepkg -si (make package and install spotify)
cd .. (back to the previous folder)
rm -fr spotify (remove spotify install folder because you do not need it anymore)
what do you recommend?
yay -G spotify
or
→ curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --import -
which way to go - what is recommended ?
yay spotify should do it. The curl command is to import the gpg key but that message is from 2020 so I would just use yay to install spotify.
3 Likes
otrott
November 27, 2022, 11:53am
3
hello dear Chomsky
many thanks for the quick reply - awesome - and great. i thoght that the old threads discuss older approaches - so i am going to use this command##
otrott:
yay -G spotify
1 Like
The -G flag downloads the pkg build file and is a more manual way of doing things but my noob brain sees no problems with that.
1 Like
otrott
November 27, 2022, 12:00pm
5
hello chomski
makepkg is a script that creates a foreign (i.e. non-repo) package, which can be installed using pacman -U.
Before we can make a package, we need to have both base-devel and git packages installed:
sudo pacman -S base-devel git --needed
On EndeavourOS, these should already be preinstalled.
Depending on the specific package, we may also need other programs, like compilers and build systems. These are called “make dependencies”.
Typically, making a package from the AUR involves the following …
To learn how to use yay
to automate this process:
man yay
TL;DR, usually it is sufficient to just run:
yay package_name
so i can use just yay spotify
weird, i got it installed but i cannot remember for the life of me how it got on my computer lol
otrott
November 27, 2022, 1:38pm
7
tried it with yay - S spotifiy
but i guess i use yay spotfy next time
:: Prüfe auf mögliche Konflikte...
:: Prüfe auf mögliche interne Konflikte...
[Repo Make:1] libcurl-gnutls-7.86.0-4
[Aur:1] spotify-1:1.1.84.716-2
:: Abhängigkeiten nach der Installation entfernen? [J/N] j
:: (1/1) PKGBUILD heruntergeladen: spotify
1 spotify (Build-Dateien sind vorhanden)
==> Diffs zeigen?
==> [N] Keine [A]lle [Ab]brechen [I]nstalliert [No]nicht installiert oder (1 2 3, 1-3, ^4)
==>
:: (1/1) SRCINFO geparst: spotify
:: PGP-SchlĂĽssel mĂĽssen importiert werden:
-> F9A211976ED662F00E59361E5E3C45D7B312C643, benötigt von: spotify
:: Importieren? [J/n] j
:: Importiere SchlĂĽssel mit gpg...
gpg: SchlĂĽssel 5E3C45D7B312C643: Ă–ffentlicher SchlĂĽssel "Spotify Public Repository Signing Key <tux@spotify.com>" importiert
gpg: Anzahl insgesamt bearbeiteter SchlĂĽssel: 1
gpg: importiert: 1
[sudo] Passwort fĂĽr heike:
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …
Paket (1) Neue Version Netto-Veränderung Größe des Downloads
core/libcurl-gnutls 7.86.0-4 0,64 MiB 0,27 MiB
Gesamtgröße des Downloads: 0,27 MiB
Gesamtgröße der installierten Pakete: 0,64 MiB
:: Installation fortsetzen? [J/n] j
:: Pakete werden empfangen …
libcurl-gnutls-7.86.0-4-x86_64 276,4 KiB 512 KiB/s 00:01 [---------------------------------------------------------------------------------------] 100%
(1/1) SchlĂĽssel im SchlĂĽsselbund werden geprĂĽft [---------------------------------------------------------------------------------------] 100%
(1/1) Paket-Integrität wird überprüft [---------------------------------------------------------------------------------------] 100%
(1/1) Paket-Dateien werden geladen [---------------------------------------------------------------------------------------] 100%
(1/1) Auf Dateikonflikte wird geprĂĽft [---------------------------------------------------------------------------------------] 100%
:: Paketänderungen werden verarbeitet …
(1/1) Installiert wird libcurl-gnutls [---------------------------------------------------------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet …
(1/1) Arming ConditionNeedsUpdate...
==> Erstelle Paket: spotify 1:1.1.84.716-2 (So 27 Nov 2022 14:37:44 CET)
==> Empfange Quellen...
-> spotify.protocol gefunden
-> LICENSE gefunden
-> Lade spotify-1.1.84.716-x86_64.deb herunter...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 162 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
==> FEHLER: Fehler beim Download von http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.84.716.gc5f8b819_amd64.deb
Breche ab...
-> Fehler beim Herunterladen der Quellen: spotify
context: exit status 1
-> libcurl-gnutls nicht erfĂĽllt, die Installations-Liste wird geleert
==> Erstelle Paket: spotify 1:1.1.84.716-2 (So 27 Nov 2022 14:37:45 CET)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
-> spotify.protocol gefunden
-> LICENSE gefunden
-> Lade spotify-1.1.84.716-x86_64.deb herunter...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 162 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
==> FEHLER: Fehler beim Download von http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.84.716.gc5f8b819_amd64.deb
Breche ab...
Abhängigkeiten werden geprüft …
Paket (1) Alte Version Netto-Veränderung
libcurl-gnutls 7.86.0-4 -0,64 MiB
Gesamtgröße der entfernten Pakete: 0,64 MiB
:: Möchten Sie diese Pakete entfernen? [J/n]
:: Paketänderungen werden verarbeitet …
(1/1) Entfernung läuft libcurl-gnutls [---------------------------------------------------------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet …
(1/1) Arming ConditionNeedsUpdate...
-> Fehler beim Erstellen: spotify
[heike@tp14 ~]$
i guess i use yay spotfy next time
Looks like the the pkgbuild file is outdated and you will have to edit it with the -G flag like you said in your OP. Follow the instructions as mentioned in the comments of this AUR package:
Joan31 commented on 2022-11-19 01:51 (UTC) (edited on 2022-11-20 21:45 (UTC) by Joan31 )
Hi,
I found the issue, and it is because Spotify release a new .deb with a different commit number and a different checksum.
So you have just to edit the PKGBUILD or download here https://www.swisstransfer.com/d/ec410e80-9ba3-4e6a-a7d3-543bad428948
Change commit number, line 9
before edit :
_commit=gc5f8b819`
after edit :
_commit=gc5f8b819-2`
And change the third shasum512, line 36
before
3cc25f28ae791ac26607117a5df668f803ed8e58f0ace085010a6242fdde97766bdc1c752560850795c9b4324f3e019937fe9af2788a1946ebb70ee781f50d99`
after
9ba6c2d155f683b9a38222d58a2a53a2a5f4b422ed1c0d603af87919ba8a68309aea3354278fd1d5d8142a1568d93b7e83b14c041e749b0c39f3bc155a633ef8`
Example with yay :
yay -G spotify (download PKGBUILD file)
cd spotify (open spotify install folder)
vim PKGBUILD (edit the PKGBUILD file with previous changes if not downloaded)
makepkg -si (make package and install spotify)
cd .. (back to the previous folder)
rm -fr spotify (remove spotify install folder because you do not need it anymore)
1 Like