No PUB_KEY- Solved

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hhoyt

No PUB_KEY- Solved

Post by hhoyt »

Can anyone help me with this.
Seems to have occured after using command line upgrade to Mint 8.
One of my wine apps quit after upgrade to 8 but I cannot upgrade Wine.


W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://packages.linuxmint.com helena Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3EE67F3D0FF405B2

W: Failed to fetch http://packages.linuxmint.com/dists/helena/Release

W: Some index files failed to download, they have been ignored, or old ones used instead.

Sorry, I just do not understand what i am supposed to do ?

Tks, Howard
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
bobcollard

Re: No PUB_KEY

Post by bobcollard »

hhoyt wrote:Can anyone help me with this.
Seems to have occured after using command line upgrade to Mint 8.
One of my wine apps quit after upgrade to 8 but I cannot upgrade Wine.


W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://packages.linuxmint.com helena Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3EE67F3D0FF405B2

W: Failed to fetch http://packages.linuxmint.com/dists/helena/Release

W: Some index files failed to download, they have been ignored, or old ones used instead.

Sorry, I just do not understand what i am supposed to do ?

Tks, Howard
To update a key missing in apt-get type the following in Terminal:

Code: Select all

sudo apt-key adv --recv-key --keyserver keyserver.linuxmint.com “missing key number” 
Where "Missing key number" is 3EE67F3D0FF405B2 in this case. (Leave out the Quotation marks) Then you need another line:

Code: Select all

gpg --export --armor "Missing Key Number"| sudo apt-key add -
Make sure the hyphen is on the end of this line or it won't work.
Then you are ready for

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get dist-upgrade
and it should finish for you. Hope this helps.
hhoyt

Re: No PUB_KEY

Post by hhoyt »

Thanks Robert !
I seem to be doing something wrong:
sudo apt-key adv --recv-key --keyserver keyserver.linuxmint.com 3EE67F3D0FF405B2

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.linuxmint.com 3EE67F3D0FF405B2
PRODUCES:
gpgkeys: HTTP fetch error 7: couldn't connect to host
bobcollard

Re: No PUB_KEY

Post by bobcollard »

hhoyt wrote:Thanks Robert !
I seem to be doing something wrong:
sudo apt-key adv --recv-key --keyserver keyserver.linuxmint.com 3EE67F3D0FF405B2

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.linuxmint.com 3EE67F3D0FF405B2
PRODUCES:
gpgkeys: HTTP fetch error 7: couldn't connect to host
Perhaps it is the host part (Linuxmint.com) Try this, then the second part from the previous.

Code: Select all

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2 
hhoyt

Re: No PUB_KEY

Post by hhoyt »

maybe this helps ?
n4af@ny4a-b:~$ sudo apt-get update && apt-get install wine
Ign http://www.geekconnection.org ubuntu/ Release.gpg
Ign http://www.geekconnection.org ubuntu/ Translation-en_US
Hit http://download.virtualbox.org karmic Release.gpg
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Get:1 http://packages.linuxmint.com helena Release.gpg [198B]
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US
Ign http://www.geekconnection.org ubuntu/ Release
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://ppa.launchpad.net karmic Release
Ign http://packages.linuxmint.com helena/main Translation-en_US
Ign http://packages.linuxmint.com helena/upstream Translation-en_US
Ign http://packages.linuxmint.com helena/import Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic/universe Translation-en_US
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-updates Release.gpg
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Ign http://www.geekconnection.org ubuntu/ Packages
Ign http://download.virtualbox.org karmic/non-free Translation-en_US
Hit http://archive.ubuntu.com karmic Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Get:2 http://packages.linuxmint.com helena Release [7,251B]
Ign http://www.geekconnection.org ubuntu/ Packages
Hit http://archive.ubuntu.com karmic-updates Release
Hit http://download.virtualbox.org karmic Release
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://www.geekconnection.org ubuntu/ Packages
Err http://packages.linuxmint.com helena Release <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Hit http://archive.ubuntu.com karmic/main Packages
Hit http://archive.ubuntu.com karmic/restricted Packages
Hit http://archive.ubuntu.com karmic/universe Packages
Hit http://archive.ubuntu.com karmic/multiverse Packages
Hit http://download.virtualbox.org karmic/non-free Packages
Hit http://archive.ubuntu.com karmic-updates/main Packages
Hit http://archive.ubuntu.com karmic-updates/restricted Packages
Hit http://archive.ubuntu.com karmic-updates/universe Packages
Hit http://archive.ubuntu.com karmic-updates/multiverse Packages
Fetched 7,449B in 1s (4,426B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://packages.linuxmint.com helena Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3EE67F3D0FF405B2

W: Failed to fetch http://packages.linuxmint.com/dists/helena/Release

W: Some index files failed to download, they have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
n4af@ny4a-b:~$
bobcollard

Re: No PUB_KEY

Post by bobcollard »

Did we cross in the mail? My last post changed the host name to ubuntu.com.
hhoyt

Re: No PUB_KEY

Post by hhoyt »

THANK YOU !!!
Ubuntu did the trick.

THANKS SO MUCH,

Howard
bobcollard

Re: No PUB_KEY

Post by bobcollard »

hhoyt wrote:THANK YOU !!!
Ubuntu did the trick.

THANKS SO MUCH,

Howard
Great, one more thing before I leave you. If you would, please, go to your original post on the top of this page, then, Edit it and add <Solved> to the "No PUB_KEY" in the Topic line. It will tell others something has worked, then they can choose to read it or pass it by. Thanks.
whittaker007

Re: No PUB_KEY

Post by whittaker007 »

Hi guys, I know this is an old thread but I'd just like to say this fixed it for me too.

Actually my original error was a BADSIG invalid signature error, which I tried to fix by opening Synapric Package Manager and deleting the bad signature from the list of package sources. That just turned the BADSIG error into the No PUB_KEY error listed here.

So anyone who has my BADSIG problem can probably fix it the same way, or maybe even just apply the solution here without deleting the key first, I don't know. But this topic should be marked fixed as it certainly helped me where some other threads did not. :D
xavierbaez

Re: No PUB_KEY- Solved

Post by xavierbaez »

None of these solutions work.
User avatar
Larry78723
Level 14
Level 14
Posts: 5464
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: No PUB_KEY- Solved

Post by Larry78723 »

xavierbaez, please start a new thread of your own and be as specific as possible about your problem.
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
Locked

Return to “Beginner Questions”