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:
root@ubuntu:/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:
- Ubuntu 20.04 GPG: KeyServer receive failed: connection timed out when installing ROS configuration key
- Solve the error: gpg: keyserver receive failed: No dirmngr
- Google set proxy, ERR_PROXY_CONNECTION_FAILED
- Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect
- Synergy Ubuntu 18 + win7 timed out or new client is unresponsive
- RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
- Error: JMeter monitors Linux system performance java.net.ConnectException : Connection timed out: connect
- Putty:Network error:Connection timed out
- [resolved] exception java.net.ConnectException : Error opening socket to server Connection timed out.
- Resourceaccessexception: I / O error on post request for and connection timed out
- pycharm Failed to connect to github.com port 443: Timed out
- Solve the browser err_proxy_connection_failed problem
- An error is reported when an android phone visits the app webpage: net::ERR_PROXY_CONNECTION_FAILED
- A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
- When idea generates a spring boot project, error: read timed out appears
- NBU recovery report error socket read failed: errno = 119-System call timed out
- Linux’s method of clearing DNS cache and refreshing DNS in shell terminal (Ubuntu, Debian)
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- 3. Idea creates a springboot project, and spring initializer reports an error Error:connect timed out
- A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header