My installation fails with ‘ansible: No such file or directory’

If you’re getting the following error during the installation, this has to do with missing locale settings.

$ bash <(curl -sL
Successfully installed pip-8.1.1 setuptools-21.0.0 wheel-0.29.0
+ sudo pip install ansible==
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 11, in 
  File "/usr/local/lib/python2.7/dist-packages/pip/", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
+ ansible localhost -m git -a 'repo= dest=/home/pi/screenly version=master'
/dev/fd/63: line 57: ansible: command not found
+ cd /home/pi/screenly/ansible
/dev/fd/63: line 58: cd: /home/pi/screenly/ansible: No such file or directory
+ ansible-playbook site.yml --skip-tags enable-ssl

You can solve that by running:

$ sudo dpkg-reconfigure locaes

We recommend that you select en_US.UTF-8 UTF-8 in both dialogues.

Once you’ve gone through the steps, you should be able to re-run the installation without issues.

Have more questions? Submit a request


Article is closed for comments.