Ubuntu 升版須知
Prerequisites
-
確認 Ubuntu 版本
lsb_release -a
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
-
確認 packages 皆已為最新版
-
確認 netplan 網卡已設定完成
Upgrade steps
Reference: https://ubuntu.com/server/docs/how-to-upgrade-your-release
-
進行升版
-
詢問是否繼續時停下,仔細看是否有無問題,尤其注意更新後是否會造成系統不正常
可按下 d
來看 detail
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 注意套件是否有對應 version,尤其是
No candidate ver: xxx
的套件是否正常
-
遇到 version conflict 時,請一律都用 D
檢查更動部分,如無問題,則以 maintainer version 為主
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
-
如被詢問 unattended-upgrades 設定,請選擇 No
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
-
升級完後 reboot
Post-upgrade steps
Outline
CUDA
- 刪除舊的 CUDA apt repo (20.04)
- 重新下載安裝 CUDA apt repo (22.04)
- 更新 CUDA keyring
Docker engine (二擇一執行)
Official (recommended)
重新執行 Docker 第一項安裝步驟,將 apt repo 覆蓋,from focal to jammy
Manual
將 focal 取代成 jammy
Git-LFS (二擇一執行)
Official (recommended)
重新執行 Git-LFS 安裝步驟,將 apt repo 覆蓋,from focal to jammy
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
Manual
將 focal 取代成 jammy
停止 Unattended-Upgrades 套件