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 https://www.screenly.io/install-ose.sh)
[...]
Successfully installed pip-8.1.1 setuptools-21.0.0 wheel-0.29.0
+ sudo pip install ansible==2.0.2.0
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 11, in 
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
+ ansible localhost -m git -a 'repo=http://github.com/wireload/screenly-ose.git 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

0 Comments

Article is closed for comments.