debian11升级12傻瓜式教程:自从centos歇菜之后debian也新增了一波粉丝,队伍壮大了。当前,debian12出来了,抓紧尝鲜下吧,我们来简单、快速地将debian11升级到debian12吧,大致步骤如下:

先更新现有系统:
apt update && apt upgrade
再修改debian11的源为debian12的:
如果是香港机器或者内地的机器,推荐用华为的源,复制以下代码直接回车即可:
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
如果机器在欧美或者其他地方,推荐用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
继续更新和升级:
apt update && apt full-upgrade
期间会有几次停顿下来,第一次要输入“q”,其余的全部“y”
最后重启系统:
reboot

神马VPS










最新评论
I want to to thank you for this excellent read!! I definitely enjoyed every bit of it. I have got you book-marked to check out new things you
I like this post, enjoyed this one appreciate it for posting.
Definitely, what a splendid blog and enlightening posts, I surely will bookmark your site.Best Regards!
As I website possessor I conceive the content here is very fantastic, thanks for your efforts.
I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are wonderful! Thanks!
Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.
My brother suggested I might like this web site. He was totally right. This post actually made my day. You can not imagine just how much time I had spent for this information! Thanks!
I haven¦t checked in here for a while since I thought it was getting boring, but the last several posts are good quality so I guess I will add you back to my everyday bloglist. You deserve it my friend :)