How to fix Webmin repo: NO_PUBKEY 2D223B918916F2A2

SYSTEM INFORMATION
OS type and version Ubuntu 22.04.2
Webmin version 2.100

W: GPG error: Index of /download/newkey/repository stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2D223B918916F2A2
E: The repository ‘https://download.webmin.com/download/newkey/repository stable Release’ 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.

Please use a descriptive title.

1 Like

I am receiving the same error when trying to upgrade another package. Apparently the ‘’‘apt-get update’‘’ command is getting these errors when trying to update.

Hello,

This is a known and already fixed bug in upstream code.

The fix to this issue is as simple as:

wget https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh

Thank you. I have been update/upgrading for more than 3 years now so I was assuming I had inherit all upstream code… probably some reading I missed.
But now it says…
E: Conflicting values set for option Signed-By regarding source https://download.webmin.com/download/newkey/repository/ stable: /usr/share/keyrings/debian-webmin-developers.gpg != /usr/share/keyrings/ubuntu-webmin-developers.gpg
E: The list of sources could not be read.
Any tips here?
Thank you
Julio
P.S. I am running Ubuntu 22.04.2 and Webmin 2.100

Yeah, check and clean APT config files. Search for whatever APT config files contain webmin string, e.g.:

grep -Rsi webmin /etc/apt

All good now indeed. Thank you!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.