Solving “locale” issue in Ubuntu

Quick fix to solve the next issue:

perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  1. List your locales to find out which one is missing, in my case it was LC_ALL

2. Add the following to your ~/.zshrc file (if you’re using zsh /oh-my-zsh):

export LC_ALL="en_US.UTF-8"

Add any other “locale” missing.

  • I get this issue when i ssh into vagrant box and try to install “oh-my-zsh”
  • BTW, oh-my-zsh is awesome, you should be using it
  • Add to the ~/.bashrc file if you’re using bash, or adjust it to use your shell config file if different.
  • Credit to this post
Like what you read? Give Juan Carlos Quintero a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.