2023年7月4日 星期二

Debian 10 更新至 11

確認 存儲庫及刪除package 的保留狀態
apt-mark showhold
apt-mark unhold [package_name]

apt update && sudo apt upgrade

apt install gcc-8-base

編輯 /etc/apt/sources.list 移除舊儲存庫並加入
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main
deb http://ftp.debian.org/debian bullseye-backports main contrib non-free

apt update
apt full-upgrade -y

確認更新版本
cat /etc/debian_version

重新開機
systemctl reboot

沒有留言: