Armbian 更新 报GPG error 报错解决办法。

我在Debian 11 bullseye更新遇到没有Key的问题。

报错代码如下:

Get:6 https://github.armbian.com/configng stable InRelease [3,255 B]

Err:6 https://github.armbian.com/configng stable InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5

Reading package lists... Done

W: GPG error: https://github.armbian.com/configng stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5

E: The repository 'https://github.armbian.com/configng stable InRelease' is not signed.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

分析缺少PUBKey,尝试过网上各种手动创建Key的办法,执行apt update,仍然报错,分析日志后得出,主要是基于armbian-config报错,不知道是否是新版本配置器更新为configurator,造成错误,不过armbian-config仍可使用。

在armbian Github官网找到解决办法。

wget -qO- https://imola.armbian.com/apt/armbian.key | gpg --dearmor | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] https://armbian.github.io/configurator stable main" | sudo tee /etc/apt/sources.list.d/armbian-development.list > /dev/null

解决问题。apt update 无报错。