全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2342|回复: 10
打印 上一主题 下一主题

[疑问] Debian 12 书呆子发布,求教从Debian 11无损升级的办法?

[复制链接]
跳转到指定楼层
1#
发表于 2023-6-11 19:23:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
https://bits.debian.org/2023/06/bookworm-released.html
推荐
发表于 2023-6-11 19:57:59 | 只看该作者
本帖最后由 lokinT 于 2023-6-11 20:00 编辑

一、更新

  1. apt update
  2. apt upgrade -y
  3. apt dist-upgrade -y
  4. apt autoclean
  5. apt autoremove -y
复制代码

二、修改源
vim /etc/apt/sources.list
改为

  1. deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
  2. deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

  3. deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  4. deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

  5. deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  6. deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
复制代码

三、更新

  1. apt update
  2. apt upgrade -y
  3. apt dist-upgrade -y
复制代码

四、删除无用依赖

  1. apt autoclean
  2. apt autoremove -y
复制代码

五、检查

  1. lsb_release -a
  2. uname -a
复制代码
推荐
发表于 2023-6-12 08:34:19 | 只看该作者
cat > /etc/apt/sources.list << EOF
deb http://deb.debian.org/debian bookworm main non-free-firmware
deb-src http://deb.debian.org/debian bookworm main non-free-firmware

deb http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
deb-src http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware
EOF

apt update -y && apt upgrade -y && apt -y dist-upgrade
apt autoclean && apt autoremove -y
2#
发表于 2023-6-11 19:27:03 来自手机 | 只看该作者
1、先把/etc/apt 里面的源从bullseye更新为bookworm
3#
发表于 2023-6-11 19:27:06 | 只看该作者
这么着急干啥,等修修BUG再体验呗
4#
发表于 2023-6-11 19:28:16 来自手机 | 只看该作者
2 apt update & apt upgrade   3 apt dist-upgrade 4 reboot 就完成了
5#
发表于 2023-6-11 19:28:19 | 只看该作者
glibc有些兼容问题
比如go语言的东西,比如nginx的一些模块
我昨天升级全踩坑,果断跳坑了
6#
发表于 2023-6-11 19:48:23 来自手机 | 只看该作者
建议重装 不然会有隐藏兼容问题
7#
发表于 2023-6-11 19:55:28 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
9#
发表于 2023-6-11 20:59:23 来自手机 | 只看该作者
我是小白我怕谁 发表于 2023-6-11 19:28
glibc有些兼容问题
比如go语言的东西,比如nginx的一些模块
我昨天升级全踩坑,果断跳坑了

感谢提醒,还好没升,不然业务没了
10#
发表于 2023-6-11 21:00:39 | 只看该作者
升不升没啥意义吧 对性能又没提升
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-8 17:42 , Processed in 0.074551 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表