[SOLVED] keyring problem

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] keyring problem

Postby consufed » 2017-09-05 11:23

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.
consufed
 
Posts: 22
Joined: 2013-08-11 21:57

Re: keyring problem

Postby arochester » 2017-09-05 12:24



opensuse?

It would be interesting to see you sources list and the contents of /etc/apt.sources.list.d
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1030
Joined: 2010-12-07 19:55

Re: keyring problem

Postby RU55EL » 2017-09-05 12:32

Please post the output of:
Code: Select all
cat /etc/apt/sources.list
User avatar
RU55EL
 
Posts: 256
Joined: 2014-04-07 03:42
Location: /home/russel

Re: keyring problem

Postby None1975 » 2017-09-05 12:44

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 9.1 / WM: Openbox
Debian Wiki | DontBreakDebian
User avatar
None1975
 
Posts: 154
Joined: 2015-11-29 18:23
Location: Lithuania

Re: keyring problem

Postby Lysander » 2017-09-05 12:47

consufed wrote: I recently upgraded (half) to Debian 9


Doesn't sound too promising.
User avatar
Lysander
 
Posts: 313
Joined: 2017-02-23 10:07
Location: London

Re: keyring problem

Postby consufed » 2017-09-05 13:50

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.
consufed
 
Posts: 22
Joined: 2013-08-11 21:57

Re: keyring problem

Postby Lysander » 2017-09-05 14:07

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/*
User avatar
Lysander
 
Posts: 313
Joined: 2017-02-23 10:07
Location: London

Re: keyring problem

Postby bryanmc » 2017-09-05 15:20

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.
bryanmc
 
Posts: 56
Joined: 2016-11-18 12:21

Re: keyring problem

Postby RU55EL » 2017-09-05 16:02

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.
User avatar
RU55EL
 
Posts: 256
Joined: 2014-04-07 03:42
Location: /home/russel

[SOLVED] keyring problem

Postby consufed » 2017-09-05 18:34

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.
consufed
 
Posts: 22
Joined: 2013-08-11 21:57

Re: keyring problem

Postby RU55EL » 2017-09-05 18:53

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
RU55EL
 
Posts: 256
Joined: 2014-04-07 03:42
Location: /home/russel

Re: [SOLVED] keyring problem

Postby sunrat » 2017-09-05 21:45

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
sunrat
 
Posts: 1999
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: [SOLVED] keyring problem

Postby RU55EL » 2017-09-06 01:26

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
RU55EL
 
Posts: 256
Joined: 2014-04-07 03:42
Location: /home/russel

Re: [SOLVED] keyring problem

Postby sunrat » 2017-09-06 03:16

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
sunrat
 
Posts: 1999
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: [SOLVED] keyring problem

Postby RU55EL » 2017-09-06 04:54

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.
User avatar
RU55EL
 
Posts: 256
Joined: 2014-04-07 03:42
Location: /home/russel


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable