After a recent Ubuntu update I get this error:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

I fixed it simply using:

export LC_ALL=C

This error avoids me to log into MongoDB using the command line MongoDB tool.