LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-21-2024, 01:11 PM   #1
baker7
LQ Newbie
 
Registered: Feb 2009
Location: Barre VT USA
Distribution: Debian 11 (Bullseye)
Posts: 13

Rep: Reputation: 1
Angry Cant use Apt-get update anymore......No public key for Sury.Org?


Hello:

I am trying to get apt-get update to function, and instead of getting full update I get:

Code:
brian@cardinal:~$ sudo apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Ign:4 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:5 https://download.webmin.com/download/newkey/repository stable Release
Hit:6 https://packages.sury.org/php bullseye InRelease
Hit:7 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease
Get:9 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB]
Err:9 http://repo.mysql.com/apt/debian bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Fetched 17.9 kB in 6s (3,179 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/bullseye/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead.
brian@cardinal:~$
I'm not sure how you fix this one, as most things I am seeing indicate that the key on sury.org changed. This means I cant update all the way, and sury.org just errors out:

I also got this when trying to get the key:

Code:
brian@cardinal:~$ apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B188E2B695BD4743
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.bqaFE5U61V/gpg.1.sh --keyserver ha.pool.sks-keyservers.net --recv-keys B188E2B695BD4743
gpg: keyserver receive failed: Server indicated a failure
brian@cardinal:~$
Note that everything else worked fine until this happened. Now, Need to get the right setup for keys - Lucky for me, its just ONE site, (suray.org), but I want to make sure that I am doing this right, and if something like the keys and management has changed, I'd need to figure out how to fix this

Can someone help me here please?? Sounds like a fix that's easy, but sounds like something changed, and I don't know what to change, other than to command a new key for the server in question.

Thanks,

Brian

Last edited by baker7; 01-21-2024 at 01:19 PM.
 
Old 01-21-2024, 02:23 PM   #2
maybeJosiah
Member
 
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish maybe
Posts: 195
Blog Entries: 2

Rep: Reputation: 5
Is it just me or is original error with this:
and not with sury.org. I am assuming suray.org is a typo. Also, that deprecated seemingly call to apt-key may be making its own error by deprecation. Maybe find a more current way to do that thing you try for. I am not an expert so please just take this like a suggestion. If you are running MySQL maybe try uninstall and reinstall or its updater. X E.
 
Old 01-21-2024, 06:02 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
download the gpgkey https://repo.mysql.com/apt/debian/di...ye/Release.gpg
and put it in /etc/apt/trusted.gpg.d/
 
Old 01-31-2024, 11:10 PM   #4
baker7
LQ Newbie
 
Registered: Feb 2009
Location: Barre VT USA
Distribution: Debian 11 (Bullseye)
Posts: 13

Original Poster
Rep: Reputation: 1
@Craigevil

You are correct: suray.org was NOT the problem: It was repo.mysql.com. Just now, I did the following things as in the code box:

Code:
brian@cardinal:~$ sudo apt-get update
[sudo] password for brian:
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB]
Err:4 http://repo.mysql.com/apt/debian bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Hit:5 https://packages.sury.org/php bullseye InRelease
Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:7 https://download.webmin.com/download/newkey/repository stable Release
Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease
Fetched 110 kB in 7s (14.9 kB/s)
Reading package lists... Done


W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/bullseye/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead.
Then, using this information: https://askubuntu.com/questions/1389...e-verification

I then did this:

Code:
brian@cardinal:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.XSuPZqf9nu/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C
gpg: key B7B3B788A8D3785C: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
brian@cardinal:~$ sudo apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB]
Get:5 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 Sources [949 B]
Get:6 http://repo.mysql.com/apt/debian bullseye/mysql-apt-config amd64 Packages [566 B]
Hit:7 https://packages.sury.org/php bullseye InRelease
Ign:8 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:9 https://download.webmin.com/download/newkey/repository stable Release
Get:10 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 amd64 Packages [12.6 kB]
Get:12 http://repo.mysql.com/apt/debian bullseye/mysql-tools amd64 Packages [4,114 B]
Hit:13 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease
Fetched 36.1 kB in 7s (4,821 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Now, I get this:

Code:
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
brian@cardinal:~$ sudo apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://repo.mysql.com/apt/debian bullseye InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:7 https://download.webmin.com/download/newkey/repository stable Release
Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease
Reading package lists... Done
brian@cardinal:~$
So it looks like it works now, but not sure if there is a way to fix this:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.XSuPZqf9nu/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C
gpg: key B7B3B788A8D3785C: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported
gpg: Total number processed: 1
gpg: imported: 1

Thank You for your asssistance

Brian
 
1 members found this post helpful.
Old 01-31-2024, 11:19 PM   #5
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Did you see the message prior to yours from craigevil? He told you how to get a key in the new format.

Or you can continue to use the old format for now anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
hello, everyone. I'm Sury Bai surybai LinuxQuestions.org Member Intro 7 01-30-2010 08:34 PM
Public key not available - apt update failure Happy Gimper Linux - Software 7 04-09-2008 10:06 AM
"apt-get update" errors : THe public key is not available blackboab Linux - Software 4 09-05-2007 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration