๋งค๋ฒ ์์ ํ๊ธฐ ๊ท์ฐฎ์์, ๋์ค์ ์ฐพ์์ ์ฐ๋ ค๊ณ ๋์ ์ด๋ ๋ฉ๋ชจ
๋ณดํต GPGํค ์ง์ฐ๊ณ ๋ค์ ๋ฐ์ผ๋ฉด ๋๋ค.
๊ทธ๋ฐ ๋ ์ด ์๋ค. ๋ฌด์ฌ๊ฒฐ์ sudo apt-get update๋ฅผ ์คํํ๋ ์๊ฐ, ์๋ฌ๊ฐ ๋จ๋ ๋ .

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.31/deb InRelease: The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:[email protected]>
W: Failed to fetch https://pkgs.k8s.io/core:/stable:/v1.31/deb/InRelease The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Zorin OS๋ก ์ฒ์ ์ ๋ฌธํ ๋๋ ์ด๊ฑฐ ๋ง์ฃผ์น๋ฉด ๋ฒํฐ๋ค ๋ฒํฐ๋ค ํฌ๋งทํ๋๋ฐ, ์ด์ ๋ ๋ญ… ์ด๋์ ํค ๋ง๋ฃ๋๋๋ณด๋ค ํ๊ณ ๊ทธ๋ ค๋ ค๋ ํ๋ค. =ใ =);
์๋ ๋ช
๋ น์ด๋ฅผ ์น๋ฉด, ์ด๋ฒ ์ผ์ด์ค๋ keyrings ๋๋ ํ ๋ฆฌ์ sources.list.d ๋๋ ํ ๋ฆฌ๋ง ์ดํด๋ณด๋ฉด ๋๋๋ค.
tree /etc/apt/ -L 1
# /etc/apt/
# โโโ apt.conf.d
# โโโ auth.conf.d
# โโโ keyrings
# โโโ preferences.d
# โโโ sources.list
# โโโ sources.list.d
# โโโ sources.list.distUpgrade
# โโโ trusted.gpg.d
# โโโ trusted.gpg~
# 7 directories, 3 files
๊ทธ์ ์ค๋ฅ๊ฐ ๋ ํ์ผ์ ์ด์ด, GPG Key์ ์์น๋ฅผ ํ์ธํ๊ณ ํด๋น ํจํค์ง๋ฅผ ์ค์นํ ๊ธฐ์ต์ ๋์๊ธฐ๋ฉด ๋๋ค.
ls /etc/apt/sources.list.d
# docker.list.distUpgrade kubernetes.list ubuntu-esm-infra.sources
# gns3-ubuntu-ppa-lunar.list.distUpgrade microsoft-edge.list ubuntu.sources
# gns3-ubuntu-ppa-lunar.sources microsoft-prod.list.distUpgrade vscode.list.distUpgrade
# graphics-drivers-ubuntu-ppa-kinetic.list.distUpgrade microsoft-prod.sources vscode.sources
# graphics-drivers-ubuntu-ppa-kinetic.sources tailscale.list.distUpgrade yarn.list.distUpgrade
# graphics-drivers-ubuntu-ppa-noble.sources third-party.sources yarn.sources
# helm-stable-debian.list ubuntu-esm-apps.sources
cat /etc/apt/sources.list.d/kubernetes.list
# deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.31/deb/ /
๊ทธ๋ฌ์ง. kubectl ์ฐ๊ฒ ๋ค๊ณ ์ค์นํ์๊ตฌ๋.
์ฅ์ญ ์ง์ด๋ค.
sudo rm /etc/apt/keyrings/kubernetes-apt-keyring.gpg
์ค์น ๊ฐ์ด๋๋๋ก ์์ ํ ๋ค์ ํค ๋ฐ์์ dearmorํ๊ณ , ๊ฒฝ๋ก์ ๋์.

curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
sudo chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg # allow unprivileged APT programs to read this keyring
๊ทธ์ ์๋๋ค.

sudo apt-get update
# Hit:1 https://packages.microsoft.com/repos/edge stable InRelease
# Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease
# Hit:4 http://kr.archive.ubuntu.com/ubuntu noble InRelease
# Hit:5 https://baltocdn.com/helm/stable/debian all InRelease
# Hit:2 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.31/deb InRelease
# Hit:6 http://kr.archive.ubuntu.com/ubuntu noble-updates InRelease
# Hit:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
# Hit:8 http://kr.archive.ubuntu.com/ubuntu noble-backports InRelease
# Hit:9 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu noble InRelease
# Hit:10 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
# Hit:11 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
# Hit:12 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
# Reading package lists... Done
sudo apt-get upgrade
# Reading package lists... Done
# Building dependency tree... Done
# Reading state information... Done
# Calculating upgrade... Done
# The following upgrades have been deferred due to phasing:
# file-roller python3-distupgrade shotwell shotwell-common ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
# 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
๊ทธ๋ฆฌ๊ณ ๋ฑํ ์ ๊ทธ๋ ์ด๋ํด์ผํ ๊ฒ๋ ์์๋ค.
…
์๋ง, ์์ ๊ธ์ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 234654DA9A296436 ์จ๋ ๋๋ค๊ณ ์๋๋ฐ,
์ด๊ฑด deprecated ๋ฐฉ์์ด๋ผ ์ข ๊บผ๋ ค์ง๋ค.
๋ฌผ๋ก ์ค์น ์๋ด๋ฌธ์ ์๋ ๋ด์ฉ๋ ์๋๊ณ , ํค๊ฐ ๋ ๋ฐ๋ก ๋๊ฒ๋๋ค.
sudo apt-key list
# Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
# /etc/apt/trusted.gpg
# --------------------
# pub rsa2048 2022-08-25 [SC] [expires: 2026-12-29]
# DE15 B144 86CD 377B 9E87 6E1A 2346 54DA 9A29 6436
# uid [ unknown] isv:kubernetes OBS Project <isv:[email protected]>
์๊ทธ๋๋ ์ง๊ธ Authentication ์ ๋ฆฌ๋ฅผ ๋ฏธ๋ค์ ์๋ฉ ์์๋๋ฐ, ์๋ ๋ฉ๋ด๋ก ์ง์
ํด์ ์ง์ ๋ค.
๋ด GUI๊ธฐ์ค์ผ๋ก๋ Software & Updates ์ด๋ค.

์ด์ฐจํผ ํด๋น ํ์ผ์ด ๋ ์๊ฐ์ด๋, ์ง์ ์ ์ด๋ ฅ์ /etc/apt/trusted.gpg\~ ์ ๋จ์์๋ค.
kkumtree
Source code on GitHub
ยฉ 2025 kkumtree and contributors All rights reserved.
Licensed under
CC BY-NC-ND 4.0