Error when updating

Hi all
I was updating my laptop running Ubuntu 24.04.2 LTS this morning and apt is suddenly giving this error

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.chia.net/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 2F0D12CCFD02543B Chia Network Inc <hello@chia.net>
E: https://repo.chia.net/debian stable InRelease is not (yet) available (The following signatures were invalid: EXPKEYSIG 2F0D12CCFD02543B Chia Network Inc <hello@chia.net>

this was working fine until today i have updated multiple times in the past.
any ideas?

I’m getting the same errors for both chia and chia-exporter on Ubuntu 22.04.5 LTS. I’m guessing CNI updated something and it went wrong or their certs are expired or something similar. This is probably something to be handled in Support in discord (where I’m heading next)

The keys had their expiration dates extended, but you will need to update your local copies.

To verify that this is indeed the issue, run:
gpg --no-default-keyring --keyring /usr/share/keyrings/chia.gpg --list-keys
If it shows a date in the past, then you will need to download an updated version.

You can do this by running:
curl -sL https://repo.chia.net/FD39E6D3.pubkey.asc | sudo gpg --dearmor -o /usr/share/keyrings/chia.gpg

To verify that the date has been extended, run the first command again:
gpg --no-default-keyring --keyring /usr/share/keyrings/chia.gpg --list-keys

1 Like

FYI: the previous version I had didn’t list an expiration date, that whole sub: was missing.
Following this fixed the issue on Ubuntu 22.04.5LTS. Thank you

1 Like

ran the first command and it did return a date in the past - 2022-04-15
ran the next one and it asked to overwrite /usr/share/keyrings/chia.gpg so i agreed
it returned gpg: no valid OpenPGP data found
ran the first command again and it returned nothing
did a sudo apt update && sudo apt upgrade and got

Err:9 https://epo.chia.net/debian stable InRelease
       The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F0D12CCFD02543B
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.chia.net/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F0D12CCFD02543B
E: https://repo.chia.net/debian stable InRelease is not (yet) available (The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F0D12CCFD02543B)

From our engineering team:

It seems that the issue is local to your computer. One odd thing about your error is “epo.chia.net” (possibly copy/paste error, but..)
its probably worth ensuring that your repo definitions are correct as well in /etc/apt/sources.list.d/chia.list
should look like:
deb [arch=arm64 signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/debian/ stable main
(Possibly a different arch depending on what you are on)
(other option would generally be: deb [arch=amd64 signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/debian/ stable main)
if its still failing after that, could try just deleting the configs:
rm /etc/apt/sources.list.d/chia.list
rm /usr/share/keyrings/chia.gpg
And then redoing the steps here: Advanced Installation | Chia Documentation
(it works for me on all my computers, so something has just gone wrong on youe end)

sorry , my bad typing not only did i type on my pc the error from my laptop incorrectly but i rechecked the command history and i had typed the curl command with reo.chia.net :blush:
after i did it right your solution works fine.
Thanks very much for your quick help
and sorry for bothering the elves in the engineering team

All good, I’m glad you’re back up and running again.