我正在尝试根据那里的说明安装docker: https://linuxconfig.org/how-to-install-docker-on-ubuntu-18-04-bionic-beaver
我正在运行以下命令:
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
并得到:
curl: (77) error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
gpg: no valid OpenPGP data found.
答案1
我运行了这个程序并且修复了我的证书存储:
$ sudo update-ca-certificates
答案2
我建议先运行以下命令来安装证书,然后再 -
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
我在下面的教程中记录了安装docker-ce的步骤。希望这会有所帮助 -
https://crunchytechbytz.wordpress.com/2018/06/25/how-to-install-docker-in-ubuntu-18-04/