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

 

 

 

Missing GPG keys, tried averything

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
daniek
Posts: 9
Joined: 2018-10-08 12:07

Missing GPG keys, tried averything

#1 Post by daniek »

Hello friends,

While doing an update I get the following output: (the important part is in the bottom)

Code: Select all

Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease   
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:1 http://security.debian.org stretch/updates InRelease           
Ign:3 http://deb.debian.org/debian stretch-updates InRelease   
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
Ign:5 http://deb.debian.org/debian stretch Release.gpg
Get:7 http://deb.debian.org/debian stretch/main Sources [6,758 kB]
Get:7 http://deb.debian.org/debian stretch/main Sources [6,758 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 Packages [7,099 kB]     
Hit:6 http://deb.debian.org/debian stretch/non-free Sources                    
Hit:7 http://deb.debian.org/debian stretch/main Sources                        
Hit:10 http://deb.debian.org/debian stretch/contrib Sources                    
Ign:6 http://deb.debian.org/debian stretch/non-free Sources                    
Ign:7 http://deb.debian.org/debian stretch/main Sources                        
Ign:10 http://deb.debian.org/debian stretch/contrib Sources                    
Hit:11 http://deb.debian.org/debian stretch/main amd64 Packages                
Hit:13 http://deb.debian.org/debian stretch/main Translation-en                
Hit:14 http://deb.debian.org/debian stretch/main amd64 DEP-11 Metadata         
Hit:15 http://deb.debian.org/debian stretch/contrib amd64 Packages             
Ign:11 http://deb.debian.org/debian stretch/main amd64 Packages                
Hit:16 http://deb.debian.org/debian stretch/contrib Translation-en             
Ign:13 http://deb.debian.org/debian stretch/main Translation-en                
Hit:17 http://deb.debian.org/debian stretch/contrib amd64 DEP-11 Metadata      
Hit:18 http://deb.debian.org/debian stretch/non-free amd64 Packages            
Ign:14 http://deb.debian.org/debian stretch/main amd64 DEP-11 Metadata         
Ign:15 http://deb.debian.org/debian stretch/contrib amd64 Packages             
Ign:16 http://deb.debian.org/debian stretch/contrib Translation-en             
Ign:17 http://deb.debian.org/debian stretch/contrib amd64 DEP-11 Metadata      
Ign:18 http://deb.debian.org/debian stretch/non-free amd64 Packages            
Hit:19 http://deb.debian.org/debian stretch/non-free Translation-en            
Hit:20 http://deb.debian.org/debian stretch/non-free amd64 DEP-11 Metadata     
Ign:19 http://deb.debian.org/debian stretch/non-free Translation-en            
Ign:20 http://deb.debian.org/debian stretch/non-free amd64 DEP-11 Metadata     
Hit:6 http://deb.debian.org/debian stretch/non-free Sources                    
Ign:6 http://deb.debian.org/debian stretch/non-free Sources                    
Hit:7 http://deb.debian.org/debian stretch/main Sources                        
Hit:10 http://deb.debian.org/debian stretch/contrib Sources                    
Hit:11 http://deb.debian.org/debian stretch/main amd64 Packages                
Hit:13 http://deb.debian.org/debian stretch/main Translation-en                
Ign:7 http://deb.debian.org/debian stretch/main Sources                        
Ign:10 http://deb.debian.org/debian stretch/contrib Sources                    
Ign:11 http://deb.debian.org/debian stretch/main amd64 Packages                
Ign:13 http://deb.debian.org/debian stretch/main Translation-en                
Hit:14 http://deb.debian.org/debian stretch/main amd64 DEP-11 Metadata         
Hit:15 http://deb.debian.org/debian stretch/contrib amd64 Packages             
Hit:16 http://deb.debian.org/debian stretch/contrib Translation-en             
Ign:14 http://deb.debian.org/debian stretch/main amd64 DEP-11 Metadata         
Ign:15 http://deb.debian.org/debian stretch/contrib amd64 Packages             
Ign:16 http://deb.debian.org/debian stretch/contrib Translation-en             
Hit:17 http://deb.debian.org/debian stretch/contrib amd64 DEP-11 Metadata      
Hit:18 http://deb.debian.org/debian stretch/non-free amd64 Packages            
Ign:17 http://deb.debian.org/debian stretch/contrib amd64 DEP-11 Metadata      
Ign:18 http://deb.debian.org/debian stretch/non-free amd64 Packages            
Hit:19 http://deb.debian.org/debian stretch/non-free Translation-en            
Hit:20 http://deb.debian.org/debian stretch/non-free amd64 DEP-11 Metadata     
Ign:19 http://deb.debian.org/debian stretch/non-free Translation-en            
Ign:20 http://deb.debian.org/debian stretch/non-free amd64 DEP-11 Metadata     
Ign:7 http://deb.debian.org/debian stretch/main Sources                        
Ign:11 http://deb.debian.org/debian stretch/main amd64 Packages                
Err:13 http://deb.debian.org/debian stretch/main Translation-en                
  BZ2_bzread: /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Hit:14 http://deb.debian.org/debian stretch/main amd64 DEP-11 Metadata         
