Debian9配置网络源

# 切换到root权限下
cp /etc/apt/sources.list /etc/apt/sources.list.bak # 备份原有文件
# 打开文件编辑
vi /etc/apt/sources.list

# 替换内容为刚才复制的内容
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
# 保存并退出

# 配置好之后更新软件包列表
apt-get update
# 升级系统所有软件
apt-get upgrade
# 升级系统版本
apt-get dist-upgrade

  

posted @ 2022-03-10 18:49  lucky_tomato  阅读(284)  评论(0编辑  收藏  举报