GPG and Apt-Key make agents that do not read directly from the terminal set up and need to be set separately. Keyserver timed out when trying to add a GPG public key – Unix & Linux Stack Exchange
for example, the default command is:
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys SOMEKEY
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys AKEYXXX
The error of not setting the agent is as follows:
[email protected]:/home/zhang# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
Executing: /tmp/apt-key-gpghome.ar8g11QK0Q/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
gpg: keyserver receive failed: Connection timed out
Set the agent as follows:
gpg --keyserver-options http-proxy=test.com:8080/" --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys SOMEKEY
apt-key adv --keyserver-options http-proxy=test.com:8080/" --keyserver hkp://keyserver.ubuntu.com --recv-keys AKEYXXX
div>
Read More:
- How to Solve apt get update problem: usr/lib/apt/methods/HTTPS could not be found_PUBKEY 7EA0A9C3F273FCD8
- Err:1 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu xxxxxx 404 Not Found [IP: 101.6.8.193 80]
- Ubuntu 20.04 GPG: KeyServer receive failed: connection timed out when installing ROS configuration key
- The routine of benewake tfmini-s / tfmimi plus / tfluna / tf02 Pro / tf03 radar on Python
- Solve the error: gpg: keyserver receive failed: No dirmngr
- Errors occured, no packages were upgraded. ⇒ ERROR: Failed to install packages to new root.
- Nginx: recv() failed (104: connection reset by peer) troubleshooting
- An error is reported when an android phone visits the app webpage: net::ERR_PROXY_CONNECTION_FAILED
- Google set proxy, ERR_PROXY_CONNECTION_FAILED
- TensorFlow: InternalError: Blas SGEMM launch failed
- Git clone appears fatal: unable to access’ https://github.com/… The solution to the problem
- Resolve – keyerror encountered while installing tensorflow GPU: ‘tensorflow’ error
- Error: Failed to synchronize cache for repo ‘fedora’
- SSL_ERROR_SYSCALL in connection to github.com:443
- [Linux] curl: (7) failed to connect to 127.0.0.1 port 1086: connection reused solution
- Failed to commit changes to dconf: the connection is closed
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- 【wget failed】Connecting to 127.0.0.1:7890… failed: Connection refused.
- Python TCP socket programming: send returns broken pipe error?
- Error: Gradle project sync failed. Please fix your project and try again.