运维&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
升级ubuntu
到22.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