
我正在嘗試從那裡的說明安裝 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/