> printf "%s %s %s %s %s\n" \
"deb" \
"[arch=amd64]" \
"https://download.docker.com/linux/ubuntu" \
"$(lsb_release -cs)" \
"stable" \
> /tmp/docker.list
> sudo install \
--mode=a=r,u+w \
/tmp/docker.list \
/etc/apt/sources.list.d
> rm /tmp/docker.list
Problem description
apt-key(8)aptexpects keys from packages to be put inside/etc/apt/trusted.gpg.d.gpg.ascProblem location
File: https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
apt-keywhich is deprecated on modern systems.Suggestions for a fix
apt-keycommand should not be used in the instructions.(As a single command-line)
sudo curl -LR https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/trusted.gpg.d/docker.gpg.asc
-fsSflags tocurlshould not be used so the user has visual feedback and can retry in case of failures./etc/apt/trusted.gpg.dending in.ascto indicate an ASCII-armored key toapt.apt-key list docker
Related reports
#1218, #8298, #9373, #10285, and maybe #10333?