大器免成

道可道,check out.

当前显示的标签为: 「apt-key」的博文

从apt-key密钥导出到GPG密钥

首先查看所有apt-key $ sudo apt-key list 在所有列表里,找到pub这一行,最后8个字符,比如ACCC4CF8,就是导出的ID 执行导出 $ apt-key export ACCC4CF8 | sudo gpg --dearmour -o /usr/share/keyrings/pgdg.gpg 编辑源文件,/etc/apt/sources.list.d/pgdg.list 把deb http://apt.postgresql.org/pub/repos/apt jammy-pgdg main修改为deb [arch=amd64 signed-by=/usr/share/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt jammy-pgdg main 最近移除旧有的apt-key $ sudo apt-key del ACCC4CF8 来源: https://askubuntu.com/questions/1403556/key-is-stored-in-legacy-trusted-gpg-keyring-after-ubuntu-22-04-update......