상세 컨텐츠

본문 제목

apt update 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다

linux

by codeon 2024. 7. 26. 10:51

본문

반응형

apt update

 

apt update 명령을 실행하면 중간에 아래와 같은 오류가 발생 될 수 있습니다

apt update
무시:1 https://apt.datadoghq.com stable InRelease
기존:2 https://apt.datadoghq.com stable Release
기존:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
기존:5 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
기존:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease
받기:7 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
기존:8 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
기존:9 https://ppa.launchpadcontent.net/ethereum/ethereum/ubuntu jammy InRelease
받기:10 http://archive.ubuntu.com/ubuntu bionic-security InRelease [102 kB]
오류:7 http://archive.ubuntu.com/ubuntu bionic InRelease
  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
받기:11 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB]
오류:10 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
오류:11 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
패키지 목록을 읽는 중입니다... 완료
W: GPG 오류: http://archive.ubuntu.com/ubuntu bionic InRelease: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not 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 오류: http://archive.ubuntu.com/ubuntu bionic-security InRelease: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-security InRelease' is not 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 오류: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not 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.

위 메세지에서 눈여겨 볼 부분은 : NO_PUBKEY 3B4FE6ACC0B21F32 이 부분 입니다. 현재 본인 서버에 3B4FE6ACC0B21F32 에 해당하는 공개키가 없어 아래 주소로 받는 다양한 것들을 인정할 수 없다는 이야기 입니다.

http://archive.ubuntu.com/ubuntu

 

해결 방법은 아주 간단하다 공개키를 등록해주면 됩니다.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.yS8uVixTCp/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
gpg: key 3B4FE6ACC0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

 

다시 한번 apt update 를 실행해주시면

/etc/apt# apt update
무시:1 https://apt.datadoghq.com stable InRelease
기존:2 https://apt.datadoghq.com stable Release
기존:4 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
받기:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
받기:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
기존:7 https://ppa.launchpadcontent.net/ethereum/ethereum/ubuntu jammy InRelease
기존:8 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
받기:9 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,888 kB]
받기:10 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
받기:11 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [672 kB]
받기:12 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [723 kB]
받기:13 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,108 kB]
받기:14 http://archive.ubuntu.com/ubuntu bionic-security InRelease [102 kB]
받기:15 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB]
받기:16 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1,007 kB]
받기:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
받기:18 http://archive.ubuntu.com/ubuntu bionic/main Translation-ko [215 kB]
받기:19 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
받기:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
받기:21 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
받기:22 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
받기:23 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64@2 Icons [29 B]
받기:24 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
받기:25 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9,156 B]
받기:26 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-ko [308 B]
받기:27 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
받기:28 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
받기:29 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,531 kB]
받기:30 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
받기:31 http://archive.ubuntu.com/ubuntu bionic/universe Translation-ko [458 kB]
받기:32 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB]
받기:33 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB]
받기:34 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB]
받기:35 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64@2 Icons [29 B]
받기:36 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
받기:37 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
받기:38 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-ko [492 B]
받기:39 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
받기:40 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
받기:41 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B]
받기:42 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
받기:43 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64@2 Icons [29 B]
받기:44 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [1,379 kB]
받기:45 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2,717 kB]
받기:46 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [467 kB]
받기:47 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [76.8 kB]
받기:48 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [31.1 kB]
받기:49 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [67.9 kB]
받기:50 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64@2 Icons [29 B]
받기:51 http://archive.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [33.0 kB]
받기:52 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1,317 kB]
받기:53 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [182 kB]
받기:54 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 DEP-11 Metadata [208 B]
받기:55 http://archive.ubuntu.com/ubuntu bionic-security/restricted DEP-11 48x48 Icons [29 B]
받기:56 http://archive.ubuntu.com/ubuntu bionic-security/restricted DEP-11 64x64 Icons [29 B]
받기:57 http://archive.ubuntu.com/ubuntu bionic-security/restricted DEP-11 64x64@2 Icons [29 B]
받기:58 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,303 kB]
받기:59 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [1,078 kB]
받기:60 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [308 kB]
받기:61 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [62.5 kB]
받기:62 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [35.8 kB]
받기:63 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [152 kB]
받기:64 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64@2 Icons [29 B]
받기:65 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [6,008 B]
받기:66 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19.8 kB]
받기:67 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [3,928 B]
받기:68 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
받기:69 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
받기:70 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
받기:71 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64@2 Icons [29 B]
받기:72 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3,044 kB]
받기:73 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1,666 kB]
받기:74 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [554 kB]
받기:75 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [297 kB]
받기:76 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [82.8 kB]
받기:77 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [154 kB]
받기:78 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64@2 Icons [29 B]
받기:79 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [39.7 kB]
받기:80 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1,347 kB]
받기:81 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [187 kB]
받기:82 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 DEP-11 Metadata [212 B]
받기:83 http://archive.ubuntu.com/ubuntu bionic-updates/restricted DEP-11 48x48 Icons [29 B]
받기:84 http://archive.ubuntu.com/ubuntu bionic-updates/restricted DEP-11 64x64 Icons [29 B]
받기:85 http://archive.ubuntu.com/ubuntu bionic-updates/restricted DEP-11 64x64@2 Icons [29 B]
받기:86 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,914 kB]
받기:87 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,663 kB]
받기:88 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [421 kB]
받기:89 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [304 kB]
받기:90 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [237 kB]
받기:91 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [521 kB]
받기:92 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64@2 Icons [29 B]
받기:93 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [25.6 kB]
받기:94 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [11.2 kB]
받기:95 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6,088 B]
받기:96 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
받기:97 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B]
받기:98 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2,638 B]
받기:99 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64@2 Icons [29 B]
내려받기 67.5 M바이트, 소요시간 32초 (2,132 k바이트/초)
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료

 

정상적으로 다양한 목록들을 받아볼수 있는 결과를 보실 수 있습니다.

반응형

관련글 더보기