Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO_PUBKEY 5478FEE00E35DFD3 #13

Open
andoresuperesu opened this issue Feb 15, 2025 · 12 comments
Open

NO_PUBKEY 5478FEE00E35DFD3 #13

andoresuperesu opened this issue Feb 15, 2025 · 12 comments

Comments

@andoresuperesu
Copy link

andoresuperesu commented Feb 15, 2025

Got this error while trying to update.

The install procedure after deleting the ppa and keys don't fix it.

@ChristopherHX
Copy link
Member

hmm, did I let my gpg key expire...

GPG error: https://minecraft-linux.github.io/pkg/deb jammy InRelease: The following signatures were invalid: EXPKEYSIG 5478FEE00E35DFD3 Christopher Homberger <[email protected]>

I need a new key, then everyone need to update the key.
...I will look into this tomorrow, thanks for opening an issue

@ChristopherHX
Copy link
Member

ChristopherHX commented Feb 16, 2025

MEMO for me
# To get the fingerprint
gpg --list-secret-keys --keyid-format LONG
gpg --quick-set-expire <fingerprint> 8y
gpg --armor --export-secret-keys <fingerprint>

You need to repeat this step, since the public key has been updated, now longer valid than 2 years

curl -sS https://minecraft-linux.github.io/pkg/deb/pubkey.gpg | sudo tee /etc/apt/trusted.gpg.d/minecraft-linux-pkg.asc

@andoresuperesu
Copy link
Author

andoresuperesu commented Feb 16, 2025 via email

@dilnix
Copy link

dilnix commented Feb 16, 2025

MEMO for me
You need to repeat this step, since the public key has been updated, now longer valid than 2 years

curl -sS https://minecraft-linux.github.io/pkg/deb/pubkey.gpg | sudo tee -a /etc/apt/trusted.gpg.d/minecraft-linux-pkg.asc

Thanks for the key update. Are there instructions for Fedora for the similar step?

@dilnix
Copy link

dilnix commented Feb 16, 2025

For now, just used a workaround like:
sudo dnf update <package> --downloadonly --destdir .
sudo rpm -U --nosignature ./<package>

But definitely, there should be a proper way to update the local pubkey.

@ChristopherHX
Copy link
Member

The .repo files I shown in the readme point to that url for rpm, so could be caching

Maybe https://forums.fedoraforum.org/showthread.php?327792-How-can-I-force-dnf-to-download-new-GPG-keys&p=1855568#post1855568

sudo dnf clean all

I don't think to have a fedora system that has fetched the old key at the moment

@dilnix
Copy link

dilnix commented Feb 16, 2025

The .repo files I shown in the readme point to that url for rpm, so could be caching

Maybe https://forums.fedoraforum.org/showthread.php?327792-How-can-I-force-dnf-to-download-new-GPG-keys&p=1855568#post1855568

sudo dnf clean all

I don't think to have a fedora system that has fetched the old key at the moment

Unfortunately, it was not working, tried it the first thing. But ok, for Fedora (on daughter's laptop) it's done using the workaround.
What about Ubuntu? The key resetting using:
curl -sS https://minecraft-linux.github.io/pkg/deb/pubkey.gpg | sudo tee -a /etc/apt/trusted.gpg.d/minecraft-linux-pkg.asc
...didn't help me, I'm still unable to update from 1.1.3 to 1.2.1, getting the error:
An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://minecraft-linux.github.io/pkg/deb jammy InRelease: Наступні підписи були невірними: EXPKEYSIG 5478FEE00E35DFD3 Christopher Homberger <[email protected]>

@ChristopherHX
Copy link
Member

didn't help me, I'm still unable to update from 1.1.3 to 1.2.1

You may have an old copy of my public key under a different file name in /etc/apt/trusted.gpg.d

At least that was it for me. If you remove all keys of my ppa from that folder, the error should just print key not found instead of expired

@dilnix
Copy link

dilnix commented Feb 16, 2025

Thanks, it worked to delete first the same file /etc/apt/trusted.gpg.d/minecraft-linux-pkg.asc, and then to reset it using the offered command. 👍
It is unclear to me why it was not working without deleting the local file first, but OK, at least it's figured out now.

@ChristopherHX
Copy link
Member

@dilnix Could you please try this command on fedora?

rpmkeys --delete "$(rpmkeys --list | grep [email protected] | awk -F ':' '{print $1}')"

This seems to delete the previously imported key (I have published) of my repository and asks again on install like first time.

@robinelvin
Copy link

robinelvin commented Feb 16, 2025

On Fedora 41 I have done it like this:

sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'

Your output should be something like the following:

gpg-pubkey-a15b79cc-63d04c2c	Fedora (40) <[email protected]> public key
gpg-pubkey-e99d6ad1-64d2612c	Fedora (41) <[email protected]> public key
gpg-pubkey-0e35dfd3-63eea313	Christopher Homberger <[email protected]> public key
gpg-pubkey-20038257-63ab09c9	Brave Linux Release (Brave Linux Release) <[email protected]> public key
gpg-pubkey-f661cdcb-63ab09ad	Brave Linux Pre Release (Brave Linux Pre Release) <[email protected]> public key
gpg-pubkey-94843c65-5dadbc64	RPM Fusion nonfree repository for Fedora (2020) <[email protected]> public key

Look for the old key and remove with:

sudo rpm -e gpg-pubkey-0e35dfd3-63eea313

Then you can retry sudo dnf update and it will prompt to add the updated key:

Importing OpenPGP key 0x0E35DFD3:
 UserID     : "Christopher Homberger <[email protected]>"
 Fingerprint: DB0D769C9BBC6478B29A1A715478FEE00E35DFD3
 From       : https://minecraft-linux.github.io/pkg/deb/pubkey.gpg
Is this ok [y/N]: y
The key was successfully imported.

@dilnix
Copy link

dilnix commented Feb 16, 2025

Thanks both, it worked.
Great to see such a support from the community. =]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants