sudo apt-get update is giving GPG error
Tofloor
poster avatar
bions
deepin
2017-11-15 08:13
Author
Edited by bions at 2017-11-15 00:13

Sudo apt-get update is giving error. I´m running 15.4.1. Same error occurs in 15.5. (beta). I already tried different mirrors with same result. Do you know what`s wrong? Thanks!

sudo apt-get update
[sudo] password for ********
Get:1 http://repository.spotify.com stable InRelease [3,302 B]
Hit:2 http://ftp.acc.umu.se/mirror/linuxdeepin/packages panda InRelease
Ign:1 http://repository.spotify.com stable InRelease
Fetched 3,302 B in 0s (4,919 B/s)
Reading package lists... Done
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 EFDC8610341D9410
W: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.



Reply Favorite View the author
All Replies
ginnerpeace
deepin
2017-11-15 08:40
#1
google it.
Reply View the author
Comments
nipos
2017-11-16 06:35
That doesn't help in any way.
bions
deepin
2017-11-15 22:45
#2
ginnerpeace replied at 2017-11-15 00:40
google it.

Thanks for an advice. Tried 5 different solutions BEFORE asking here.
Reply View the author
nipos
deepin
2017-11-16 06:37
#3
Run this command:
sudo gedit /etc/apt/sources.list
Remove the repository.spotify.com line from the file.
Save it and try apt-get again.
The Spotify repository seams to have some bugs,removing it will fix it.
Reply View the author
bions
deepin
2017-11-16 06:52
#4
https://bbs.deepin.org/post/148132
Run this command:
sudo gedit /etc/apt/sources.list
Remove the repository.spotify.com line from the f ...

I do not have repository.spotify.com in /etc/apt/sources.list...

Only this/these:

# Generated by deepin-installer
# deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
# deb-src http://packages.deepin.com/deepin panda main contrib non-free
##########################################################################################
deb [by-hash=force] http://ftp.acc.umu.se/mirror/linuxdeepin/packages/ panda main contrib non-free

I asked my friend and he said that he is having same gbg error in terminal...
Reply View the author
nipos
deepin
2017-11-16 06:57
#5
If it's an repository problem,everyone has it...
In the /etc/apt folder,there should be any other folder which contains additional repositories.
Unfortunately I can't remember its name.
Try to find the Spotify repository file and delete it.
You will need the following command because Deepin Filemanager doesn't have root rights:
sudo rm /etc/apt/FOLDER/SPOTIFY-FILE.list
If the file contains more repository,use the Gedit command from my last post and remove only the spotify line.
Now apt-get should work.
Reply View the author
bions
deepin
2017-11-16 08:07
#6
Thank you nipos! it helped! The correct location was /etc/apt/sources.list.d/spotify.list
Reply View the author
melodyzou
deepin
2017-11-17 01:31
#7
https://bbs.deepin.org/post/148132
Thank you nipos! it helped! The correct location was /etc/apt/sources.list.d/spotify.list

Glad it solved.
Reply View the author
mike235
deepin
2017-11-21 11:11
#8
https://bbs.deepin.org/post/148132
Thank you nipos! it helped! The correct location was /etc/apt/sources.list.d/spotify.list

Thanks !

Here's what I did :

  1. sudo nano /etc/apt/sources.list.d/spotify.list
Copy the Code


Then add a "#" in front of the line :

  1. #deb http://repository.spotify.com stable non-free
Copy the Code


Save and exit. Now the error message won't show up anymore.
Reply View the author