修正 Ubuntu 16.04 卡在 boot logo 的問題

前言

通常我們都會透過 gui 的 restart button 或是 terminal 中的 reboot 執行重新啟動

但是可能環境用久了,出現了毀損,導致重啟的時候沒有辦法離開 boot logo

只能透過 hw reboot 的方式重起,之前還有一次因為直接透過 HW reboot 造成我的 /dev/sda1 (linux filesystems) 毀損

只能透過 fsck -y /dev/sda1 進行 file system 的修正 (corrupted)

因此正視這個問題,在網路上找到了相對應的解決辦法

修正方式

如果可以進入 gui 介面,開啟 terminal 輸入一下指令

如果無法,可以透過 recovery mode 或是 CTRL+ALT+F1 開啟 TTY 介面輸入 (PS: 若使用 CTRL+ALT+F1 的方式,登入的帳密要記得都使用一般鍵盤的英數字,不要使用數字小鍵盤,可能會無法登入)

1
2
3
4
sudo apt update
sudo apt install --reinstall unity unity-common unity-lens* ubuntu-desktop lightdm
sudo apt autoremove --purge
reboot

這樣就修正了 reboot 會一直卡在 boot log 的問題