# ansible installation fails with LOCALE error

**URL:** <https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [July 10, 2016, 4:57am UTC](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975 "2016-07-10T04:57:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleg\_Belousov](https://avatars.discourse-cdn.com/v4/letter/o/3e96dc/32.png) [@Oleg\_Belousov](https://forum.ansible.com/u/Oleg_Belousov)\
**Post date:** [July 10, 2016, 4:57am UTC](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975/1 "2016-07-10T04:57:12Z")

</div>

Error:

`  
msg: 'apt-get install ‘runit’ ’ failed: perl: warning: Setting locale failed.  
perl: warning: Please check that your locale settings:  
LANGUAGE = (unset),  
LC\_ALL = (unset),  
LC\_TIME = “de\_DE.UTF-8”,  
LC\_MONETARY = “de\_DE.UTF-8”,  
LC\_ADDRESS = “de\_DE.UTF-8”,  
LC\_TELEPHONE = “de\_DE.UTF-8”,  
LC\_NAME = “de\_DE.UTF-8”,  
LC\_MEASUREMENT = “de\_DE.UTF-8”,  
LC\_IDENTIFICATION = “de\_DE.UTF-8”,  
LC\_NUMERIC = “de\_DE.UTF-8”,  
LC\_PAPER = “de\_DE.UTF-8”,  
LANG = “C”  
are supported and installed on your system.  
perl: warning: Falling back to the standard locale (“C”).  
locale: Cannot set LC\_ALL to default locale: No such file or directory  
grep: /etc/inittab: No such file or directory  
grep: /etc/inittab: No such file or directory  
cp: cannot stat ‘/etc/inittab’: No such file or directory  
dpkg: error processing package runit (–configure):  
subprocess installed post-installation script returned error exit status 1  
Errors were encountered while processing:  
runit  
E: Sub-process /usr/bin/dpkg returned an error code (1)

`

This is an open source ansimble config from here:  
[https://github.com/txbits/TxBitsDeployer](https://github.com/txbits/TxBitsDeployer)

Let it be noted that I am using Ubuntu 14.04 instead of Debian 8 as noted in the docs.  
Could that be the problem?

---

<div class="post-metadata">

**Author:** ![Nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nico](https://forum.ansible.com/u/Nico)\
**Post date:** [July 11, 2016, 12:40am UTC](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975/2 "2016-07-11T00:40:34Z")

</div>

Issue is not with Ansible but with your system.  
Seems you may have to regenerate some of your locale settings.  
Try the solution mentioned here: [http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue](http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue)

-Nico
