Debian 9更新源报错public key is not available 2024-07-05 Website News,Download Area 暂无评论 533 次阅读 在安装Debian 9之后修改了更新源。 ```csharp nano /etc/apt/sources.list ``` ```csharp deb http://archive.debian.org/debian/ stretch main contrib non-free deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free deb http://archive.debian.org/debian-security stretch/updates main contrib non-free ``` 但是在运行apt update后有错误提示: ```csharp http://archive.debian.org/debian stretch-proposed-updates InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 ``` 直接运行 ```csharp apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9 ``` 还是报错: ```csharp gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at '/run/user/0/gnupg/d.t8ijj64c7c8i79xe4g6whx9k/S.dirmngr' failed: No such file or directory gpg: keyserver receive failed: No dirmngr ``` 看报错信息没有dirmgr,于是就安装了一下: ```csharp apt install dirmngr ``` 安装完成后再运行上面的命令就可以正常完成。 同时再运行apt update就可以正常更新了 标签: Debian, debian 9, Stretch, public key is not available 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