Hit:15 http://deb.debian.org/debian stretch/contrib amd64 Packages
Ign:16 http://deb.debian.org/debian stretch/contrib Translation-en
Hit:17 http://deb.debian.org/debian stretch/contrib amd64 DEP-11 Metadata
Hit:18 http://deb.debian.org/debian stretch/non-free amd64 Packages
Ign:19 http://deb.debian.org/debian stretch/non-free Translation-en
Hit:20 http://deb.debian.org/debian stretch/non-free amd64 DEP-11 Metadata
Hit:6 http://deb.debian.org/debian stretch/non-free Sources
Ign:7 http://deb.debian.org/debian stretch/main Sources
Hit:10 http://deb.debian.org/debian stretch/contrib Sources
Fetched 188 kB in 12s (14.6 kB/s)
Reading package lists... Done
W: GPG error: http://security.debian.org stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: The repository 'http://security.debian.org stretch/updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: The repository 'http://deb.debian.org/debian stretch-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: The repository 'http://deb.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
I tried everything I could find. re-download those keys and what not, yet it doesn't help.

What are your suggestions?

Cheers :)

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#2 Post by L_V »

Hi,
What is the ouput of:

Code: Select all

grep ^deb /etc/apt/sources.list
And can you try:

Code: Select all

# cd /tmp
# apt download debian-archive-keyring
# dpkg -i debian-archive-keyring*.deb
# apt update

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#3 Post by daniek »

L_V wrote:Hi,
What is the ouput of:

Code: Select all

grep ^deb /etc/apt/sources.list
And can you try:

Code: Select all

# cd /tmp
# apt download debian-archive-keyring
# dpkg -i debian-archive-keyring*.deb
# apt update
Thank you for responding.

I get the following output:

Code: Select all

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb http://security.debian.org stretch/updates InRelease
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb http://deb.debian.org/debian stretch Release
What you suggested didn't work since it needs to authenticate the .deb file.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#4 Post by L_V »

something unclear: what are those lines in your sources.list ?

Code: Select all

deb http://security.debian.org stretch/updates InRelease
deb http://deb.debian.org/debian stretch Release

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#5 Post by daniek »

L_V wrote:something unclear: what are those lines in your sources.list ?

Code: Select all

deb http://security.debian.org stretch/updates InRelease
deb http://deb.debian.org/debian stretch Release
No idea, it's quite a fresh installation. didn't touch a thing yet.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#6 Post by L_V »

It will probably not solve your problem, but I would advise starting by this:

Code: Select all

# sed -i '/Release/d' /etc/apt/sources.list
# apt update

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#7 Post by daniek »

L_V wrote:It will probably not solve your problem, but I would advise starting by this:

Code: Select all

# sed -i '/Release/d' /etc/apt/sources.list
# apt update


same output. what next?
I always have troubles with apt. maybe I should go back to manjaro.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#8 Post by L_V »

daniek wrote:I always have troubles with apt. maybe I should go back to manjaro.
?? You mean apt from "manjaro" is different ?

Code: Select all

# dpkg-reconfigure apt

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#9 Post by daniek »

L_V wrote:
daniek wrote:I always have troubles with apt. maybe I should go back to manjaro.
?? You mean apt from "manjaro" is different ?

Code: Select all

# dpkg-reconfigure apt
Didn't help either.

Manjaro is based on arch. uses pacman.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#10 Post by L_V »

Looks like something went wrong during install. Last idea:

Code: Select all

# rm /var/cache/apt/archives/partial/*
# apt update
+ is your network correctly working ???

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#11 Post by daniek »

L_V wrote:Looks like something went wrong during install. Last idea:

Code: Select all

# rm /var/cache/apt/archives/partial/*
# apt update
+ is your network correctly working ???
no such files or directories.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#12 Post by L_V »

This does not say if your network is working (or assuming you post from the PC having these apt troubles ? / suppose so if you downloaded debian-archive-keyring deb package, but to confirm)

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#13 Post by daniek »

L_V wrote:This does not say if your network is working (or assuming you post from the PC having these apt troubles ?)
I'm sorry. missed that. Yes I have networking and using the computer with the apt troubles.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#14 Post by L_V »

How did you install Stretch ?

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#15 Post by daniek »

L_V wrote:How did you install Stretch ?
Normal installation. with disk 1. (full, not minimal).

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#16 Post by L_V »

Strange to me. Sorry I don't know more.
If you cannot locally install a deb package, there is something to urgently clarify and solve (never seen that).

daniek
Posts: 9
Joined: 2018-10-08 12:07

Re: Missing GPG keys, tried averything

#17 Post by daniek »

L_V wrote:Strange to me. Sorry I don't know more.
If you cannot locally install a deb package, there is something to urgently clarify and solve (never seen that).
OK. Thanks a lot for trying. have a lovely day :)

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing GPG keys, tried averything

#18 Post by L_V »

Can you give the output of this:

Code: Select all

apt-cache show debian-archive-keyring

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Missing GPG keys, tried averything

#19 Post by bw123 »

daniek wrote:
L_V wrote:something unclear: what are those lines in your sources.list ?

Code: Select all

deb http://security.debian.org stretch/updates InRelease
deb http://deb.debian.org/debian stretch Release
No idea, it's quite a fresh installation. didn't touch a thing yet.
Tried reading man sources.list? There should be a sample somewhere around /usr/share/doc/apt/examples have you tried that?
resigned by AI ChatGPT

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Missing GPG keys, tried averything

#20 Post by stevepusser »

Something went wrong in your install, since debian-archive-keyring should have been installed automatically.

Often that's not the only problem if you had a bad install---just to be safe, I'd check the hashsums of your downloaded ISO file and do a reinstall if they match.

Did you install from an optical disk or a USB pendrive?
MX Linux packager and developer

Post Reply