LINUX.ORG.RU
ФорумAdmin

проблемы с locale

 ,


0

1

Доброго времени суток.
Появилась проблема с locale, а исправить не могу.
# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ru_UA.UTF-8
LANGUAGE=ru_UA:ru
LC_CTYPE=«ru_UA.UTF-8»
LC_NUMERIC=«ru_UA.UTF-8»
LC_TIME=«ru_UA.UTF-8»
LC_COLLATE=«ru_UA.UTF-8»
LC_MONETARY=«ru_UA.UTF-8»
LC_MESSAGES=«ru_UA.UTF-8»
LC_PAPER=«ru_UA.UTF-8»
LC_NAME=«ru_UA.UTF-8»
LC_ADDRESS=«ru_UA.UTF-8»
LC_TELEPHONE=«ru_UA.UTF-8»
LC_MEASUREMENT=«ru_UA.UTF-8»
LC_IDENTIFICATION=«ru_UA.UTF-8»
LC_ALL=ru_UA.UTF-8

# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX

# export LC_ALL=«ru_UA.UTF-8»
-bash: warning: setlocale: LC_ALL: cannot change locale (ru_UA.UTF-8)

# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = «ru_UA:ru»,
LC_ALL = «ru_UA.UTF-8»,
LC_PAPER = «ru_UA.UTF-8»,
LC_ADDRESS = «ru_UA.UTF-8»,
LC_MONETARY = «ru_UA.UTF-8»,
LC_NUMERIC = «ru_UA.UTF-8»,
LC_TELEPHONE = «ru_UA.UTF-8»,
LC_IDENTIFICATION = «ru_UA.UTF-8»,
LC_MEASUREMENT = «ru_UA.UTF-8»,
LC_TIME = «ru_UA.UTF-8»,
LC_NAME = «ru_UA.UTF-8»,
LANG = «ru_UA.UTF-8»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed

/etc/default/locale:
LANG=«ru_UA.UTF-8»
LANGUAGE=«ru_UA:ru»
LC_ALL=«ru_UA.UTF-8»

на мыло еще это приходит:
/etc/cron.weekly/man-db:
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct



Последнее исправление: ecspl01t (всего исправлений: 1)

попробуй пакет переставить, тебе ж говорят что ним что-то не то

aptitude reinstall locales
или может быть просто
apt-get -f install

maloi ★★★★★
()
Ответ на: комментарий от maloi

# aptitude reinstall locales
locales is not currently installed, so it will not be reinstalled.
locales is not currently installed, so it will not be reinstalled.
No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = «ru_UA:ru»,
LC_ALL = «ru_UA.UTF-8»,
LC_TIME = «ru_UA.UTF-8»,
LC_MONETARY = «ru_UA.UTF-8»,
LC_ADDRESS = «ru_UA.UTF-8»,
LC_TELEPHONE = «ru_UA.UTF-8»,
LC_NAME = «ru_UA.UTF-8», LC_MEASUREMENT = «ru_UA.UTF-8», LC_IDENTIFICATION = «ru_UA.UTF-8», LC_NUMERIC = «ru_UA.UTF-8»,
LC_PAPER = «ru_UA.UTF-8»,
LANG = «ru_UA.UTF-8»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ecspl01t
() автор топика
Ответ на: комментарий от maloi

# aptitude install locales
The following NEW packages will be installed:
locales{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5652 kB of archives. After unpacking 15.5 MB will be used.
The following packages have unmet dependencies:
locales : Depends: glibc-2.13-1 which is a virtual package.
libc6 : Breaks: locales (< 2.19) but 2.13-38+deb7u6 is to be installed.
libc6:i386 : Breaks: locales (< 2.19) but 2.13-38+deb7u6 is to be installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) locales [Not Installed]


Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = «ru_UA:ru», LC_ALL = «ru_UA.UTF-8», LC_TIME = «ru_UA.UTF-8», LC_MONETARY = «ru_UA.UTF-8», LC_ADDRESS = «ru_UA.UTF-8», LC_TELEPHONE = «ru_UA.UTF-8», LC_NAME = «ru_UA.UTF-8», LC_MEASUREMENT = «ru_UA.UTF-8», LC_IDENTIFICATION = «ru_UA.UTF-8», LC_NUMERIC = «ru_UA.UTF-8», LC_PAPER = «ru_UA.UTF-8», LANG = «ru_UA.UTF-8»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

ecspl01t
() автор топика
Ответ на: комментарий от maloi

# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 CD Binary-1 20141018-13:06]/ wheezy main

deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx

deb http://ftp.ua.debian.org/debian/ wheezy main
deb-src http://ftp.ua.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.ua.debian.org/debian/ wheezy-updates main
deb-src http://ftp.ua.debian.org/debian/ wheezy-updates main

#deb http://ftp.de.debian.org/debian/ jessie main contrib non-free

# aptitude versions ^locales$ ^libc6$
Package libc6:
p 2.13-38+deb7u4 stable 990
p 2.13-38+deb7u6 stable 990
i 2.19-13 100

Package libc6:i386:
p A 2.13-38+deb7u4 stable 990
p A 2.13-38+deb7u6 stable 990
i A 2.19-13 100

Package locales:
p 2.13-38+deb7u4 stable 990
p 2.13-38+deb7u6 stable 990

то вроде нет..

ecspl01t
() автор топика
Ответ на: комментарий от ecspl01t

то вроде нет..

как это нет, если libc6 у тебя из jessie стоит?

либо откатывай её взад, либо раскомментируй строку с jessie в sources.list и ставь locales из него, а лучше в этом случае полностью мигрировать на jessie.

maloi ★★★★★
()
Ответ на: комментарий от maloi

вы не расскажите поэтапно, а то я не совсем в этом ориентируюсь.. что будет стабильней и лучше ? мне нужна была одна библиотека и для этого я использовал jessie

ecspl01t
() автор топика
24 июня 2016 г.

Я некропостер!

Только что столкнулся с такой же проблемой на своей vps-ке.

Гугл мне помог. Все наладилось.

Twissel ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.