Hacker News 中文摘要

RSS订阅

Debian/Trixie 的预期内容 -- What to Expect from Debian/Trixie

文章摘要

Debian v13(代号Trixie)计划于2025年8月9日发布。作者自2024年8月起积极推动客户为此次稳定版发布做好准备,确保相关软件包可用且无严重问题。目前进展顺利,作者从系统管理员角度关注服务器系统,并开始公开分享有关Trixie的注意事项。

文章总结

Debian Trixie(v13)即将发布:新特性与升级指南

Debian v13,代号为“Trixie”,计划于2025年8月9日作为新的稳定版本发布。作为多个客户的技术支持负责人,我自2024年8月起便开始为Trixie的发布做准备,确保我们关注的软件包能够顺利进入新版本,并且避免严重问题的出现。目前,一切进展顺利,升级工作也表现良好。

主要关注点

Trixie的升级主要集中在服务器系统上,特别是从系统管理员的角度来看,有几个需要注意的事项。建议用户从官方Debian发布说明开始,特别是阅读Debian 13的新特性Trixie中需要注意的问题

软件包版本对比

以下是截至2025年7月20日,部分软件包在Bookworm(v12)和Trixie(v13)中的版本对比:

| 软件包 | Bookworm/v12 | Trixie/v13 | |--------------|--------------|------------| | ansible | 2.14.3 | 2.19.0 | | apache | 2.4.62 | 2.4.64 | | apt | 2.6.1 | 3.0.3 | | bash | 5.2.15 | 5.2.37 | | ceph | 16.2.11 | 18.2.7 | | docker | 20.10.24 | 26.1.5 | | dovecot | 2.3.19 | 2.4.1 | | dpkg | 1.21.22 | 1.22.21 | | emacs | 28.2 | 30.1 | | gcc | 12.2.0 | 14.2.0 | | git | 2.39.5 | 2.47.2 | | golang | 1.19 | 1.24 | | libc | 2.36 | 2.41 | | linux kernel | 6.1 | 6.12 | | llvm | 14.0 | 19.0 | | lxc | 5.0.2 | 6.0.4 | | mariadb | 10.11 | 11.8 | | nginx | 1.22.1 | 1.26.3 | | nodejs | 18.13 | 20.19 | | openjdk | 17.0 | 21.0 | | openssh | 9.2p1 | 10.0p1 | | openssl | 3.0 | 3.5 | | perl | 5.36.0 | 5.40.1 | | php | 8.2+93 | 8.4+96 | | podman | 4.3.1 | 5.4.2 | | postfix | 3.7.11 | 3.10.3 | | postgres | 15 | 17 | | puppet | 7.23.0 | 8.10.0 | | python3 | 3.11.2 | 3.13.5 | | qemu/kvm | 7.2 | 10.0 | | rsync | 3.2.7 | 3.4.1 | | ruby | 3.1 | 3.3 | | rust | 1.63.0 | 1.85.0 | | samba | 4.17.12 | 4.22.3 | | systemd | 252.36 | 257.7-1 | | unattended-upgrades | 2.9.1 | 2.12 | | util-linux | 2.38.1 | 2.41 | | vagrant | 2.3.4 | 2.3.7 | | vim | 9.0.1378 | 9.1.1230 | | zsh | 5.9 | 5.9 |

其他更新

  • asterisk 软件包再次未能进入Trixie。
  • 新增的 debian-repro-status 软件包提供了命令行工具,用于查询已安装Debian软件包的可重现性状态。
  • Grml 项目提供了更多软件包,包括grml-keyring、grml-hwinfo和grml-paste。
  • pacemaker 的fence-agents软件包现在是一个过渡包,所有fence-agents被拆分为单独的软件包。
  • usrmerge 已完成,相关dpkg警告问题已在发布说明中提及。
  • curl 软件包现在包含了 wcurl 命令行工具,简化了文件下载操作。

apt 3.0 新特性

