By Action Behind

使用 Ubuntu Linux 的日子,由於系統穩定,尢期使在 LTS 等版本,很多時會一個版本就用數年之久,大多只作糸統更新,在更新中很有可碰到 /boot 下空間不足問題 (Not enough free disk space):

image alt text

(網友圖片)

如果還不行,可以試一試以下一句 command ,可以一次清除舊有 Kernel images:

$ dpkg -l 'linux-image-[0-9]*' | awk -v current="$(uname -r)" '!/^i/ || $2~current {next} {print $2}' | sed '$d' | xargs sudo apt-get -y purge

事實平時也可以用下 command 清潔 ​ 系統

$ sudo apt-get autoclean

$ sudo apt-get autoremove

當看到這畫面時,想必先跟著做 'sudo apt-get clean'

Ubuntu   Kernel