我们已经准备好了,你呢?

我们与您携手共赢,为您的企业形象保驾护航!

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

免责声明:本站内容(文字信息+图片素材)来源于互联网公开数据整理或转载,仅用于学习参考,如有侵权问题,请及时联系本站删除,我们将在5个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)

我们已经准备好了,你呢?

我们与您携手共赢,为您的企业形象保驾护航!

在线客服
联系方式

热线电话

132-7207-3477

上班时间

周一到周五

二维码
线