栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Debian9到Debian11的超详细升级教程

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Debian9到Debian11的超详细升级教程

在云服务器商镜像页面中,可能无法选择一些系统最新的镜像版本。

就会造成一些软件不能顺利下载。

这时就需要自己手动下载并安装最新版的Debian系统了。

1、把当前版本的包更新到最新的版本
apt-get update 
apt-get upgrade 
apt-get dist-upgrade

 按q

 直接回车

同样回车 ,结束后输入

reboot

重启系统。

2、更改镜像文件

打开sources.list

nano /etc/apt/sources.list

在最后加上

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

按Ctrl+O,Enter保存后Ctrl+X退出

3、升级系统

再次输入

apt-get update 
apt-get upgrade 
apt-get dist-upgrade

一路按回车,最后再重启一下就完成了。

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/733381.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号