In Ubuntu, I'd encountered the following error when doing a apt-get update : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F7E06F06199EF2F2 This key belongs to the repository https://qgis.org/ubuntu. To add the key, I did the following: sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 F7E06F06199EF2F2 By default, the command above will called gpg which uses port 11371. I had to force command to use port 80 instead. Also, please also pay attention that the protocol is called "hkp://" Ref: https://askubuntu.com/questions/1119727/gpg-keyserver-receive-failed-connection-timed-out