Debian 11升级Debian 12 系统debian linux跨版本升级

发表:8月前 更新:8月前

系统,对IT行业的人来说都很熟悉。

对于系统升级,更新很多人都了解。

这期教程呢,是如果教大家跨版本升级的。这里是debian11升级到debian12。

开始:

查看当前系统版本。

1_1693285530_bc9FgWOozO.webp

这里是debian11。

接下来安装需要的工具。

vim  Linux下的文本编辑器

sudo linux的超级管理员

apt install vim sudo -y

然后安装https拉取工具

sudo apt install apt-transport-https ca-certificates -y

更新当前系统到最新版本。同时运行apt update和apt upgrade命令

apt update 拉取当前源数据

apt upgrade 更新到已经装软件最新包

apt update && apt upgrade -y

1_1693285897_uh0RgKATzd.webp

已经更新到最新包。

1_1693286054_4vIr7RgO3S.webp

接下来配置升级到debian12的源。

编辑一下debian的软件源就可以,编辑/etc/apt/sources.list文件,将里面的内容替换掉。

vim /etc/apt/sources.list

debian12代号为bookworm

我这里直接使用清华大学的模板 替换内容为:

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware

deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware

deb http://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

# deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

替换前:

1_1693286360_Ntq3FZFJAK.webp

替换后:

1_1693286404_2myd2asrdG.webp

替换完成后保存退出。

在执行一次apt update && apt upgrade -y命令

apt update && apt upgrade -y

1_1693286473_MnfQFvciLO.webp

等待安装升级。

1_1693286525_ULC0Bt8iXY.webp

遇到是有选择都使用默认选择即可。直接按回车。

1_1693286557_oEq5pjDev6.webp

安装完成。

1_1693286922_cttqnDnRZR.webp

查看一下当前系统版本。

1_1693287234_jqfCpqrhC7.webp

顺利更新到新系统。

 

原文:https://forum.wanwr.com/15.html

评论

无权限

请登录后评论

RunPod公众号

赞助商

联系我们

QQ群:798695907

邮箱:laravel@88.com