上一篇 下一篇 分享链接 返回 返回顶部

Debian9更换可用脚本源

发布人:管理员 发布时间:2025-03-02 11:20 阅读量:154

Debian9更换可用软体源

由于debian9 停止维护,目前可用的软体源如下:

deb http://archive.debian.org/debian/ stretch main contrib non-freedeb-src

http://archive.debian.org/debian/ stretch main contrib non-freedeb

http://archive.debian.org/debian-security/ stretch/updates main contrib

non-freedeb-src http://archive.debian.org/debian-security/ stretch/updates main

contrib non-freedeb http://archive.debian.org/debian/ stretch-backports main

contrib non-free

1.设置软体源

cat >/etc/apt/sources.list<

2.刷新软体源: apt update -y

3.提示gpg证书错误处理

报错情报:

W: GPG error: http://archive.debian.org/debian stretch-backports InRelease:

The following signatures couldn't be verified because the public key is not

available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9

安装需要的依赖和软体:

apt-get install software-properties-common dirmngr -y

添加gpg证书验证:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys apt-key adv

--keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138

0E98404D386FA1D9

4.再次使用刷新软体源:apt update -y

目录结构
全文