Can't install spotify (failure while downloading error 404)

I was trying to install spotify using yay but i get this error.What should i do?

[hardikbharti@hardikbharti-optiplex790 ~]$ yay -S spotify
:: There are 7 providers available for spotify:
:: Repository AUR
    1) spotify 2) spotify-1.1.42-deb 3) spotify-dev 4) spotify-edge 5) spotify-legacy 6) spotify-snapstore 7) spotify094 

Enter a number (default=1): 
==> 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  spotify-1:1.1.80.699-1

  1 spotify                                  (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): spotify
  1 spotify                                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: spotify
==> Making package: spotify 1:1.1.80.699-1 (Thursday 28 April 2022 08:27:26 AM)
==> Retrieving sources...
  -> Found spotify.protocol
  -> Found LICENSE
  -> Downloading spotify-1.1.80.699-x86_64.deb...
  % 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
==> ERROR: Failure while downloading http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.80.699.gc3dac750_amd64.deb
    Aborting...
 -> error downloading sources: spotify 
	 context: exit status 1 
	 

==> Making package: spotify 1:1.1.80.699-1 (Thursday 28 April 2022 08:27:28 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found spotify.protocol
  -> Found LICENSE
  -> Downloading spotify-1.1.80.699-x86_64.deb...
  % 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
==> ERROR: Failure while downloading http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.80.699.gc3dac750_amd64.deb
    Aborting...
 -> error making: spotify

this is my inxi -Fxza output

System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=b3f615c0-4cab-4422-ad8c-0e27fb2a33d3 rw quiet apparmor=1
    security=apparmor resume=UUID=88a70e27-eb24-4340-86a3-c39a1f454603
    udev.log_priority=3
  Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Desktop System: Dell product: OptiPlex 790 v: 01
    serial: <superuser required> Chassis: type: 15 serial: <superuser required>
  Mobo: Dell model: 0D28YY v: A02 serial: <superuser required> BIOS: Dell
    v: A22 date: 07/03/2018
CPU:
  Info: model: Intel Core i5-2300 bits: 64 type: MCP arch: Sandy Bridge
    family: 6 model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 1673 high: 1818 min/max: 1600/3100 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 1680 2: 1601 3: 1818
    4: 1596 bogomips: 22357
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: Dell driver: i915 v: kernel ports: active: VGA-1
    empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:0102 class-ID: 0300
  Device-2: Jieli USB PHY 2.0 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 2-1.4:4 chip-ID: 1224:2a25 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
    s-diag: 414mm (16.31")
  Monitor-1: VGA-1 model: Dell E1914H serial: <filter> built: 2013
    res: 1366x768 hz: 60 dpi: 85 gamma: 1.2 size: 410x230mm (16.14x9.06")
    diag: 470mm (18.5") ratio: 16:9 modes: max: 1366x768 min: 720x400
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20 class-ID: 0403
  Device-2: Jieli USB PHY 2.0 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 2-1.4:4 chip-ID: 1224:2a25 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Dell driver: e1000e
    v: kernel port: 3080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 465.76 GiB used: 14.92 GiB (3.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3500312CS
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 1.5 Gb/s
    type: HDD rpm: 5900 serial: <filter> rev: SC13 scheme: MBR
Partition:
  ID-1: / raw-size: 457.6 GiB size: 449.35 GiB (98.20%)
    used: 14.27 GiB (3.2%) fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.16 GiB used: 668.7 MiB (8.0%)
    priority: -2 dev: /dev/sda2 maj-min: 8:2
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 207 Uptime: 11h 24m wakeups: 0 Memory: 3.71 GiB
  used: 2.06 GiB (55.5%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1090 lib: 320 flatpak: 0
  Shell: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.15

yea ik this is a potato pc don’t need to remind lol

You have to wait for the AUR maintainer to update the PKGBUILD.
Spotify apparently delete their old files if they update.

so they deleted their old files?

What a strange question - because he just told you that they apparently do …

Here is the address (from the PKGBUILD) with the currently available versions.

Index of /pool/non-free/s/spotify-client/

You could update/adapt the PKGBUILD yourself to use the 1.1.84.716 version which is currently the most recent.
update the pkgver variable and of course the checksum

I have that same problem. it doesn’t load at all. I am getting 404 error. the site does not open. Can you write if you have solved the problem? Or can spotify recommend an alternative?

PKGBUILD needs to be update to resolve the following download error

==> ERROR: Failure while downloading http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.84.716.gc5f8b819_amd64.deb

This error is being encountered due to file change at spotify servers, and aur PKGBUILD is missing that update.

@Joan31 calculated the should be change in the PKGBUILD in his comments, which is modifying two variables as following. To do this without going out of yay flow, use the following commands while installing the package yay -S spotify --editmenu , and modify with the following values:

before edit : _commit=gc5f8b819

after edit : _commit=gc5f8b819-2

And change the third shasum512, line 36, before edit : 3cc25f28ae791ac26607117a5df668f803ed8e58f0ace085010a6242fdde97766bdc1c752560850795c9b4324f3e019937fe9af2788a1946ebb70ee781f50d99

after edit : 9ba6c2d155f683b9a38222d58a2a53a2a5f4b422ed1c0d603af87919ba8a68309aea3354278fd1d5d8142a1568d93b7e83b14c041e749b0c39f3bc155a633ef8