因BOOT中保存了多個linux內核,導致爆滿,無法執行安裝。
(1)输入 uname -a 获取当前正在使用内核
Linux MLCMSSAP02 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
當前使用的內核版本是 134版
(2) 输入 dpkg --get-selections |grep linux-image查看拥有的内核版本
root@MLCMSSAP02:/home/ecd/soft# dpkg --get-selections |grep linux-image
linux-image-4.4.0-119-generic install
linux-image-4.4.0-121-generic install
linux-image-4.4.0-124-generic install
linux-image-4.4.0-127-generic install
linux-image-4.4.0-128-generic install
linux-image-4.4.0-130-generic install
linux-image-4.4.0-133-generic install
linux-image-4.4.0-134-generic install
linux-image-4.4.0-137-generic install
linux-image-4.4.0-138-generic install
linux-image-4.4.0-62-generic install
linux-image-extra-4.4.0-119-generic install
linux-image-extra-4.4.0-121-generic install
linux-image-extra-4.4.0-124-generic install
linux-image-extra-4.4.0-127-generic install
linux-image-extra-4.4.0-128-generic install
linux-image-extra-4.4.0-130-generic install
linux-image-extra-4.4.0-133-generic install
linux-image-extra-4.4.0-134-generic install
linux-image-extra-4.4.0-137-generic install
linux-image-extra-4.4.0-138-generic install
linux-image-extra-4.4.0-139-generic install
linux-image-extra-4.4.0-140-generic install
linux-image-extra-4.4.0-62-generic install
linux-image-generic install
3)输入 sudo apt-get remove linux-image-(版本号) 删除多余版本。
4)因空間不足,依賴關係錯誤,刪除報錯。用下面的命令刪除。
apt-get autoremove linux-image-(版本号)
刪除成功。