Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] keyring problem

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
consufed
Posts: 31
Joined: 2013-08-11 21:57

[SOLVED] keyring problem

#1 Post by consufed »

I had Debian8 installed (AMD-64) for years. When I recently upgraded (half) to Debian 9, midway through the procedure I got a NO_PUBKEY 'keyring' error. This seems to mean that the kernel didn't get upgraded, although some packages did, e.g. -> Firefox browser and ->Thunderbird email server. But hey, the system still seems to work. So I just carried on using.
Unfortunately apt-get update now always gives a keyring message:

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

I searched around and tried this (I disabled my router's firewall & ufw):
gpg --keyserver subkeys.pgp.net --recv 164B4655667F68A8

which returned this:
gpg: requesting key 667F68A8 from hkp server subkeys.pgp.net
....before timing out after several minutes.

Evidently there is a loose bit somewhere.
The only thing I can think of is to create a DVD for the latest stable Debian, wipe all existing system directories, and install from new.
Last edited by consufed on 2017-09-05 18:50, edited 1 time in total.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: keyring problem

#2 Post by arochester »

opensuse?

It would be interesting to see you sources list and the contents of /etc/apt.sources.list.d

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: keyring problem

#3 Post by RU55EL »

Please post the output of:

Code: Select all

cat /etc/apt/sources.list

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: keyring problem

#4 Post by None1975 »

consufed wrote:W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 164B4655667F68A8
Don't make a FrankenDebian
Image
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: keyring problem

#5 Post by Lysander »

consufed wrote: I recently upgraded (half) to Debian 9
Doesn't sound too promising.

consufed
Posts: 31
Joined: 2013-08-11 21:57

Re: keyring problem

#6 Post by consufed »

Here's what's in /etc/apt/sources.list

deb http://download.virtualbox.org/virtualbox/debian jessie contrib
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://ftp.de.debian.org/debian stretch main
deb http://ftp.be.debian.org/debian/ jessie main
deb-src http://ftp.be.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.be.debian.org/debian/ jessie-updates main
deb-src http://ftp.be.debian.org/debian/ jessie-updates main
deb http://ftp.de.debian.org/debian jessie main contrib non-free
deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free

I also don't understand the suse message.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: keyring problem

#7 Post by Lysander »

You've mixed together stable and what is now oldstable. Which is bad for a start.

You also need to post the output of this

Code: Select all

cat /etc/apt/sources.list.d/*

bryanmc
Posts: 122
Joined: 2016-11-18 12:21
Has thanked: 2 times

Re: keyring problem

#8 Post by bryanmc »

Lysander wrote:You've mixed together stable and what is now oldstable. Which is bad for a start.
Only one stretch repo in the bunch. I can only imagine what a "half upgrade" is.

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: keyring problem

#9 Post by RU55EL »

consufed wrote:Here's what's in /etc/apt/sources.list

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian jessie contrib
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://ftp.de.debian.org/debian stretch main
deb http://ftp.be.debian.org/debian/ jessie main
deb-src http://ftp.be.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.be.debian.org/debian/ jessie-updates main
deb-src http://ftp.be.debian.org/debian/ jessie-updates main
deb http://ftp.de.debian.org/debian jessie main contrib non-free
deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free
I also don't understand the suse message.
Your sources.list file is configured in such a way that it can cause problems to your system.

Read sources.list from the Debian Wiki and Don't break Debian to understand why.

consufed
Posts: 31
Joined: 2013-08-11 21:57

[SOLVED] keyring problem

#10 Post by consufed »

Whoops! I cleaned out all old Jessie references in sources.list , then an apt-get update & upgrade completed ok without any keyring or other messages.
Thanks for the replies.

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: keyring problem

#11 Post by RU55EL »

Lysander wrote:You've mixed together stable and what is now oldstable. Which is bad for a start.

You also need to post the output of this

Code: Select all

cat /etc/apt/sources.list.d/*
Huh, I'm not familiar with this [directory] so I took a look in my system...

Code: Select all

russel@NUC-G:~$ ls -la /etc/apt/sources.list.d/
total 8
drwxr-xr-x 2 root root 4096 Jun  1 01:50 .
drwxr-xr-x 6 root root 4096 Aug 14 08:41 ..
Should the directory be empty?

[edit] Changed the word "folder" to directory. My bad! [/edit]
Last edited by RU55EL on 2017-09-06 01:30, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6465
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

Re: [SOLVED] keyring problem

#12 Post by sunrat »

It's ok for it to be empty. It's where extra sources files go which are not in the main sources.list and is where one would expect something such as a Suse source file to be.
It may help to install inxi and run

Code: Select all

inxi -r
This should show all your sources.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: [SOLVED] keyring problem

#13 Post by RU55EL »

Thanks for the explanation Sunrat.

I need to do some reading about inxi, it is a great little program!

Code: Select all

russel@debian:~$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://deb.debian.org/debian/ stretch main
           deb http://deb.debian.org/debian/ stretch-updates main
           deb http://security.debian.org/ stretch/updates main
Nice. Also, inxi is nice because of all the other stuff you can do with it!

User avatar
sunrat
Administrator
Administrator
Posts: 6465
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

Re: [SOLVED] keyring problem

#14 Post by sunrat »

Just normal Debian sources, no Suse. :?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: [SOLVED] keyring problem

#15 Post by RU55EL »

Code: Select all

russel@debian:~$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://deb.debian.org/debian/ stretch main
           deb http://deb.debian.org/debian/ stretch-updates main
           deb http://security.debian.org/ stretch/updates main
sunrat wrote:Just normal Debian sources, no Suse. :?
Sorry if I wasn't very clear. This is the output from my machine, not the original poster. I was just trying out the inxi -r command.

The OP, I believe, read material at Debian wiki about source.list and don't break Debian. Then reconfigured sources.list, solving the problem.

Post Reply