

喜讯:国内、香港、海外云服务器租用特惠活动,2核/4G/10M仅需31元每月,点击抢购>>>
点击这里申请百度智能云特邀VIP帐号,立即体验云服务器BCC>>>
百度智能云服务器BCC使用教程-Debian 9软件源配置更新
概述
由于Debian 9操作系统结束生命周期(EOL),Linux社区不再维护该版本操作系统,当前的Debian源已不支持Debian 9安装软件包。
我们推荐您升级操作系统到Debian 11及以上版本。当然,如果您由于业务上的需求,仍要使用Debian 9操作系统,并且需要安装软件包。您可以按照本文档来修改Debian 9实例中的软件源配置,使用debian-archive源来满足您的软件源使用需求。
软件源地址为:http://mirrors.baidubce.com/debian-archive/
配置方法
在/etc/apt/sources.list中修改配置如下:
deb http://mirrors.baidubce.com/debian-archive/debian stretch-backports main contrib non-free deb-src http://mirrors.baidubce.com/debian-archive/debian stretch-backports main contrib non-free deb http://mirrors.baidubce.com/debian-archive/debian stretch main contrib non-free deb-src http://mirrors.baidubce.com/debian-archive/debian stretch main contrib non-free deb http://mirrors.baidubce.com/debian-archive/debian-security stretch/updates main contrib non-free deb-src http://mirrors.baidubce.com/debian-archive/debian-security stretch/updates main contrib non-free deb http://mirrors.baidubce.com/debian-archive/debian stretch-proposed-updates main contrib non-free deb-src http://mirrors.baidubce.com/debian-archive/debian stretch-proposed-updates main contrib non-free
退出编辑后执行以下命令更新缓存:
apt-get update
之后您的Debian 9实例即可正常使用apt安装应用。
推荐:TOP云智能建站优惠活动,仅880元即可搭建一个后台管理五端合一的智能网站(PC网站、手机网站、百度智能小程序、微信小程序、支付宝小程序),独享百度搜索SEO优势资源,让你的网站不仅有颜值有排面,更有排名,可以实实在在为您带来效益,请点击进入TOP云智能建站>>>,或咨询在线客服了解详情。


湘公网安备43019002001857号
备案号:
客服1