Linux:如何简单且快速的将debian11升级为debian12

自从CentOS停止更新后,Debian也获得了更多的支持者,队伍壮大了。现在Debian 12已经发布了,赶紧来尝试一下吧!以下是一个简单易懂的教程,教你如何将Debian 11升级到Debian 12。下面是大致的步骤:

Linux:如何简单且快速的将debian11升级为debian12

第一步

执行更新系统命令

apt update && apt upgrade

第二步

将debian11的源修改为debian12的

国外机器推荐Linode的,直接复制以下执行即可

cat > /etc/apt/sources.list << EOF

deb http://mirrors.linode.com/debian bookworm main non-free-firmware

deb-src http://mirrors.linode.com/debian bookworm main non-free-firmware

deb http://mirrors.linode.com/debian-security/ bookworm-security main non-free-firmware

deb-src http://mirrors.linode.com/debian-security/ bookworm-security main non-free-firmware

deb http://mirrors.linode.com/debian bookworm-updates main non-free-firmware

deb-src http://mirrors.linode.com/debian bookworm-updates main non-free-firmware

EOF

国内或香港机器这里推荐使用华为源

cat > /etc/apt/sources.list << EOF

deb https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib

deb-src https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib

deb https://mirrors.huaweicloud.com/debian-security/ bookworm-security main

deb-src https://mirrors.huaweicloud.com/debian-security/ bookworm-security main

deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib

deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib

deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib

deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib

EOF

再次更新和升级:

执行期间会有几次停顿,第一次要输入“q”,其余的全部“y”

apt update && apt full-upgrade

最后

重启系统

reboot

网络信息,由52VPS整理收集,如若转载,请注明出处:https://www.52vps.com/4164.html

(0)
上一篇 2023-06-14 14:44
下一篇 2023-06-22 22:43

相关推荐