Merhaba Arkadaşlar,
aptitude install kullandığımda şöyle bir hata alıyorum.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "tr_TR.UTF-8",
LANG = "tr_TR.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
Bu hatayı nasıl giderebilirim? Çözüm önerilerinizi bekliyorum.
Tam olarak verdiğiniz komut nedir? Hangi paketi kurmaya çalışıyorsunuz?
Mesela aptitude install ffmpeg diyorum :) Sadece yazılıma özel bir hata olduğunu sanmıyorum. Genel olarak böyle bir hata mevcut :)
sudo dpkg-reconfigure locales
sudo locale-gen
komutlarını dener misin?
chavrash:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "tr_TR.UTF-8",
LANG = "tr_TR.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
Package `locales' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: locales is not installed
chavrash:~# locale-gen
-bash: locale-gen: command not found
Başlarına sudo koyup çalıştırır mısın? İzin hatası vermemesine rağmen başına sudo koymazsan aynı işlemi yapmıyor.
root ile girdiğim için sudo yazmadım :)
Konsolda "locale" komutunun çıktısı nedir?
Ve şu dosyanın içeriği:
cat /etc/default/locale
Ve şu komutun çıktısı:
echo $LANG
chavrash:~# cat /etc/default/locale
cat: /etc/default/locale: No such file or directory
chavrash:~# echo $LANG
tr_TR.UTF-8
Locale çıktısı;
chavrash:~# 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=tr_TR.UTF-8
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=tr_TR.UTF-8
apt-get çalışmadığına göre,
Intrepid ise; http://gr.archive.ubuntu.com/ubuntu/pool/main/l/langpack-locales/locales_2.7.9-5_all.deb
Jaunty ise; http://gr.archive.ubuntu.com/ubuntu/pool/main/l/langpack-locales/locales_2.9+cvs20090214-7_all.deb
Hardy ise; http://gr.archive.ubuntu.com/ubuntu/pool/main/l/langpack-locales/locales_2.7.9-4_all.deb
locale paketini indirerek
dpkg -i /nerede/bu/paket.deb
kurmak kökten çözüm olabilir. Eğer bu üçünden başka bir sürüm ise, http://packages.ubuntu.com/ bu adresten "locale" ismiyle arattığında çıkar.
Debian 4.0 mış :) İlgili paketi buldum kurdum.
Şu an sorun gözükmüyor :)
Teşekkürler.
Ben de referans olması açısından kendi sistemimdeki "/etc/default/locale" dosyasının içeriğini vereyim:
cat /etc/default/locale
Alıntı YapLANG="tr_TR.UTF-8"
Ayrıca, Ubuntuforums.org'da açılan benzer bşr konu ve çözüm önerileri için:
http://ubuntuforums.org/showthread.php?t=319397
Debian mı kullanıyorsunuz? Şu halde mesele çözüldü diyebilir miyiz? Öyleyse başlığı kapatalım.
Masaüstü PC değildi :) Sunucu üzerinde bu işlemi uygulamıştım.
Kısacası sorun çözülmüş müydü?
Evet çözüldüğünü belirttim yukarıda...