[英]Install docker on debian stretch
我遵循 docker 官方教程https://docs.docker.com/engine/install/ubuntu/ 中的指導方針,指向Install using the repository
但在向 /etc/apt/sources.list.d/ 添加新的 apt 源條目后docker.list
deb [arch=amd64] signed=by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian stretch stable
root@aruba-cloud:~/mgr-project# apt-get update
Ign:1 http://ftp.uk.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://ftp.uk.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.uk.debian.org/debian stretch Release
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://download.docker.com/linux/debian/dists/stretch/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
我添加了 Docker 的官方 GPG 密鑰,所以根據教程這不應該發生。 我的問題是 - 我做錯了什么?
您必須先安裝apt-transport-https
和ca-certificates
包。
apt-get install apt-transport-https ca-certificates
如果這沒有幫助,您必須手動修復您的/etc/apt/sources.list.d/
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.