Can't get GPG Key for teamviewer repo [duplicate]
I installed teamviewer with the .deb file from the website and it seems, as if it automatically added a ppa. Unfortunately it didn't add the GPG Key so its always throwing an error at me:
root@Kubuntu-Aerobook:~# apt update
OK:1 groovy InRelease
OK:2 groovy InRelease
OK:3 groovy InRelease
Holen:4 groovy-security InRelease [96,2 kB]
Holen:5 stable InRelease [11,0 kB]
OK:6 groovy InRelease
OK:7 groovy-updates InRelease
OK:8 groovy-backports InRelease
Fehl:5 stable InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY C5E224500C1289C0
Paketlisten werden gelesen... Fertig
W: GPG-Fehler: stable InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY C5E224500C1289C0
E: Das Depot » stable InRelease« ist nicht signiert.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).I tried this comand (thats why im root and didn't used sudo):
wget -O - | apt-key add -and also:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keysbut nothing worked. I tried different versions of the .deb file and also tried to set it to developer repo, but always the same problem.
hope you can help :-)
31 Answer
To get the latest GPG key for TeamViewer's repo, their .asc key file needs to be converted before passing it to apt-key.
curl -L | gpg --dearmor | sudo apt-key add -