使用说明
Debian的仓库地址为:https://repo.huaweicloud.com/debian/
Debian-Security的 镜像 地址为:https://repo.huaweicloud.com/debian-security/
Debian的镜像地址为:https://repo.huaweicloud.com/debian-cd/
1、备份配置文件:
cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
2、修改sources.list文件,将http://ftp.debian.org替换成https://repo.huaweicloud.com,同时也将http://security.debian.org替换成https://repo.huaweicloud.com,可以参考如下命令:
sed -i "s@http://ftp.debian.org@https://repo.huaweicloud.com@g" /etc/apt/sources.list sed -i "s@http://security.debian.org@https://repo.huaweicloud.com@g" /etc/apt/sources.list
3、执行apt-get install apt-transport-https ca-certificates安装https源,之后再执行apt-get update更新索引
相关网址
Debian官网地址:http://www.debian.org/
Debian-Security官网地址:https://www.debian.org/security/
Debian安全追踪网址:https://security-tracker.debian.org/tracker/
Debian邮件列表地址:http://www.debian.org/support#mail_lists
Debian文档地址:http://www.debian.org/doc/
Debian Wiki地址:http://wiki.debian.org/
Debian镜像列表地址:http://www.debian.org/mirror/list