I was updating my linux mint 18.3 to linux mint 19.
The error I get is Cannot set LC_ALL to default locale: No such file or directory.
Then I Restarted my System, after that I can't open the terminal.
I used Ctrl+Alt+F3 to run command line and fixing the LC_ALL error by using the command sudo dpkg-reconfigure locales and sudo aptitude install locales and it worked.
Then I tried to install terminal by using the command apt install gnome-terminal but it gives the error
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: Syntax error: Unterminated quoted string
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to resolve that using this https://askubuntu.com/a/920076/842467 but nothing happened.
/etc/environmentfile. Did you look at that?/etc/environmentfile looks like thisPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" :/usr/java/jre1.8.0_171/bin" JAVA_HOME="/usr/java/jre1.8.0_171":/usr/java/jre1.8.0_171/bin"bit looks out of place. Please add the contents of/etc/environmentto the question so that we can see what it actually looks like.