Aug 27

"Key is stored in legacy trusted.gpg keyring” 问题解决 不指定

bkkkd , 09:43 , 有感而发 , 评论(0) , 引用(0) , 阅读(121) , Via 本站原创 | |
这只是一个警告,但看着不爽.
解决方法:
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   rsa4096 2017-02-22 [SCEA]
      9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid           [ unknown] Docker Release (CE deb)
sub   rsa4096 2017-02-22 [S]

/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc
------------------------------------------------------------
pub   rsa4096 2023-01-21 [SC] [expires: 2031-01-19]
      B8B8 0B5B 623E AB6A D877  5C45 B7C5 D7D6 3509 47F8
uid           [ unknown] Debian Archive Automatic Signing Key (12/bookworm)
sub   rsa4096 2023-01-21 [S] [expires: 2031-01-19]


然后执行
apt-key export 0EBFCD88 |gpg --dearmour -o /etc/apt/trusted.gpg.d/docker.gpg

其中 0EBFCD88 就是docker的公钥的最后八位.
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]