In this guide we are going to show you how to Fix bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8). This warning appears when you try to bash.
To fix the warning follow the following steps :
Open the environment file in the etc folder with your preferred editor.
vi /etc/environment
Press
i
key to enter edit mode, add the following lines to the file.
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
Pressing
Esc
key and type
:wq
to write/save the file and exit the editor.
Run
source /etc/environment
The warning is now fixed and should be gone from the terminal