date:

关于Riscv板载Linux公钥问题老报错的resolve


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

换源:

1
vi /etc/apt/sources.list

将内容替换为:

1
2
3
4
5
6
7
8
9
10
11
# 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

然后在命令行:

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

最后update upgrade即可

1
apt update
1
apt upgrade

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


← Prev Keil5-C51-安装教程 | Linux-[sh]脚本语法 Next →
||
照片 | Picture
微信 | WeChat