Announcements

Help Wizard

Step 1

NEXT STEP

Spotify on Linux cant be updated or installed due to a missing Pubkey on the repository

Solved!

Spotify on Linux cant be updated or installed due to a missing Pubkey on the repository

Same as what the Subject says. Terminal error output :

Err:9 http://repository.spotify.com stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C85668DF69375001

W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C85668DF69375001
E: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Reply

Accepted Solutions
Marked as solution

I recently had the same issue. However, it was a fairly easy fix: You just ran the following line in the terminal to add the GPG key to my system, and it's worked well since. I recommend running the command as sudo to ensure you have admin/root privilege on the system.

 

curl -sS https:// download.spotify.com/debian/pubkey_C85668DF69375001.gpg  | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/spotify-2.gpg

 

Hope this helps get your issue resolved!

View solution in original post

3 Replies
Marked as solution

I recently had the same issue. However, it was a fairly easy fix: You just ran the following line in the terminal to add the GPG key to my system, and it's worked well since. I recommend running the command as sudo to ensure you have admin/root privilege on the system.

 

curl -sS https:// download.spotify.com/debian/pubkey_C85668DF69375001.gpg  | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/spotify-2.gpg

 

Hope this helps get your issue resolved!

This worked for me. The gpg key is outdated in https://www.spotify.com/cl/download/linux/ so would be nice to edit that install copybox

And you should set this key for your repository reference, like here in my ansible task:

 

- name: Install Spotify apt key
become: true
ansible.builtin.shell: "curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | gpg --dearmor --yes -o /etc/apt/keyrings/spotify.gpg"
- name: Add Spotify apt repository
become: true
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/spotify.gpg] http://repository.spotify.com stable non-free"
state: present

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random