A
A
Artem2020-08-07 13:23:34
ubuntu
Artem, 2020-08-07 13:23:34

*** update-locale: Error: invalid locale settings: LC_ALL=ru_RU.utf8?

Step 1/11 : FROM yiisoftware/yii2-php:7.3-apache
 ---> f8c7ac667442
Step 2/11 : RUN apt-get update && apt-get -y install sudo && apt-get install -y locales
 ---> Using cache
 ---> 8e8c0845af60
Step 3/11 : RUN locale-gen ru_RU
 ---> Using cache
 ---> b48073c1b005
Step 4/11 : RUN locale-gen ru_RU.utf8
 ---> Using cache
 ---> 5c03b6dd52c8
Step 5/11 : RUN update-locale LC_ALL=ru_RU.utf8
 ---> Running in 53c966b3fd1b
*** update-locale: Error: invalid locale settings:  LC_ALL=ru_RU.utf8
ERROR: Service 'app' failed to build: The command '/bin/sh -c update-locale LC_ALL=ru_RU.utf8' returned a non-zero code: 255


If step 5 is not added, then after starting the locale-a container, it only gives these items:
C
C.UTF-8
POSIX

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2020-08-07
@proudmore

please
apt install locales-all
check what
ru_RU.utf8
appeared in
/etc/locale.alias

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question