Introduction
You may encounter the following error when updating or installing packages on an Ubuntu server:
W: An error occurred during the signature verification.
The repository is not updated and the previous index files will be used.
GPG error: https://wp-toolkit.plesk.com/cPanel/Ubuntu-22.04-x86_64/latest/wp-toolkit ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BA338AA6D9170F80
Procedure
To resolve this issue, run the following command in SSH as root to manually import the WP Toolkit GPG key:
curl -s https://wp-toolkit.plesk.com/cPanel/wp-toolkit-cpanel.gpg | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/wp-toolkit-cpanel.gpg --import && sudo chown _apt /etc/apt/trusted.gpg.d/wp-toolkit-cpanel.gpg
Comments
0 comments
Article is closed for comments.