运维&Ubuntu系列:修复 Key is stored in legacy trusted.gpg keyring

修复 Key is stored in legacy trusted.gpg keyring




修复 Key is stored in legacy trusted.gpg keyring

升级ubuntu22.04之后更新源遇到“Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details” 这个警告,解决方法如下:

首先查看key list,找到警告相关源的key

$ apt-key list
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8
posted @ 2024-07-30 16:53  坦笑&&life  阅读(11)  评论(0编辑  收藏  举报  来源