On Ubuntu 20.04 getting loop when try to login, and on terminal always getting "Sorry, command-not-found has crashed! Please file a bug report at" msg

Solution 1:

Quiet sure, the last edit of /etc/profile introduced a syntax error there.

  • Try using another shell after login, like dash
  • If it does not work, go to recovery console (shift at grub menu, and select advanced)
  • If no success yet, anyway as last resort, use boot-able USB and fix it.