dedipath等openvz升级Debian11

要求

系统为Debian10

步骤

1. 更新现有软件包

升级前先更新当前的软件包核安全补丁到最新版本:
删除未使用的依赖项:

apt --purge autoremove

2. 更新 sources.list 文件

接下来需要添加用于 bullseye 的源,将 /etc/apt/sources.list 中的 buster 替换为 bullseye,buster/updates 替换为 bullseye-security。
或者直接注释原来的内容,添加:

deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian-security/ bullseye-security main
deb-src http://deb.debian.org/debian-security/ bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main

3. 升级到 Debian 11

执行一下命令

apt update && apt full-upgrade

会提示是否升级,选择y

343 upgraded, 53 newly installed, 3 to remove and 0 not upgraded.
Need to get 165 MB of archives.
After this operation, 140 MB of additional disk space will be used.
Do you want to continue? [Y/n]

接下来的keymap默认即可

你可能会看到有关重新启动服务或更新现有配置选项的提示。因为在升级特定库(例如 libpam、libc 和 libssl)时,由于重新启动可能会导致系统服务中断,比如下图中我选择的是yes,重启服务不需要询问,按Enter键继续:

接下来的一系列包含*** mlocate (Y/I/N/O/D/Z) [default=N] ?的选项,选yn都可,看个人喜好。

之后会问你是否更新 OpenSSH 配置文件,我选择的是保留当前版本,如果你更改了 ssh 端口或者设置了密钥登录,最好保留。

4. 查看是否更新完成

root@linux:~# cat /etc/debian_version 
11.0

如上所示,系统已成功升级到debian11.

重启系统,完成更新

reboot

执行后,等重启完成即可完成更新。

作者:503611908
来源:https://www.eutaboo.com/index.php/2021/08/22/dedipath%e7%ad%89openvz%e5%8d%87%e7%ba%a7debian11/
文章版权归作者所有,未经允许请勿转载。
THE END
分享
二维码
打赏
海报
dedipath等openvz升级Debian11
要求 系统为Debian10 步骤 1. 更新现有软件包 升级前先更新当前的软件包核安全补丁到最新版本: 删除未使用的依赖项: apt --purge autoremove 2. 更新 sourc……
<<上一篇
下一篇>>
文章目录
关闭
目 录