apt 3.0 带来了多项新功能,包括: - 支持颜色输出,便于区分安装、升级、降级和移除操作。 - 输出内容按更易读的章节组织,移除操作更加突出。 - 使用 sequoia 验证签名。 - 新增 modernize-sources 命令,将 /etc/apt/sources.list.d/*.list 文件转换为新的 .sources 格式。 - 新增 distclean 命令,移除 $statedir/lists 下的所有文件,保留 Release、Release.gpg 和 InRelease。 - 新增配置选项 APT::NeverAutoRemove::KernelCount,用于保留指定数量的内核。 - 新增命令行选项 ‐‐snapshot 和配置选项 APT::Snapshot,控制快照选择。 - 新增命令行选项 ‐‐update,在指定命令前运行更新操作。

systemd 升级

systemd 从 v252.36-1~deb12u1 升级到 257.7-1,带来了大量变化,包括新的网络命名方案和工具,如 run0systemd-ac-powersystemd-confextsystemd-vpickvarlinkctl

Linux 内核更新

Trixie 基于最新的长期支持版本 6.12,带来了更好的硬件支持和多项新特性,如新的系统调用、XFS 文件系统的块大小支持、NTFS3 驱动、设备内存 TCP 支持等。

配置管理

puppetansible 在 Trixie 中均有更新,但 puppet 的上游尚未提供 Trixie 的软件包。

Prometheus 栈

Prometheus 服务器更新至 v2.53,并新增了多个 exporter,如 prometheus-dnsmasq-exporter、prometheus-mysqlrouter-exporter 等。

虚拟化

docker、ganeti、libvirt、lxc、podman、openstack、qemu/kvm 和 xen 等虚拟化工具在 Trixie 中均有更新。Proxmox 已发布基于 Trixie 的 PVE 9.0 BETA。

util-linux 更新

util-linux 工具新增了多项选项,如 blkdiscard 的 ‐‐quiet 选项、blockdev 的 ‐‐getdiskseq‐‐getzonesz 选项等。

OpenSSH 更新

OpenSSH 从 v9.2p1 更新至 10.0p1-5,不再支持 DSA 密钥,并新增了多项功能,如 Unix Domain 套接字转发、混合后量子算法 mlkem768x25519-sha256 等。

总结

Debian Trixie 带来了大量更新和改进,用户应仔细阅读发布说明,确保顺利升级。期待 Trixie 的发布,并继续为 Debian/forky 做准备。

这篇文章由 mika 于 2025年7月20日发布,归类于 计算机Debian英语开源

评论总结

  1. 升级不可逆性问题:评论1指出Trixie升级后无法回滚,系统可能进入不一致或损坏状态,尤其是MySQL/MariaDB的二进制格式升级后无法恢复。

    • "the Trixie update does not allow you to roll back... leaves the system in an inconsistent and broken state."
    • "The database binary format is upgraded during the upgrade... it's going to take some work."
  2. /tmp目录存储方式变化:评论2对/tmp目录默认使用tmpfs存储表示不满,认为磁盘空间比内存更便宜且更合适。

    • "I am not a fan of that as a default. I'd rather default to cheaper disk space than more limited and expensive memory."
  3. 网络接口命名复杂性:评论3提到网络接口命名方案复杂,认为“可预测”的命名并不实际。

    • "TIL there are 14 subtly different naming schemes for network interfaces... 'predictable' my ass."
  4. 升级后的兼容性问题:评论5提到升级后ping、OpenSSH和systemd-resolved等功能的兼容性问题,但总体上对Debian的升级体验表示满意。

    • "Ping didn't work due to changed security settings... OpenSSH server was installed as systemd socket activated."
    • "Generally, Debian version updates have been successful with me for a few years now."
  5. 新功能与改进:评论7、8、10、11和12对Trixie的新功能和改进表示赞赏,如Wayland支持、鼠标手势、Python 3.13等。

    • "Things have changed so much, for the better, particularly regarding Wayland."
    • "sway and/or libinput now supports mouse-pad gestures... Very much appreciated."
    • "So hyped for this release, since it will result in nice bugfixes (autorandr, Polybar)."
  6. 配置破坏警告:评论9提醒Dovecot用户,新版本可能会破坏现有配置。

    • "In this new stable release, an update to Dovecot will break your configuration."
  7. 对新版本的期待与适应:评论6和11提到对新版本的期待和适应过程,尤其是Python 3.13的引入。

    • "Woah Python 3.13 in stable?! It's going to take a bit for me to get used to having a current version of Python."
    • "I've been running Trixie since I bought my Framework laptop last September, and it has been great."

总结:Trixie升级带来了显著的功能改进,但也存在不可逆性、兼容性和配置破坏等问题。用户对新版本的态度总体积极,但也提醒谨慎升级并注意潜在问题。