'ubuntu docker not found'에 해당되는 글 1건

  1. 2022.03.02 ubuntu18 doker설치 관련 에러(repository 문제) 1

ubuntu18에 doker설치 중 doker 레파지토리를 지정하는 명령어

 

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

실행 후 

sudo apt-get update && sudo apt-cache search docker-ce

도커 설치를 하려고 할때 아래와 같은 에러가 발생되는 경우 설정을 변경 해줘야 합니다.

sudo apt-get update && sudo apt-cache search docker-ce
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://packages.cloud.google.com/apt cloud-sdk-buster InRelease
Hit:3 http://deb.debian.org/debian buster InRelease                 
Hit:4 http://deb.debian.org/debian buster-updates InRelease         
Get:5 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-buster InRelease [5553 B]
Hit:6 http://deb.debian.org/debian buster-backports InRelease       
Hit:7 http://packages.cloud.google.com/apt google-compute-engine-buster-stable InRelease
Ign:8 https://download.docker.com/linux/ubuntu buster InRelease
Err:9 https://download.docker.com/linux/ubuntu buster Release
  404  Not Found [IP: 99.86.146.98 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

위의 에러가 발생된 경우 /etc/apt/sources.list 파일을 확인 해보면

cat 혹은 vi 명령으로 확인

deb-src [arch=amd64] https://download.docker.com/linux/ubuntu buster stable

으로 설정이 되어 있습니다. download관련 url이 직접 접속도 허용 하기 때문에 해당 경로에 방문 해보면

레파지토리 목록

와 같이 buster 폴더가 없는 상태 일 수 있습니다. 

https://forums.docker.com/t/cant-install-docker-on-ubuntu-20-04/93058/3

 

Can't install docker on Ubuntu 20.04

I haven’t upgraded to 20 yet, but this happened to me with several packages in early days of earlier releases. They just haven’t officially released a focal version yet. This is untested but you can try using their package for ubuntu 19.10 by manually

forums.docker.com

http://daplus.net/ubuntu-docker-%EC%A0%80%EC%9E%A5%EC%86%8C%EC%97%90-ubuntu%EC%97%90%EC%84%9C-apt-get-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8-%EC%8B%A4%ED%96%89%EC%8B%9C-%EB%A6%B4%EB%A6%AC%EC%8A%A4-%ED%8C%8C%EC%9D%BC/

 

[ubuntu] Docker 저장소에 Ubuntu에서 apt-get 업데이트 실행시 릴리스 파일이 없음 - 리뷰나라

Ubuntu 16.10을 사용하고 있으며 여기에 있는 지침에 따라 Xenial 빌드를 사용하여 최근에 Docker (v1.12.4)를 설치 했습니다 . 컨테이너를 만드는 데 문제가 발생하지 않았으며 자동으로 다시 시작되는지

daplus.net

내용을 보면 해당 버전의 이미지가 아직 업로드 안된경우 $(lsb_release -cs) 이 명령으로 자신의 ubuntu 버전과 맞는

설정을 지정 하게 되어 있는데 해당 버전의 이미지가 없는 경우로 생각 됩니다.

(리눅스 콘솔에서 lsb_release -cs 명령어 실행시 buster라고 출력되고 lsb_release -a 명령어 실행시 리눅스 버전 상세 정보를 얻을 수 있습니다.)

 

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable"

경로를 cosmic로 변경 후 설치를 시도 했는데 설치는 정상적으로 가능 합니다.

 

도커 사용중 버전 문제가 발생되는 경우 해당 글을 갱신 하도록 하겠습니다.

반응형

'OS > 리눅스' 카테고리의 다른 글

alias 명령어 별칭 만들기  (0) 2022.03.04
ubuntu docker 설치  (0) 2022.03.02
systemd.timer crontab대체  (0) 2022.02.24
crontab 명령어 실행시 계정 변경  (0) 2017.06.21
링크 폴더 생성  (0) 2016.11.22
Posted by 질주하는구
,