跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 从 Debian 10 Buster 升级到 Debian 11 Bullseye
未分類
15 8 月 2021

从 Debian 10 Buster 升级到 Debian 11 Bullseye

zxxx 大佬有话说 : 2021-8-5 20:40:53

从 Debian 10 Buster 升级到 Debian 11 Bullseye

本帖最后由 zxxx 于 2021-8-5 20:45 编辑

官方参考:https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.zh-cn.html

在升级系统前,强烈建议您进行一次完整的备份,或者至少备份您不愿意丢失的数据和配置信息。
升级工具和流程是非常可靠的,但升级过程中的硬件错误可能会对您的系统造成严重损害。

apt install tmux && tmux

显示 Debian 版本

cat /etc/debian_version
10.10

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

清理过时软件包,缩短升级时间

dpkg –list | grep "^rc" | cut -d " " -f 3 | xargs dpkg –purge

升级当前系统中的软件包

apt update && apt upgrade && apt full-upgrade

更新 /etc/apt/sources.list 文件

cp /etc/apt/sources.list /etc/apt/sources.list.buster &&
cat << "EOF" > /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main
deb http://ftp.debian.org/debian bullseye-backports main contrib non-free
EOF

cp /etc/apt/sources.list /etc/apt/sources.list.buster &&
cat << "EOF" > /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian-security bullseye-security main
deb http://mirrors.aliyun.com/debian bullseye main contrib non-free
deb http://mirrors.aliyun.com/debian bullseye-updates main contrib non-free
deb http://mirrors.aliyun.com/debian bullseye-backports main contrib non-free
EOF

更新一次系统仓库列表,开始升级

升级过程需要有人值守:因为部分软件的配置文件会出现变化,需要手动确认使用哪个版本。

切记这个过程中不要中断,否则可能导致包关系异常或包管理系统损坏。

apt update && apt upgrade && apt dist-upgrade && apt full-upgrade

使用新的内核 image重启系统

systemctl reboot

查看系统版本

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

清理软件包

apt autoremove

dpkg –list | grep "^rc" | cut -d " " -f 3 | xargs dpkg –purge

apt autoclean

删除过时镜像

dpkg –get-selections | grep linux

linux-image-4.19.0-17-amd64                     install
linux-image-5.10.0-8-amd64                      install

apt autoremove –purge linux-image-4.19.0-17-amd64

Auto 大佬有话说 : 2021-8-5 21:51:07

目前才RC3 升个毛线 等半个月后发布再说

StudyOverseas 大佬有话说 : 2021-8-6 01:47:46

insightfy 大佬有话说 : 2021-8-5 20:42
谢谢大佬 就是中间有几个选项 不知道选什么 建议细说一下

我这里有提到,一般就三种类型的问题:
1.要不要重启服务
2.要不要更新配置文件
3.语言、地区设置要不要更改
https://www.liujason.com/article/1175.html

xvm 大佬有话说 : 2021-8-5 20:58:32

我一般都是到了.1版本后才开始升级,吃过亏就很小心了现在

ban 大佬有话说 : 2021-8-5 20:41:47

手动点赞!。。布丁

insightfy 大佬有话说 : 2021-8-5 20:42:39

谢谢大佬 就是中间有几个选项 不知道选什么 建议细说一下

lovedva 大佬有话说 : 2021-8-5 20:42:54

还没正式发布吧

zxxx 大佬有话说 : 2021-8-5 20:44:26

insightfy 大佬有话说 : 2021-8-5 20:42
谢谢大佬 就是中间有几个选项 不知道选什么 建议细说一下

除了 sshd 配置选择保留原始的,其他的我选择的使用新版本。

grub 安装选择 /dev/sdx 而不是 /dev/sdx1 等等。

tdd 大佬有话说 : 2021-8-5 20:45:40

好帖 先收藏了

zxxx 大佬有话说 : 2021-8-5 20:46:05

lovedva 大佬有话说 : 2021-8-5 20:42
还没正式发布吧

已经可以升级了,只是没有正式发布,不过也快了吧:lol

咖喱给给 大佬有话说 : 2021-8-5 20:47:07

萌咖的dd脚本可以直接dd吗https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

zxxx 大佬有话说 : 2021-8-5 20:49:24

咖喱给给 大佬有话说 : 2021-8-5 20:47
萌咖的dd脚本可以直接dd吗

可以尝试一下,应该是可以的啦

wget https://moeclub.org/attachment/LinuxShell/InstallNET.sh &&
sed -i ‘s/8.8.8.8/114.114.114.114/’ InstallNET.sh &&
bash InstallNET.sh -d 11 -v 64 -a –mirror ‘http://mirrors.aliyun.com/debian/’

optimism 大佬有话说 : 2021-8-5 20:50:24

太厉害了 顶我的新手好友技术贴

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具