Solution notes when an error occurs when downloading docker gpg using curl

It is a solution memo when an error occurs when downloading docker gpg using curl.

$ curl -fsSL http://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
gpg: no valid OpenPGP data found.

You may be able to download it as follows

wget http://download.docker.com/linux/ubuntu/gpg
sudo apt-key add gpg

If you are in a proxy environment, specifying a proxy server as shown below may solve the problem.

$ curl http://download.docker.com/linux/ubuntu/gpg -x http://xxx.xxx.xxx.xxx:portno

reference

gpg: No valid OpenPGP data found Proxy setting with curl command

Recommended Posts

Solution notes when an error occurs when downloading docker gpg using curl
A reminder when an aapt.exe error occurs
[Rails] Solution when migration error occurs in acts-as-taggable-on
[No Method Error] Solution when new action occurs
[Error resolution] Occurs when trying to build an environment for spring with docker
When using a list in Java, java.awt.List comes out and an error occurs
Error when using SnapKit
When I bcrypt with node + docker, I got an error
When an error occurs even though validation is not set
An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04
Error when using rails capybara
Collecting client information when an error occurs in a web application
General error: 1812 occurs with docker + laravel
What to do and how to install when an error occurs in DXRuby 1.4.7
What to do if an error occurs when nokogiri enters when bundle install