4

When I do the command below:

sudo apt-get upgrade

At the bottom I get an error saying

W: GPG error: http://download.opensuse.org  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8873E7BF70F1BBEA

How do I retrieve this key from the opensuse.org server? If I were to look on their website I won't be able to find the key. There are so many nested directories on the website, and I don't know where to look to find it. I don't even know what application or what update it's even for.


Update

I have followed the guides in the comments and it doesn't work. I moved my lists file, and created a new one when using apt-get update. I now have 15 PPA files, and 16 security files. After removing some of the other GPG keys, I now have even MORE errors when updating.

Kaz Wolfe
  • 34,122
  • 21
  • 114
  • 172
john smith
  • 3,033

1 Answers1

10

You have to import the right key with the following commands:

wget http://download.opensuse.org/repositories/home:osmc/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key
sudo apt-get update

Why? That's why:

The output of dpkg -l | awk '/^ii/ {system("apt-cache policy " $2)}' tells us that the repository has one package installed in your system:

osmc-installer:
  Installed: 111
  Candidate: 111
  Version table:
 *** 111 0
        500 http://download.opensuse.org/repositories/home:/osmc/xUbuntu_14.04/  Packages
        100 /var/lib/dpkg/status

And here are the install instructions for OSMC installer and how to import the key.


If you don't need the OSMC installer, remove the package

sudo apt-get remove osmc-installer

find the repository

grep -r 'download.opensuse.org' /etc/apt

and remove the repository

sudo rm /etc/apt/sources.list.d/osmc-installer.list*
cl-netbox
  • 31,163
  • 7
  • 94
  • 131
A.B.
  • 90,397