LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2022, 10:56 AM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 648

Rep: Reputation: 174Reputation: 174
Question How do I remove unwanted GPG keys?


{Note: had a stroke in 2011 and am brain-damaged with really bad short term memory loss}

Aptitude, and other ways of downloading package stopped working.

I did a TEMPORARY fix, though.

The culprit was Opera-stable having too many different GPG keys. I temporarily "hash-tagged" out of existence via '#', and it works fine, but I can no longer get an update for Opera-stable.

I cannot figure how, exactly, can I remove the excess GPG keys?

Thank you for reading my question, and have an excellent day!
 
Old 05-25-2022, 11:19 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
What about uncommenting one key at a time and seeing which one lets you update. Then you can get rid of the others.
 
Old 05-25-2022, 12:59 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
https://linuxhint.com/delete-gpg-keys-linux/
 
Old 05-26-2022, 06:50 AM   #4
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 648

Original Poster
Rep: Reputation: 174Reputation: 174
I looked at all the opera-stable keys, I deleted everyone other than the current on {still active until about 1_1/2 years from now}.
I then removed the '#' symbol at the opera-stable one and it doesn't work again.

It now says, three times in a row:
"E: Conflicting values for option Signed-By regarding source https://deb.opera.com/opera-stable/ stable: /usr/share/keyrings/opera-browser.gpg !="

{And, yes, that key is a binary file}

And once at the end:
"E: The list of sources could not be read."

The entry in question in /etc/apt/sources-list.d:
deb https://deb.opera.com/opera-stable/ stable non-free %Opera Browser (final releases)

Sooo... it seems to be screwed up, although I have done this several times when "netinstalling" within the past month, with success, I don't know what happened this time.

I guess I could purge the opera-stable package, kill all the opera-stable keys, and go get the package again.....

{{I generally use Brave Browser, but for some things, Opera Browser has a built-in VPN, and it is easy to turn it on.....}}
 
Old 06-14-2022, 06:31 PM   #5
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 648

Original Poster
Rep: Reputation: 174Reputation: 174
Final update:

Although I put the "octothorpe"/"hash mark" {check it, the '#' symbol is called the "octothorpe"} to deal with the something-or-other, Opera-stable still updates.

Go figure!
 
  


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
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
[SOLVED] gpg: WARNING: unsafe permissions on configuration file `/home/b/.gnupg/options' gpg: widda Mandriva 9 07-30-2018 07:49 AM
[SOLVED] Questions on GPG keyrings for debain apt-get? (fixing problem with gpg) frog-o Debian 2 05-12-2013 10:50 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
unwanted keys showing up in /root/.ssh/known_hosts zapcojake Linux - Security 1 01-31-2009 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 PM.

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