关于Riscv板载Linux公钥问题[ GPG: Error ]老报错的解决方案

​ 本人使用过的一块n4板卡上搭载了Linux系统,但由于初始的公钥问题老是报错,
使得软件源无法得到更新,之前在某个非常偏僻的网站上翻到了一种可行的办法,
但文章后来被删了,于是赶紧记录下来

换源:

vi /etc/apt/sources.list

将内容替换为:

# binary default
deb [trusted=yes] http://ftp.ports.debian.org/debian-ports/ unstable main
# deb http://incoming.ports.debian.org/buildd/ unstable main
deb [trusted=yes] http://ftp.ports.debian.org/debian-ports/ unreleased main

# contrib and non-free arch:all packages (i.e. firmware)
deb [arch=all] http://ftp.debian.org/debian/ unstable contrib non-free

# source
# deb-src http://ftp.debian.org/debian/ unstable main
# deb-src http://incoming.debian.org/debian-buildd/ buildd-unstable main

然后在命令行:

wget http://ftp.ports.debian.org/debian-ports/pool/main/d/debian-ports-archive-keyring/debian-ports-archive-keyring_2019.11.05_all.deb
dpkg -i debian-ports-archive-keyring_2019.11.05_all.deb

最后update upgrade即可

apt update
apt upgrade

完美解决我的问题~
希望能对其他的状况有所帮助。
非常的人性化~

posted @ 2020-08-11 16:48  roinxxX  阅读(259)  评论(0编辑  收藏  举报