Strona 1 z 3

locale: Cannot set

: 28 listopada 2014, 17:32
autor: Deireadh
Witam :) . Czysty Debian 7 Wheezy 64bit + php, mysql itp. Niestety "locale" coś wariuje i nie mogę znaleźć pomocy.

Kod: Zaznacz cały

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

: 28 listopada 2014, 17:42
autor: marcin1982
W jakiej sytuacji pojawia się ten błąd? Co go generuje? Wróżbitę Macieja mamy zapytać?


Podaj wynik polecenia z konsoli:

Kod: Zaznacz cały

locale

: 28 listopada 2014, 18:10
autor: Deireadh
To był tylko wstęp... Nie znam się, a podam wszystko co trzeba:

Kod: Zaznacz cały

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=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

: 28 listopada 2014, 18:14
autor: marcin1982
Wykonaj polecenie - jako root:

Kod: Zaznacz cały

dpkg-reconfigure locales
Następnie wybierz język i kodowanie UTF-8 - domyślam się polski. Przejdź klawiszem TAB na przycisk [OK] i klepnij Enter. Potem zostaniesz zapytany o potwierdzenie, czy dany język ma być domyślnym. Zaakceptuj co tam wybierzesz.

: 28 listopada 2014, 18:18
autor: Deireadh
To wywala (jako root):

Kod: Zaznacz cały

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.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
Język debiana jakiego używam, to Angielski.

: 28 listopada 2014, 18:25
autor: dedito
spróbuj ponownie zainstalować

Kod: Zaznacz cały


apt-get install --reinstall locales

: 28 listopada 2014, 18:29
autor: Deireadh

Kod: Zaznacz cały

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2-mpm-prefork : Depends: apache2.2-bin (= 2.2.22-13+deb7u3) but it is not going to be installed
 apache2.2-common : Depends: apache2.2-bin (= 2.2.22-13+deb7u3) but it is not going to be installed
                    Depends: apache2-utils but it is not going to be installed
                    Depends: procps but it is not going to be installed
                    Depends: perl but it is not going to be installed
                    Recommends: ssl-cert but it is not going to be installed
 libbz2-1.0 : PreDepends: multiarch-support but it is not going to be installed
 libc6 : Depends: libgcc1 but it is not going to be installed
         Breaks: locales (< 2.19)
 libcomerr2 : PreDepends: multiarch-support but it is not going to be installed
 libdb5.1 : PreDepends: multiarch-support but it is not going to be installed
 libgssapi-krb5-2 : Depends: libkeyutils1 but it is not going to be installed
                    Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
                    PreDepends: multiarch-support but it is not going to be installed
 libk5crypto3 : Depends: libkeyutils1 but it is not going to be installed
                Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
                PreDepends: multiarch-support but it is not going to be installed
 libkrb5-3 : Depends: libkeyutils1 but it is not going to be installed
             Depends: libkrb5support0 (= 1.10.1+dfsg-5+deb7u2) but it is not going to be installed
             PreDepends: multiarch-support but it is not going to be installed
             Recommends: krb5-locales but it is not going to be installed
 libmagic1 : PreDepends: multiarch-support but it is not going to be installed
 libpcre3 : PreDepends: multiarch-support but it is not going to be installed
 libssl1.0.0 : Depends: debconf (>= 0.5) but it is not going to be installed or
                        debconf-2.0
               PreDepends: multiarch-support but it is not going to be installed
 libxml2 : Depends: liblzma5 (>= 5.1.1alpha+20120614) but it is not going to be installed
           PreDepends: multiarch-support but it is not going to be installed
           Recommends: xml-core but it is not going to be installed
 locales : Depends: glibc-2.13-1
           Depends: debconf (>= 0.5) but it is not going to be installed or
                    debconf-2.0
 php5-common : Depends: sed (>= 4.1.1-1) but it is not going to be installed
               Depends: psmisc (>= 22.15-1~) but it is not going to be installed
               Depends: lsof but it is not going to be installed
               PreDepends: dpkg (>= 1.15.7.2~) but it is not going to be installed
 tzdata : Depends: debconf (>= 0.5) but it is not going to be installed or
                   debconf-2.0
 ucf : Depends: debconf (>= 1.5.19) but it is not going to be installed
       Depends: coreutils (>= 5.91) but it is not going to be installed
 zlib1g : PreDepends: multiarch-support but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
locale wyrzuca to co wcześniej

: 28 listopada 2014, 18:33
autor: dedito
Widzę, że masz sporo problemów z zależnościami, a samo locale boli zapewne to, że masz zainstalowaną inną wersję glibc.
Pokaż

Kod: Zaznacz cały

 dpkg -l | grep glibc

: 28 listopada 2014, 18:38
autor: Deireadh
Nie wyrzuca nic

: 28 listopada 2014, 18:40
autor: dedito
Sory, pokaż

Kod: Zaznacz cały

 dpkg -l | grep libc
Czym tak popsułeś zależności paczek?