3

This question already has an answer here:

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.

marked as duplicate by RPiAwesomeness, Eric Carvalho, 2707974, David Foerster, user364819 Nov 9 '15 at 20:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which packages comes from this repository? – A.B. Nov 7 '15 at 19:33
  • How can I find out? – john smith Nov 7 '15 at 19:34
  • Have you added a lot of PPAs? If so, check out this blog post. If you have more than 40 files in the /var/lib/apt/lists directory, it'll cause that error. – RPiAwesomeness Nov 7 '15 at 19:36
  • I have followed your guide and it doesn't work. I moved my lists file, and created a new one when using apt-get update. I now how 15 ppa files, and 16 security files. After removing some of the other gpg keys, I now have even MORE errors when updating. – john smith Nov 7 '15 at 19:53
  • Revert the changes. Which keys are now missing? – A.B. Nov 7 '15 at 20:01
9

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*

Not the answer you're looking for? Browse other questions tagged or ask your own question.