Moonie

[에러 해결] W: GPG error: https://download.docker.com/linux/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 본문

공부/에러 해결

[에러 해결] W: GPG error: https://download.docker.com/linux/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8

Moonie' 2024. 2. 20. 23:15
반응형

ubuntu 22.0.4.3 버전에서 docker 환경을 설정하던 중 에러가 나타났다!

여러가지 문제를 검색해 찾아보았지만 전혀 해결되지 않았다...

GPT 4.0에게 물어보니 해결해 주었다!

내용은 다음과 같다.

 

복사 붙여넣기 하기 쉽게 올려둡니다.

1. GPG 키를 다운로드하고 저장소에 추가

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

 

2. 그 다음, Docker 저장소를 /etc/apt/sources.list.d/docker.list에 추가할 때, 다음과 같이 키 파일을 명시해야 합니다. 아래는 Docker 저장소를 추가하는 일반적인 명령 예시입니다. 여러분의 시스템 설정에 따라 이 명령을 조정해야 할 수도 있습니다:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

 

3. 마지막으로, 패키지 목록을 업데이트합니다:

sudo apt-get update

 

결과로 update가 잘 되는 것을 확

인 하였다.

반응형
Comments