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










最新评论
Hey there! Do you use Twitter? I'd like to follow you if that would be okay. I'm absolutely enjoying your blog and look forward to new updates.
I don't even know how I ended up here, but I thought this post was great. I do not know who you are but definitely you are going to a famous blogger if you are not already ;) Cheers!
Hi there terrific website! Does running a blog similar to this take a large amount of work? I have virtually no knowledge of programming however I was hoping to start my own blog soon. Anyways, if you have any recommendations or techniques for new blog owners please share. I know this is off subject nevertheless I just had to ask. Many thanks!
Hmm it looks like your blog ate my first comment (it was super long) so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog writer but I'm still new to the whole thing. Do you have any helpful hints for rookie blog writers? I'd definitely appreciate it.
great put up, very informative. I wonder why the other specialists of this sector do not understand this. You should proceed your writing. I am sure, you've a great readers' base already!
Thank you for the good writeup. It in truth used to be a amusement account it. Look complex to far introduced agreeable from you! However, how could we be in contact?
I have learn a few excellent stuff here. Certainly price bookmarking for revisiting. I surprise how much effort you put to make this sort of great informative website.
Fascinating blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog shine. Please let me know where you got your design. Appreciate it