广告

Debian9更换可用软件源

2024-03-05

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

 

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

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

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

deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free

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

1.设置软件源

 

cat >/etc/apt/sources.list<<EOF

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

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

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

deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free

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

EOF

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  <PUBKEY>

<PUBKEY2>

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9

提示gpg证书错误处理

 

4.再次执行更新软件源:apt update -y

 

再次执行更新软件源:apt update -y

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。本站原创内容未经允许不得转载,或转载时需注明出处!

上一篇:Windwos服务器远程桌面限制用户使用同一个会话的设置办法

下一篇:vim打开文件提示存在.swp文件处理方法

这条帮助是否解决了您的问题?已解决未解决

提交成功!非常感谢您的反馈,我们会继续努力做到更好!很抱歉未能解决您的疑问。我们已收到您的反馈意见,同时会及时作出反馈处理!

立即注册91VPS账号,免费体验多款产品
立即注册
联系我们
全国咨询热线:
0712-5319406
QQ客服:
800193021
91VPS微信客服

扫码联系微信客服