現象:Ubuntu輸入密碼正確,但是進不去系統,一直在登錄界面循環。
(1)進入tty下 :
ctrl+alt+F1(F1-F6)
(2)發現“ls”,“vi”等命令都無法使用
錯誤提示:The command count not be located because '/bin' is not included in the PATH
原因:沒有加載到/usr/bin/下的命令
解決:執行export操作:
export PATH=/usr/bin/:$PATH
(3)進入修改 ~/.profile 文件
sudo vim .profile
(4) 把之前錯誤的修改刪除就可以了,重啓成功進入系統