0

gnome-terminal doesn't open after I edited locale file here /etc/default/locale and I don't have xterm or any other Terminal app installed to see if it runs.

Same problem reported here and here

I just need to edit the locale file and everything will be back in order, or in this case delete a custom file that I created in /usr/share/i18n/locales/en_US_custom using this guide to change the week start day on Ubuntu.

I tired finding ways to get elevated privilege without Terminal -- to no avail.

It's like you can't do anything without a Terminal on linux, I'm stuck, I can't install anything, can't sudo run any app...

Shayan
  • 1,503

1 Answers1

1

Problem was that I created a custom locale file here /usr/share/i18n/locales/en_US_custom and then in /etc/default/locale file I had added "LC_TIME="en_US_custom" to it, this was making a problem.

Do CTRL+ALT+F1 and you can type in your commands on TTY that just opened, to switch back to your screen do CTRL+ALT+F7.

You will be prompted to enter your username now, type it in and hit Enter then type in your password and hit Enter, now you can run commands.

So I ran the following command:

echo 'LC_TIME="en_US.UTF8' | sudo tee -a /etc/default/locale

And I re-logged and everything was back to normal.

Shayan
  • 1,503