ubuntu 1804 安装docker 报错 “gpg: no valid OpenPGP data found. ””(23) Failed writing body“


尝试使用get-docker.sh安装Docker时出现了以下报错,导致安装失败

fatwang@eva:~/docker/setup$ sudo sh get-docker.sh 
# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
+ sh -c 'apt-get update -qq >/dev/null'
+ sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null'
+ sh -c 'curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null'
Warning: apt-key output should not be parsed (stdout is not a terminal)
curl: (28) Connection timed out after 300011 milliseconds
gpg: no valid OpenPGP data found.
fatwang@eva:~/docker/setup$ sudo sh get-docker.sh 
# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
+ sh -c 'apt-get update -qq >/dev/null'
+ sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null'
+ sh -c 'curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key -no-tty add -qq - >/dev/null'
(23) Failed writing body

后通过使用阿里云镜像解决

sudo sh get-docker.sh --mirror Aliyun


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM