Debian 12(bookworm)發布也已經一年了,該出的怪手都幾乎出過了,可以放心使用啦~ 😎
-
Debian Package Tracker | systemd
Debian Package Tracker | openssh
Debian Package Tracker | python3-defaults
Debian Package Tracker | apache2
Debian Package Tracker | nginx
Debian Package Tracker | php-defaults
Debian Package Tracker | mariadb
### 第一階段,更新sources.list到最新版本 🤓
## 首先備份sources.list檔案
cp -v /etc/apt/sources.list /root
cp -rv /etc/apt/sources.list.d /root
↓↓↓↓↓複製下方程式碼↓↓↓↓↓
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# Debian 全球映射站 # > https://www.debian.org/mirror/list.zh-tw.html # Debian 11 (bullseye) → Debian 12 (bookworm) sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.* cat <<"EOF" > /etc/apt/sources.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm main deb-src http://deb.debian.org/debian bookworm-updates main contrib deb-src http://security.debian.org/debian-security bookworm-security main contrib EOF clear cat /etc/apt/sources.list | grep bookworm |
↑↑↑↑↑複製上方程式碼↑↑↑↑↑
### 第二階段,更新套件 🤓
# 更新來源資訊
sudo apt-get update -y
## 根據官方推薦分兩次升級 (Part.A) 🤖
sudo apt upgrade --without-new-pkgs -y
# 上方的第一次更新完,系統版本就已經升級到12了 🤖
cat /etc/debian_version
lsb_release -a
# 更新完畢後重開機 🤖
sudo systemctl reboot
# 升級完整系統套件 (Part.B),這一段升級所需時間較長 🤖
sudo apt-get full-upgrade -y
# 更新完畢後重開機 🤖
sudo systemctl reboot
※特別注意,更新過程中會有幾個設定檔會停下來詢問要如何操作,大多都是直接保留舊檔案即可,其中我有碰到不乖的狀況,可嘗試使用下列三條指令任一來處理 🤖
sudo dpkg --configure -a
sudo apt --fix-broken install -y
sudo apt -o Dpkg::Options::="--force-overwrite" install -f -y
### 第三階段,確認系統版本並清理一下做收尾 🐱🚀
curl -LsO http://bench.monster/speedtest.sh; bash speedtest.sh -info; rm -f speedtest.sh
cat /etc/debian_version
lsb_release -a
# 打完收工,大家可以回家啦 🐱🏍🐱👓
sudo apt-get clean && sudo apt-get autoclean
sudo apt-get autoremove --purge -y
ref.