Whilst updating Virtualmin, you might get this error:
Err:6 https://software.virtualmin.com/vm/6/gpl/apt virtualmin-focal InRelease The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <[email protected]> Err:7 https://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal InRelease The following signatures were invalid: EXPKEYSIG D9F9010760D62A6B Virtualmin, Inc. (Package signing key for Virtualmin 6) <[email protected]> Reading package lists... Done
Do this:
sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --setup
The above command is the equivalent of:
wget https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh sh virtualmin-install.sh --setup
Then do apt upgrade
or yum upgrade
There is an alternative command to “fix” the repos, but doesn’t always work:
virtualmin setup-repos
The above command might report this:
Setting up Virtualmin software repositories .. ..error : [INFO] Log will be written to: /usr/share/webmin/virtual-server/virtualmin-install.log [INFO] Started Virtualmin 7 GPL software repositories setup ▣ Phase 1 of 1: Setup Downloading Virtualmin 7 key OK Installing Virtualmin 7 key OK Downloading repository metadata ER Something went wrong with the previous command. Exiting.
Try one of the sequences above if you get this error. Even just try apt upgrade
if the previous errors appeared.
Here is another one to content with:
# sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --setup [INFO] Setup log is written to /root/virtualmin-repos-setup.log [INFO] Started Virtualmin 7 GPL software repositories setup Downloading Virtualmin 7 key ✔ Installing Virtualmin 7 key ✔ Downloading repository metadata ✘ [ERROR] Something went wrong. Exiting. [ERROR] The last few log entries were: gpg: Total number processed: 1 gpg: imported: 1 [2025-10-07 07:06:35 SAST] [INFO] Installing Virtualmin 7 key: [2025-10-07 07:06:35 SAST] [INFO] Success. [2025-10-07 07:06:35 SAST] [INFO] Spin pid is: 4123210 Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB] Get:4 https://software.virtualmin.com/vm/7/gpl/apt virtualmin InRelease [10.7 kB] Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [24.6 kB] Get:6 https://software.virtualmin.com/vm/7/gpl/apt virtualmin/main all Packages [26.8 kB] Get:7 https://software.virtualmin.com/vm/7/gpl/apt virtualmin/main amd64 Packages [26.8 kB] Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease' changed its 'Label' value from '***** The main PPA for supported PHP versions with many PECL extensions *****' to 'PPA for PHP' [2025-10-07 07:06:35 SAST] [INFO] Downloading repository metadata: [2025-10-07 07:06:35 SAST] [INFO] Failed with error: 100
Do apt clean, apt update, first download script above, and then apt upgrade again. There is an interactive box you have to say Yes to.
root@host:~# apt clean root@host:~# apt update Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [24.6 kB] Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease' changed its 'Label' value from '***** The main PPA for supported PHP versions with many PECL extensions *****' to 'PPA for PHP' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] y
Once you have accepted the box, do this upgrade again
sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --setup
apt upgrade
Thanks Joe.