Fail to upgrade > The following signatures were invalid: EXPKEYSIG 42D88D19FA941994 beta-apt.hestiacp.com

I run update and upgrade on Debian 12 and get the errors below:

Hit:8 https://beta-apt.hestiacp.com bookworm InRelease
Err:8 https://beta-apt.hestiacp.com bookworm InRelease
  The following signatures were invalid: EXPKEYSIG 42D88D19FA941994 beta-apt.hestiacp.com <[email protected]>
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: https://beta-apt.hestiacp.com bookworm InRelease: The following signatures were invalid: EXPKEYSIG 42D88D19FA941994 beta-apt.hestiacp.com <[email protected]>
W: Failed to fetch https://beta-apt.hestiacp.com/dists/bookworm/InRelease  The following signatures were invalid: EXPKEYSIG 42D88D19FA941994 beta-apt.hestiacp.com <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

How to fix it?

Thanks

Note the following source: It is a beta version

beta-apt.hestiacp.com

/etc/apt/sources.list.d/hestia.list
Add the following

deb [arch=amd64 signed-by=/usr/share/keyrings/hestia-keyring.gpg] https://apt.hestiacp.com/ bookworm main
1 Like

I add that source and get another error:

Get:7 https://apt.hestiacp.com bookworm InRelease [28.0 kB]
Err:7 https://apt.hestiacp.com bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A189E93654F0B0E5
Hit:8 https://nginx.org/packages/mainline/debian bookworm InRelease
Reading package lists... Done
W: GPG error: https://apt.hestiacp.com bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A189E93654F0B0E5
E: The repository 'https://apt.hestiacp.com bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
rm /usr/share/keyrings/hestia-keyring.gpg 
mkdir /root/.gnupg/
gpg --no-default-keyring --keyring /usr/share/keyrings/hestia-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A189E93654F0B0E5

is the solution.