나는 docker
데비안 9.11 "stretch"에 설치하기 위해 다음 지침을 따랐습니다.
https://docs.docker.com/engine/install/debian/
내 파일은 /etc/apt/sources.list
다음과 같습니다
deb http://repo.myloc.de/debian stretch main non-free contrib
deb-src http://repo.myloc.de/debian stretch main non-free contrib
deb http://repo.myloc.de/debian-security stretch/updates main
deb-src http://repo.myloc.de/debian-security stretch/updates main
deb http://repo.myloc.de/debian stretch-updates main
deb-src http://repo.myloc.de/debian stretch-updates main
deb https://download.docker.com/linux/debian stretch stable
#deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
주문하다
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
주어진
OK
하지만 apt update
결과는
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://get.docker.com/ubuntu docker Release: The following signatures were invalid: 36A1D7869245C8950F966E92D8576A8BA88D21E9
W: Failed to fetch https://get.docker.com/ubuntu/dists/docker/Release.gpg The following signatures were invalid: 36A1D7869245C8950F966E92D8576A8BA88D21E9
W: Some index files failed to download. They have been ignored, or old ones used instead.
거기에 언급이 있어서 혼란스럽긴 ubuntu
하지만 아마 괜찮을 것 같아요.
편집: 의견에 추가 정보가 요청됨
> uname -a
Linux b028 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux
> grep ^deb /etc/apt/sources.list.d/*
/etc/apt/sources.list.d/docker.list:deb https://get.docker.com/ubuntu docker main
/etc/apt/sources.list.d/docker.list.save:deb https://get.docker.com/ubuntu docker main
/etc/apt/sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_0.12 wheezy main
/etc/apt/sources.list.d/nodesource.list:deb-src https://deb.nodesource.com/node_0.12 wheezy main
/etc/apt/sources.list.d/nodesource.list.save:deb https://deb.nodesource.com/node_0.12 wheezy main
/etc/apt/sources.list.d/nodesource.list.save:deb-src https://deb.nodesource.com/node_0.12 wheezy main
이 디렉토리의 내용은 sources.list.d
오류의 잔재일 수 있습니다. 어쩌면 삭제해야 할 수도 있습니다.
답변1
예, 아래 docker 저장소를 삭제해야 합니다 /etc/apt/sources.list.d/
(이것은 유효한 docker 저장소가 아니며 docker 설치 스크립트의 URL입니다).
sudo rm /etc/apt/sources.list.d/docker.list{,.save}
그런 다음 다음을 편집하세요 sources.list
.
sudo apt edit-sources
다음 줄을 변경하십시오.
deb https://download.docker.com/linux/debian stretch stable
도착하다
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
그런 다음 다음을 실행하십시오.
sudo apt update
sudo apt install docker-ce