검색결과 리스트
IT 등/리눅스 관련에 해당되는 글 10건
글
ubuntu 22.04 에서 upgrde 시 apt-key DEPRECATION 오류 해결
IT 등/리눅스 관련
2023. 2. 5. 11:12
최근 운영중인 우분투에서 업데이트/업그레이드 를 하려니 오류가 났다.
업데이트 명령은 다음과 같다.
root@ras:/home/user# apt-get update && apt-get upgrage -y
저렇게 명령을 내리면 다음 오류가 난다.
Hit:1 http://download.zerotier.com/debian/jammy jammy InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
W: http://download.zerotier.com/debian/jammy/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.
E: Invalid operation upgrage
오류가 나면 해결해야지. 스택오버플로우를 확인해본다.
역시나 답이 있었다.
https://askubuntu.com/questions/1398344/apt-key-deprecation-warning-when-updating-system
두가지 답이 제시되었는데, 하나는 복잡하고 그중 짧은 것으로 해보자. 이게 쉽다.
root@ras:/home/user# cd /etc/ap
apache2/ apparmor/ apparmor.d/ apport/ apt/
root@ras:/home/user# cd /etc/apt
root@ras:/etc/apt# cp trusted.gpg trusted.gpg.d
root@ras:/etc/apt#
뭔가 됐겠지 하며 업데이트/업그레이드 명령을 내려보면 오류가 난다.
root@ras:/etc/apt# apt-get update && apt-get upgrage -y
Hit:1 http://download.zerotier.com/debian/jammy jammy InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
E: Invalid operation upgrage
그래서 업데이트 따로, 업그레이드 따로 명령을 내려본다. 이제 해결되었다.
root@ras:/etc/apt# apt-get update
Hit:1 http://download.zerotier.com/debian/jammy jammy InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
root@ras:/etc/apt# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mesa-va-drivers mesa-vdpau-drivers python3-software-properties
software-properties-common update-notifier-common
The following packages will be upgraded:
kbd libdrm-amdgpu1 libdrm-common libdrm-nouveau2 libdrm-radeon1 libdrm2
snapd systemd-hwe-hwdb ubuntu-advantage-tools
9 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 22.2 MB of archives.
After this operation, 339 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 kbd arm64 2.3.0-3ubuntu4.22.04 [239 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 ubuntu-advantage-tools arm64 27.13.3~22.04.1 [171 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libdrm-common all 2.4.113-2~ubuntu0.22.04.1 [5450 B]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libdrm2 arm64 2.4.113-2~ubuntu0.22.04.1 [39.1 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libdrm-amdgpu1 arm64 2.4.113-2~ubuntu0.22.04.1 [19.8 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libdrm-nouveau2 arm64 2.4.113-2~ubuntu0.22.04.1 [17.5 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libdrm-radeon1 arm64 2.4.113-2~ubuntu0.22.04.1 [21.2 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 snapd arm64 2.58+22.04 [21.7 MB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 systemd-hwe-hwdb all 249.11.2 [2680 B]
Fetched 22.2 MB in 5s (4033 kB/s)
Preconfiguring packages ...
(Reading database ... 188749 files and directories currently installed.)
Preparing to unpack .../0-kbd_2.3.0-3ubuntu4.22.04_arm64.deb ...
Unpacking kbd (2.3.0-3ubuntu4.22.04) over (2.3.0-3ubuntu4) ...
Preparing to unpack .../1-ubuntu-advantage-tools_27.13.3~22.04.1_arm64.deb ...
Unpacking ubuntu-advantage-tools (27.13.3~22.04.1) over (27.12~22.04.1) ...
Preparing to unpack .../2-libdrm-common_2.4.113-2~ubuntu0.22.04.1_all.deb ...
Unpacking libdrm-common (2.4.113-2~ubuntu0.22.04.1) over (2.4.110-1ubuntu1) ...
Preparing to unpack .../3-libdrm2_2.4.113-2~ubuntu0.22.04.1_arm64.deb ...
Unpacking libdrm2:arm64 (2.4.113-2~ubuntu0.22.04.1) over (2.4.110-1ubuntu1) ...
Preparing to unpack .../4-libdrm-amdgpu1_2.4.113-2~ubuntu0.22.04.1_arm64.deb ...
Unpacking libdrm-amdgpu1:arm64 (2.4.113-2~ubuntu0.22.04.1) over (2.4.110-1ubuntu1) ...
Preparing to unpack .../5-libdrm-nouveau2_2.4.113-2~ubuntu0.22.04.1_arm64.deb ...
Unpacking libdrm-nouveau2:arm64 (2.4.113-2~ubuntu0.22.04.1) over (2.4.110-1ubuntu1) ...
Preparing to unpack .../6-libdrm-radeon1_2.4.113-2~ubuntu0.22.04.1_arm64.deb ...
Unpacking libdrm-radeon1:arm64 (2.4.113-2~ubuntu0.22.04.1) over (2.4.110-1ubuntu1) ...
Preparing to unpack .../7-snapd_2.58+22.04_arm64.deb ...
Unpacking snapd (2.58+22.04) over (2.57.5+22.04ubuntu0.1) ...
Preparing to unpack .../8-systemd-hwe-hwdb_249.11.2_all.deb ...
Unpacking systemd-hwe-hwdb (249.11.2) over (249.11.1) ...
Setting up snapd (2.58+22.04) ...
Installing new version of config file /etc/apt/apt.conf.d/20snapd.conf ...
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status snapd.mounts-pre.target' for details.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
Setting up systemd-hwe-hwdb (249.11.2) ...
Setting up kbd (2.3.0-3ubuntu4.22.04) ...
Setting up ubuntu-advantage-tools (27.13.3~22.04.1) ...
Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf ...
Installing new version of config file /etc/ubuntu-advantage/help_data.yaml ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
Setting up libdrm-common (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libdrm2:arm64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libdrm-amdgpu1:arm64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libdrm-nouveau2:arm64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libdrm-radeon1:arm64 (2.4.113-2~ubuntu0.22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for udev (249.11-0ubuntu3.6) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
Failed to check for processor microcode upgrades.
Restarting services...
systemctl restart minidlna.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ras:/etc/apt#