Debian10升级11(buster升级bullseye)

2021年8月14日,Debian11正式发布了,代号“bullseye” Debian 11 (bullseye), 64-bit PC 的发行说明

image

下面演示下Debian10升级到Debian11

现在的Debian版本10.10,Linux内核4.19

image

1、su - root切换root用户,环境变量(root登录的,可以跳过)

image

2、apt update && apt upgrade 更新下当前系统和软件包

3、nano /etc/apt/sources.list 修改bullseye仓库名

image

或者直接清空原配置,复制下面的粘贴进去(这里用的清华源)

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

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

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

4、修改完成 Ctrl O保存,Ctrl X退出

5、接下来就可以进行升级了,apt update && apt upgrade ,输入Y继续

image

6、弹出更新日志,输入q退出(当然你想看的话,可以慢慢看)

image

7、升级过程中不询问就重新启动服务,选择Yes

image

8、接下来开始升级了(大概几分钟左右跑完)然后重启系统

image

9、重新登录系统,输入cat /etc/debian_version && uname --all 可以看到已经成功升级到Debian11

image

posted @ 2021-08-15 21:51  明日之子OxO  阅读(2817)  评论(0编辑  收藏  举报