how to replace apt-key for webmin in ubuntu 20.04 (because apparently apt-key
is deprecated)?
before (bash script):
wget -q https://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
sudo apt install webmin
now error:
gpg: no valid OpenPGP data found
I tried with this, but it doesn't work (bash script):
wget -qO - https://www.webmin.com/jcameron-key.asc | sudo gpg --dearmor | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/webmin.gpg --import -
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
sudo apt install webmin
Note: with or without sudo gpg --dearmor
or http/https
new error:
GPG error: http://download.webmin.com/download/repository sarge Release: The following signatures could not be verified because their public key is not available: NO_PUBKEY D97A3AE911F63C51
how do i fix it (bash script)? thanks
sudo apt update
do you get error : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D97A3AE911F63C51 ? – WaLid LamRaoui Nov 09 '21 at 22:59