!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>香港云服务器Debian9更换可用软件源

香港云服务器Debian9更换可用软件源

由于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-freeEOF

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

香港云服务器Debian9更换可用软件源

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

香港云服务器Debian9更换可用软件源

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

linux安装启动引导程序失败如何解决

2021-4-17 17:53:28

服务器教程

Centos7提示no space left on device时如何清理空间

2021-4-17 17:53:59

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase