반응형
1. 에러 메세지 및 상황
Tensorflow 공식 이미지를 Base로 한 Container 내에서 apt-get update 및 install 실행 시 에러 발생
root@711bb358c1dc:/# apt-get update
Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease [1575 B]
Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Ign:2 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease
Hit:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is no longer signed.
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.
주된 에러
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is no longer signed.
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.
2. 원인
원인 : Nvidia측에서 GPG Public Key를 교체 중에 있음. (링크1)
3. 해결
GPG Public Key를 수동으로 교체를 해야 함.(링크2)
Dockerfile에 해당 소스코드 추가 후 빌드 (Debian계열이 아니라면 위의 링크1의 내용을 참고하여 수행! )
** 필수확인 : 명령어 중간의 OS버전은 본인 환경에 맞게 바꿔 줄 수 있도록!
### Dockerfile의 경우엔 이 한 줄 추가
RUN apt-key del 7fa2af80 && apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/3bf863cc.pub
### 로컬 혹은 서버에서 직접 수행 할 경우엔 아래 두개의 명령어 실행
$ apt-key del 7fa2af80
$ apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/3bf863cc.pub
반응형
'Development > Docker' 카테고리의 다른 글
[Docker] iptables: No chain/target/match by that name 에러 해결 (0) | 2022.06.07 |
---|---|
[Docker] RTX3090(or RTX30--)에서 Tensorflow 1(1.15) 실행 환경 구현 (NGC) (0) | 2022.05.12 |
[Docker] 도커 이미지와 컨테이너 조회 및 삭제 방법 (사용X 포함) (0) | 2022.05.10 |
[Docker] 컨테이너의 Jupyter Notebook 기본 Shell을 bash로 변경 및 설정하는 방법 (0) | 2022.05.10 |
[Docker] WARNING: Retrying after connection broken by NewConnectionError 문제 해결 (0) | 2022.05.04 |
댓글