Debian 10 升级到Debian 11

Debian 11 (bullseye) 终于正式发布稳定版本了,带来了更多的特性和新的内核。

那么如何从Debian 10升级到Debian 11呢?

  1. 更新软件包

    1
    apt update && apt upgrade -y
  2. 更新sources.list

    1
    vi /etc/apt/sources.list

    把该文件的源改成如下

    1
    2
    3
    4
    5
    6
    7
    8
    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. 升级到11

    1
    apt update && apt full-upgrade

    之后就是等待安装,建议保留中途提醒的网络配置。

  4. 清理旧的软件包

    如果不需要旧的软件包了,可以用一下命令清理

    1
    2
    apt --purge autoremove
    apt autoclean

Comments

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×