Ensure your /etc/apt/sources.list.d/webmin.list file points to the new key:
When you run apt update , Linux uses GPG (GNU Privacy Guard) keys to verify that the software in a repository hasn't been tampered with. The error NO_PUBKEY 2D223B918916F2A2 or signatures were invalid typically means: Ensure your /etc/apt/sources
The old developer key (often belonging to Jamie Cameron) has expired or been replaced. Webmin recently updated its repository structure, moving to
If you prefer to handle it manually or the script doesn't work for your specific environment, you can import the key directly into your trusted keyrings. Run these commands in your terminal: wget -qO
Webmin recently updated its repository structure, moving to a "newkey" path that requires a different verification method.
The easiest and most reliable way to fix this is to use Webmin's official repository setup script. It automatically detects your OS, adds the correct repository, and imports the necessary GPG keys. Run these commands in your terminal:
wget -qO - https://webmin.com | sudo gpg --dearmor -o /usr/share/keyrings/debian-webmin-developers.gpg Use code with caution.