Since then, the following has been appearing in the terminal:
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
I am at my wit’s end with my already limited knowledge and would be grateful for any help.
The commands you ran generate the locale data. You set the locale per process via environment variables. One such process is bash and it sources the environment variables from a variety of places like /etc/profile.d or your ~/.bashrc.
What is your output of:
env | grep "^LC_"
You will probably see various variables starting with LC_ being set for your bash and you have to figure out who sets them. You can have a look at the locations I mentioned above or you could even grep your /etc or $HOME to find who still has these variables set to en_US.UTF8