• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

리눅스용 도커 설치 3분 부분에서 명령어를 잘못 쳤습니다.

21.06.01 21:51 작성 조회수 368

0

명령어 손으로 따라치다보니.. (복사가 안되지 않나요? 저만 안되나요?)

아 이럴수가 저만 안되는가 싶어서 PDF 다시 가보니까 손모양으로 돼있는걸 편집 모양으로 바꾸니까 복사가 되네요..

시작부터 질문드리게 돼서 죄송합니다.

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

저 위에 amd 부분을 adm64로 적었습니다 ㅜㅜ

그것도 모르고 버전때문인가 설치 명령어가 바뀌었나 싶어서 막 이거저거 해봤는데 유심히 메시지를 보니까 

apt 업데이트 할 때 마다 adm64 라는 폴더가 생긴건지 아니면 어떤 흔적이 남았는지 그 부분에 대한 에러가 계속 나더라구요.

sudo apt update
Hit:1 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Fetched 214 kB in 0s (484 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
N: Skipping acquire of configured file 'stable/binary-adm64/Packages' as repository 'https://download.docker.com/linux/ubuntu focal InRelease' doesn't support architecture 'adm64'
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60
W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/docker.list:1

제가 생각하기로는..

"명령어를 잘못쳐서 어떤 폴더나 어떤 흔적같은게 생겼는데 apt업데이트가 그것을 업데이트 하려다가 실패하는구나." 라고 느끼고, 그럼 단지 저것만 문제일 뿐일테니 도커는 잘 설치 되겠구나 싶어서 설치는 잘 마친 상태입니다.

이대로 그냥 쓰면 되고, 다시 하면 실수 할 일 없겠고, 어차피 연습용이고, 진도도 따라갈 수 있고 상관 없지만..

저런 경우에 고칠 수 있는 방법이 있는지 최소한 무슨 에러인지라도 알고싶어서 질문 드리게 됐습니다.

답변 1

답변을 작성해보세요.

0

ㅎㅎㅎ 시작부터 질문을 하게 되어 죄송합니다. 라는 말에 ㅎㅎ 인간미가 느껴져서 재밌었습니다. 질문을 하시면서 스스로 답변을 하시는 부분도 재미있네요. pdf 는 당연히 복사가 되죠

지금 보여주신 부분만 봐서는 에러메세지가 없어보여서요. 패키지 정보를 업데이트하는 메세지로 보여서요. 어떤 에러메세지인지는 잘 모르겠어요.

보통은 리눅스는 수많은 패키지가 설치되어 있어서요. 자칫 업그레이드를 한다든지 뭔가 잘못 업데이트를 해서, 꼬일 수는 있어요. 이 때는 우선은 에러 메세지를 보고, 그 에러 메세지로 검색을 해봐야 알 수 있고요. 너무 특이한 에러 메세지라서 검색을 통해서도 잘 해결방안이 안보이는 경우도 있어요.

이 때는 그것을 억지로 고치다보면, 더 시스템이 꼬이기도 하기 때문에, 아예 새로 EC2 를 만들어서 새로 처음부터 시작하기도 합니다. 큰 이슈가 없다면, 그대로 진행하셔도 되고, 찝찝하시다면, 에러 메세지가 무엇인지 모르겠지만, 에러 메세지인지를 정확히 판단하셔서 에러 메세지로 검색해보시면 좋을 것 같습니다.