Aug
27
"Key is stored in legacy trusted.gpg keyring” 问题解决
这只是一个警告,但看着不爽.
解决方法:
输出
然后执行
其中 0EBFCD88 就是docker的公钥的最后八位.
解决方法:
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]
/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的公钥的最后八位.