반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

사진과 컴퓨터

[Ubuntu]Update시 warning띄우는 keyring 관련 문제 해결 본문

컴퓨터

[Ubuntu]Update시 warning띄우는 keyring 관련 문제 해결

주성 2023. 4. 25. 19:56

https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/

 

Fixing "Key is stored in legacy trusted.gpg keyring" Issue in Ubuntu

If you use a PPA or add an external repository in Ubuntu 22.04 and later versions, chances are that you will see a message like this: W: https://packagecloud.io/slacktechnologies/slack/debian/dists/jessie/InRelease: Key is stored in legacy trusted.gpg keyr

itsfoss.com

다음의 게시글을 참고했다.

 

 

$ sudo apt 명령어를 사용해 update, upgrade를 할 때마다

W: http://archive.ubuntu.com/ubuntu/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.
W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/6.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

다음과 같은 Warning 문구가 떠 신경쓰였다.

 

사용하는데는 별 문제가 없지만, 매번 update할 때 마다 신경쓰여서 이번에 해결하려고 한다.

 

간단하게 해결했다. /etc/apt/trusted.gpg에 있는 키를 /etc/apt/trusted.gpg.d에 복사해주면 끝이다.

 

$ sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d

이제 오류문구가 뜨지 않는다.

반응형