Last update at :2024-06-21,Edit by888u
Foolish tutorial for upgrading Debian 11 to 12: Debian has also gained a new wave of fans since CentOS was discontinued, and its team has grown. Currently, debian12 is out, so hurry up and give it a try. Let’s upgrade debian11 to debian12 simply and quickly. The general steps are as follows:
Update the existing system first:
apt update && apt upgrade
Modify the source of debian11 to debian12:
If it is a Hong Kong machine or a mainland machine, it is recommended to use Huawei's source. Just copy the following code and press Enter:
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
If the machine is in Europe, America or other places, it is recommended to use the linode source, just copy the following code and press Enter:
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
Continue updating and upgrading:
apt update && apt full-upgrade
There will be several pauses during the period. The first time you have to enter "q", the rest are all "y"
Finally restart the system:
reboot
Recommended site search: independent IP virtual host, domain name registration number query, site group server rental, how to register the website, how to buy a real cloud host, virtual host 99idc, rent high-defense IP, PHP host space, Shaoxing server rental, The cheapest dual-line space,
发表评论