ansible installation fails with LOCALE error

39 views
Skip to first unread message

Oleg Belousov

unread,
Jul 10, 2016, 3:02:02 PM7/10/16
to Ansible Project
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:


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?

Nico

unread,
Jul 10, 2016, 8:40:34 PM7/10/16
to Ansible Project
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

-Nico
Reply all
Reply to author
Forward
0 new messages