проблемы с локалью на хостинговом впс

Z
На сайте с 15.09.2010
Offline
20
755

имеется впс на хостинговом серваке.. так вот, при попытке установить пакет php5-memcache выдает такую штуку:

Reading package lists... Done

Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php5-memcache
0 upgraded, 1 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 0B/40.6kB of archives.
After this operation, 168kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ru_RU.utf8"
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
Setting up libc6 (2.7-18lenny7) ...
invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.
dpkg: error processing libc6 (--configure):
subprocess post-installation script returned error exit status 100
Errors were encountered while processing:
libc6
E: Sub-process /usr/bin/dpkg returned an error code (1)

где-то читал, что это решается с помощью

# apt-get install locales

# dpkg-reconfigure locales

однако,

apt-get install locales  

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
locales
0 upgraded, 1 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 0B/4432kB of archives.
After this operation, 11.9MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ru_RU.utf8"
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
Preconfiguring packages ...
Setting up libc6 (2.7-18lenny7) ...
invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.
dpkg: error processing libc6 (--configure):
subprocess post-installation script returned error exit status 100
Errors were encountered while processing:
libc6
E: Sub-process /usr/bin/dpkg returned an error code (1)

уже ума не приложу чем можно помочь больному :(

cat /etc/debian_version

5.0.8

Игры (подписки, псевдо-подписки мтс+билайн) (http://www.prostopartnerka.ru/?refid=1001)
AU
На сайте с 03.09.2009
Offline
88
#1

Проблема с локалью вторична.

Вот где проблема:

Setting up libc6 (2.7-18lenny7) ...

invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.

dpkg: error processing libc6 (--configure):

subprocess post-installation script returned error exit status 100

Errors were encountered while processing:

libc6

E: Sub-process /usr/bin/dpkg returned an error code (1)

Unix в вопросах и ответах https://unixhow.com (https://unixhow.com)
Z
На сайте с 15.09.2010
Offline
20
#2

apt-get install --reinstall libc6

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ru_RU.utf8"
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
Setting up libc6 (2.7-18lenny7) ...
invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.
dpkg: error processing libc6 (--configure):
subprocess post-installation script returned error exit status 100
Errors were encountered while processing:
libc6
E: Sub-process /usr/bin/dpkg returned an error code (1)

что можете посоветовать?

zkolobov добавил 04-08-2011 в 20:36

короче говоря, помогло вот что..

cd /etc/apt

/etc/apt# wget http://ftp.uk.debian.org/debian/pool/main/g/glibc/libc6_2.7-18lenny7_i386.deb
/etc/apt# cd /
/# dpkg-deb -x /etc/apt/libc6_2.7-18lenny7_i386.deb .

может кому-то и поможет..

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий