Installing Webmin on Ubuntu 22.04 server

As a follow up to my notes on installing Webmin on Ubuntu 16.04 and 18.04 (on 20.04 it worked as in 18.04) now two additional steps are necessary for Ubuntu 22.04. Those steps must be executed as root:

  1. Convert Webmin’s PGP key to a format that apt can use to verify files:
    cat jcameron-key.asc | gpg --dearmor -o /usr/share/keyrings/webmin.gpg
    
  2. Add that key to the entry in webmin.list like this:
    deb [signed-by=/usr/share/keyrings/webmin.gpg] https://download.webmin.com/download/repository sarge contrib
    

    I got that from a tutorial by DigitalOcean.