Updates worked fine last time we ran them about 3 months ago, but now we get an error saying the signature is invalid.
Output of apt update:
Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://se.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:4 http://se.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://se.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:6 http://software.virtualmin.com/vm/6/apt virtualmin-focal InRelease
Hit:7 http://software.virtualmin.com/vm/6/apt virtualmin-universal InRelease
Err:6 http://software.virtualmin.com/vm/6/apt virtualmin-focal InRelease
The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
Err:7 http://software.virtualmin.com/vm/6/apt virtualmin-universal InRelease
The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
Reading package lists... Done
Building dependency tree
Reading state information... Done
93 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://software.virtualmin.com/vm/6/apt virtualmin-focal InRelease: The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://software.virtualmin.com/vm/6/apt virtualmin-universal InRelease: The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
W: Failed to fetch http://software.virtualmin.com/vm/6/apt/dists/virtualmin-focal/InRelease The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
W: Failed to fetch http://software.virtualmin.com/vm/6/apt/dists/virtualmin-universal/InRelease The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <security@virtualmin.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Output of: virtualmin setup-repos
Setting up Virtualmin software repositories ..
..error : Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease Hit:2
http://se.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3
https://artifacts.elastic.co/packages/8.x/apt stable InRelease Hit:4
http://se.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5
http://se.archive.ubuntu.com/ubuntu focal-security InRelease Get:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease [10.7 kB] Err:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease The following signatures couldn't
be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7 Reading package
lists. W: GPG error: https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease: The following
signatures couldn't be verified because the public key is not available: NO_PUBKEY
3E570892B9A0B8B7 E: The repository 'https://software.virtualmin.com/vm/7/pro/apt virtualmin
InRelease' is not signed. Downloading repository metadata: [2024-06-04 09:01:03 CEST] Failed with
error: 100 [2024-06-04 09:01:03 CEST] Something went wrong. Exiting.
Running apt update again after, it has changed to the v7 repos but same error (different key)
Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://se.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:4 http://se.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease [10.7 kB]
Hit:6 http://se.archive.ubuntu.com/ubuntu focal-security InRelease
Err:5 https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
Reading package lists... Done
W: GPG error: https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
E: The repository 'https://software.virtualmin.com/vm/7/pro/apt virtualmin 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
Setting up Virtualmin software repositories ..
..error : Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease Hit:2
http://se.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3
https://artifacts.elastic.co/packages/8.x/apt stable InRelease Hit:4
http://se.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5
http://se.archive.ubuntu.com/ubuntu focal-security InRelease Get:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease [10.7 kB] Err:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease The following signatures couldn't
be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7 Reading package
lists. W: GPG error: https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease: The following
signatures couldn't be verified because the public key is not available: NO_PUBKEY
3E570892B9A0B8B7 E: The repository 'https://software.virtualmin.com/vm/7/pro/apt virtualmin
InRelease' is not signed. Downloading repository metadata: [2024-06-04 09:01:03 CEST] Failed with
error: 100 [2024-06-04 09:01:03 CEST] Something went wrong. Exiting.
Hi,
The first 2 commands produced no errors, however virtualmin setup-repos still produces an error:
Setting up Virtualmin software repositories ..
..error : Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease Hit:2
https://artifacts.elastic.co/packages/8.x/apt stable InRelease Hit:3
http://se.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4
http://se.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5
http://se.archive.ubuntu.com/ubuntu focal-security InRelease Get:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease [10.7 kB] Err:6
https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease The following signatures couldn't
be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7 Reading package
lists. W: GPG error: https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease: The following
signatures couldn't be verified because the public key is not available: NO_PUBKEY
3E570892B9A0B8B7 E: The repository 'https://software.virtualmin.com/vm/7/pro/apt virtualmin
InRelease' is not signed. Downloading repository metadata: [2024-06-10 12:01:03 CEST] Failed with
error: 100 [2024-06-10 12:01:03 CEST] Something went wrong. Exiting.
I deleted all since they seemed to be related to Virtualmin and confirmed with gpg --list-keys. However the error still remains:
sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --setup
[INFO] Log will be written to: /root/virtualmin-install.log
[INFO] Started Virtualmin 7 Professional software repositories setup
▣ Phase 1 of 1: Setup
Downloading Virtualmin 7 key ✔
Installing Virtualmin 7 key ✔
Downloading repository metadata [ERROR] Failed with error: 100
✘
[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
Spin pid is: 1819703
Hit:1 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:2 http://se.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://se.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://se.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://se.archive.ubuntu.com/ubuntu focal-security InRelease
Get:6 https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease [10.7 kB]
Err:6 https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
Reading package lists...
W: GPG error: https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
E: The repository 'https://software.virtualmin.com/vm/7/pro/apt virtualmin InRelease' is not signed.
Downloading repository metadata: [2024-06-12 19:55:18 CEST] [ERROR] Failed with error: 100
[2024-06-12 19:55:19 CEST] [ERROR] Something went wrong. Exiting.