• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

GPG key 설정, repository 등록 문제

22.05.15 00:08 작성 조회수 2.77k

0

- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다)
- 이외의 문의등은 평생강의이므로 양해를 부탁드립니다
- 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
 
안녕하세요. 강의 감사히 잘 듣고 있습니다.
강의 환경인 aws ec2의 ubuntu 22.04 에서 실습중입니다.
강의와 다르게 Warning이 뜨는 부분이 있어서 질문드립니다.
 
1. [2분 51초] 3번 GPG key 설정 문제
- 입력
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 출력
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK
 
2. [3분 18초] 4번 docker repository 등록 문제
- 입력 1차
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
- 입력 2차(게시판 참고)
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- 1차, 2차 입력 출력
Description:
Archive for codename: focal components: stable
More info: https://download.docker.com/linux/ubuntu
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Get:5 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [16.7 kB]
Fetched 185 kB in 1s (170 kB/s)
Reading package lists... Done
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: Skipping acquire of configured file './binary-amd64/Packages' as repository 'https://download.docker.com/linux/ubuntu jammy InRelease' doesn't have the component '.' (component misspelt in sources.list?)
W: Skipping acquire of configured file './i18n/Translation-en' as repository 'https://download.docker.com/linux/ubuntu jammy InRelease' doesn't have the component '.' (component misspelt in sources.list?)
W: Skipping acquire of configured file './cnf/Commands-amd64' as repository 'https://download.docker.com/linux/ubuntu jammy InRelease' doesn't have the component '.' (component misspelt in sources.list?)
W: https://download.docker.com/linux/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
 
 
위처럼 Warning 문구가 뜨는 이유가 무엇인지 궁금합니다. 그리고 이대로 계속 진행해도 문제는 없을까요?
구글에 검색해봐도 전체적으로 무슨말인지 이해가 가지 않아서.. 상세한 설명 부탁드리겠습니다.
감사합니다.

답변 1

답변을 작성해보세요.

0

안녕하세요.

 

우선 Warning 은 수시로 뜨는 부분이라서, 크게 신경쓰지 않으셔도 됩니다. 보통은 버전이 업데이트되면서, 기존에 쓰던 함수등을 새로운 함수로 바꾸면서, 기존에 쓰던 함수도 지원은 하지만, 새로운 함수를 추천한다는 메세지를 Warning 에 넣는 경우도 많습니다. 하지만, 기존에 쓰던 함수는 계속 호환성을 위해서, 지원하기 때문에 이슈는 없습니다. 아예 Warning 메세지를 화면에 안보이게끔 하는 설정이 있을 때도 있을 정도로, Warning 메세지까지는 크게 고려하지는 않습니다.

 

다만, 강의에서 강하게 강조한 부분이, ubuntu 20.04 등 리눅스는 버전이 조금만 달라도,

심지어 명령까지 다른 경우가 있기 때문에, 버전을 동일하게 맞출 것을 추천을 드렸어요.

특히, 지금 Warning 메세지가 생소하거나, ubuntu 20.04 등 버전을 맞추지 않으면, 조금 다르게 나올 것이라는 부분에 대해 경험이 없으시다면, 버전이 조금이라도 달라서, 생기는 문제를 스스로 해결하기 어려울 수 있어요. 이 부분은 경험이 많이 쌓이면, 가능한 부분이긴 한데요. 이런 경험이 많지 않으시다면, 버전을 강의에서 이야기드리는 버전과 최대한 맞춰서 진행하시는 편이 훨씬 나으실꺼예요. 특히 ubuntu 버전은 20.04 등으로 해주시면 좀더 나으실 것 같습니다.

 

감사합니다.