差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:debian10 [2021/04/07 16:29] – 建立 jonathan | tech:debian10 [2024/01/01 22:15] (目前版本) – [移除已經不再使用的 Kernel 安裝檔] jonathan | ||
---|---|---|---|
行 12: | 行 12: | ||
gateway 10.20.0.254 | gateway 10.20.0.254 | ||
dns-nameserver 8.8.8.8 | dns-nameserver 8.8.8.8 | ||
- | </ | + | </ |
+ | |||
+ | <note tip> | ||
+ | * Debian 11 執行 restart 發現沒有正確設定 IP 的狀況, 可透過 < | ||
+ | </ | ||
===== 更改 hostname ===== | ===== 更改 hostname ===== | ||
行 27: | 行 31: | ||
</ | </ | ||
+ | ===== Kernel 更新但重開機仍舊版 ===== | ||
+ | * 直接執行 < | ||
+ | * ++看操作紀錄|< | ||
+ | root@pve-49: | ||
+ | Generating grub configuration file ... | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found memtest86+ image: / | ||
+ | Found memtest86+ multiboot image: / | ||
+ | Adding boot menu entry for EFI firmware configuration | ||
+ | done | ||
+ | root@pve-49: | ||
+ | </ | ||
+ | |||
+ | ===== 移除已經不再使用的 Kernel 安裝檔 ===== | ||
+ | * 參考 - https:// | ||
+ | - 先確認目前已安裝哪些 Kernel 版本< | ||
+ | * ++看操作紀錄|< | ||
+ | # dpkg --list | grep linux-image | ||
+ | ii linux-image-5.10.0-0.bpo.11-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.12-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.15-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.3-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.4-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.5-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.7-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.8-amd64 | ||
+ | ii linux-image-5.10.0-0.bpo.9-amd64 | ||
+ | ii linux-image-5.10.0-0.deb10.16-amd64 5.10.127-2~bpo10+1 | ||
+ | rc linux-image-5.4.0-0.bpo.4-amd64 | ||
+ | ii linux-image-5.6.0-0.bpo.2-amd64 | ||
+ | ii linux-image-5.7.0-0.bpo.2-amd64 | ||
+ | ii linux-image-5.8.0-0.bpo.2-amd64 | ||
+ | ii linux-image-5.9.0-0.bpo.2-amd64 | ||
+ | ii linux-image-5.9.0-0.bpo.5-amd64 | ||
+ | ii linux-image-amd64 | ||
+ | </ | ||
+ | - 確認目前使用哪個 Kernel < | ||
+ | * ++看操作紀錄|< | ||
+ | # uname -na | ||
+ | Linux pve-omv5-246 5.10.0-0.deb10.16-amd64 #1 SMP Debian 5.10.127-2~bpo10+1 (2022-07-28) x86_64 GNU/Linux | ||
+ | </ | ||
+ | - 移除不需要的 Kernel | ||
+ | * 自動清除 : 可使用 < | ||
+ | * 手動清除 : 可使用 <cli> apt-get purge linux-image-[version-number]*</ | ||
+ | apt-get purge linux-image-5.4.* | ||
+ | apt-get purge linux-image-5.6.* | ||
+ | apt-get purge linux-image-5.7.* | ||
+ | apt-get purge linux-image-5.8.* | ||
+ | apt-get purge linux-image-5.9.* | ||
+ | apt-get purge linux-image-5.10.0-0.bpo.* | ||
+ | </ | ||
{{tag> | {{tag> |