Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Ubuntu 清理舊核心釋放磁碟空間與簡化開機選單

編輯:Linux 教學

Ubuntu 自動更新會保留多個舊核心,導致 GRUB 選單冗長且佔用磁碟空間。本文示範如何安全移除不需要的核心套件。

查詢已安裝核心

dpkg --get-selections | grep linux

輸出範例中,linux-image-2.6.15-23-386 等 install 狀態即為已安裝核心。

移除指定核心

sudo apt-get remove linux-image-2.6.15-23-386

APT 會自動處理相依性、移除核心映像檔、更新 GRUB 選單、釋放 /boot 空間。

確認目前執行核心

uname -a

重要:切勿移除 uname -r 顯示的目前核心版本,建議保留目前版本與前一版本作為回滾備援。

Copyright © Windows教程網 All Rights Reserved