Ubuntu 12.10 "locales" beállítása

Fórumok

A segítségeteket kérem. Próbálom a rossz "locales" beállítást helyrehozni, de úgy látszik "kevés" vagyok hozzá. (Már kissé "szétgugliztam" a szememmet. Az öreg gép miatt (vga-xorg-gnome-stb.), elég sok "ppa"-t kellett +ban felvennem, valószínüleg egyik telepítés "cseszte" el...)

K7S5A:/home/*****/Downloads# locale-gen hu_HU.UTF-8
Generating locales...
hu_HU.UTF-8... up-to-date
Generation complete.
root@K7S5A:/home/*****/Downloads# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "hu_HU.UTF-8",
LC_ALL = (unset),
LC_PAPER = "hu_HU.UTF-8",
LC_ADDRESS = "hu_HU.UTF-8",
LC_MONETARY = "hu_HU.utf8",
LC_NUMERIC = "hu_HU.utf8",
LC_TELEPHONE = "hu_HU.UTF-8",
LC_IDENTIFICATION = "hu_HU.UTF-8",
LC_MEASUREMENT = "hu_HU.utf8",
LC_TIME = "hu_HU.utf8",
LC_NAME = "hu_HU.UTF-8",
LANG = "hu"
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
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... hash collision (1688509771) en_HK.utf8, de_CH.utf8
failed
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
hu_HU.UTF-8... up-to-date
Generation complete.

Ennyi a történet.... :-(

Hozzászólások

Ja még, hozzátartozik, elég sok helyen kínai írásjelekkel küzdök...???? Egyébként ez egy új telepítés lenne elvileg "szűz" merevlemezre. Nem, nem új, csak "clean all" volt előtte. Ezen a gépen mindig Ubuntu volt!

Futtasd ezt:
apt-cache search base|grep hu
és nézd meg, hogy melyik olyan, aminek szted telepítve kell lennie és nincs
(dpkg -l|grep Hungar)

A fenn lévő csomagokra ezt kaptam...

root@K7S5A:/home/*****/Downloads# dpkg-I | grep Hungar
Eln\xe9z\xe9st, a command-not-found \xf6sszeomlott. K\xfcldj\xf6n hibajelent\xe9st ide:
https://bugs.launchpad.net/command-not-found/+filebug
A jelent\xe9sbe vegye be a k\xf6vetkez\u0151 inform\xe1ci\xf3kat:

command-not-found verzi\xf3: 0.3
Python verzi\xf3: 3.2.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Kiv\xe9telinform\xe1ci\xf3k:

unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.2/locale.py", line 541, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
root@K7S5A:/home/*****/Downloads#

Még jó hogy helyettem a rendszer legalább "ismeri" a parancsot... :-)

root@K7S5A:/home/*****/Downloads# dpkg-l | grep Hungar
Eln\xe9z\xe9st, a command-not-found \xf6sszeomlott. K\xfcldj\xf6n hibajelent\xe9st ide:
https://bugs.launchpad.net/command-not-found/+filebug
A jelent\xe9sbe vegye be a k\xf6vetkez\u0151 inform\xe1ci\xf3kat:

command-not-found verzi\xf3: 0.3
Python verzi\xf3: 3.2.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Kiv\xe9telinform\xe1ci\xf3k:

unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.2/locale.py", line 541, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
root@K7S5A:/home/*****/Downloads#

Bocs, de nem ismerem elég jól a linux parancsokat, egy barátomnak próbálok segíteni, aki még annyira sem...
(Erre mondják, hogy "vak vezet világtalant...") Azt hiszem ez már így beszédesebb, - és talán meg is jegyzem.

root@K7S5A:/home/*****/Downloads# dpkg -l | grep Hungar
ii firefox-locale-hu 16.0.2+build1-0ubuntu0.12.10.1 i386 Hungarian language pack for Firefox
ii hunspell-hu 1:3.3.0-2ubuntu3 all Hungarian dictionary for hunspell
ii hyphen-hu 1:3.3.0-2ubuntu3 all Hungarian hyphenation patterns for LibreOffice/OpenOffice.org
ii language-pack-gnome-hu 1:12.10+20121009 all GNOME translation updates for language Hungarian
ii language-pack-gnome-hu-base 1:12.10+20121009 all GNOME translations for language Hungarian
ii language-pack-hu 1:12.10+20121009 all translation updates for language Hungarian
ii language-pack-hu-base 1:12.10+20121009 all translations for language Hungarian
ii libreoffice-help-hu 1:3.6.2~rc2-0ubuntu3 all office productivity suite -- Hungarian help
ii libreoffice-l10n-hu 1:3.6.2~rc2-0ubuntu3 all office productivity suite -- Hungarian language package
ii mythes-hu 1:3.3.0-2ubuntu3 all Hungarian Thesaurus for LibreOffice/OpenOffice.org
ii thunderbird-locale-hu 1:16.0.2+build1-0ubuntu0.12.10.1 i386 Hungarian language pack for Thunderbird
root@K7S5A:/home/*****/Downloads#

A legelsőre, (soknak tünt..)

root@K7S5A:/home/*****/Downloads# apt-cache search base | grep hu
hunspell - spell checker and morphological analyzer (program)
hunspell-an - Aragonese dictionary for hunspell
hunspell-tools - tools for hunspell
language-pack-csb - translation updates for language Kashubian
language-pack-csb-base - translations for language Kashubian
language-pack-cv - translation updates for language Chuvash
language-pack-cv-base - translations for language Chuvash
language-pack-gnome-csb - GNOME translation updates for language Kashubian
language-pack-gnome-csb-base - GNOME translations for language Kashubian
language-pack-gnome-cv - GNOME translation updates for language Chuvash
language-pack-gnome-cv-base - GNOME translations for language Chuvash
language-pack-gnome-hu - GNOME translation updates for language Hungarian
language-pack-gnome-hu-base - GNOME translations for language Hungarian
language-pack-gnome-lt - GNOME translation updates for language Lithuanian
language-pack-gnome-lt-base - GNOME translations for language Lithuanian
language-pack-gnome-shs - GNOME translation updates for language Shuswap
language-pack-gnome-shs-base - GNOME translations for language Shuswap
language-pack-gnome-ug - GNOME translation updates for language Uighur; Uyghur
language-pack-gnome-ug-base - GNOME translations for language Uighur; Uyghur
language-pack-hu - translation updates for language Hungarian
language-pack-hu-base - translations for language Hungarian
language-pack-lt - translation updates for language Lithuanian
language-pack-lt-base - translations for language Lithuanian
language-pack-shs - translation updates for language Shuswap
language-pack-shs-base - translations for language Shuswap
language-pack-ug - translation updates for language Uighur; Uyghur
language-pack-ug-base - translations for language Uighur; Uyghur
libhunspell-1.3-0 - spell checker and morphological analyzer (shared library)
libhunspell-1.3-0-dbg - spell checker and morphological analyzer (debug symbols)
libhunspell-dev - spell checker and morphological analyzer (development)
shunit2 - unit test framework for Bourne based shell scripts
zeitgeist-datahub - event logging framework - passive logging daemon
mbrola-hu1 - Hungarian male voice for Mbrola
chuck - Concurrent, On-the-fly Audio Programming Language
downtimed - monitor of downtime, shutdown, and crashes
ffindex - simple index/database for huge amounts of small files
ffindex-dbg - simple index/database for huge amounts of small files (debug)
gnome-exe-thumbnailer - Wine .exe and other executable thumbnailer for Gnome
httpie - CLI, cURL-like tool for humans
hunspell-de-at-frami - Austrian (German) dictionary for hunspell ("frami" version)
hunspell-de-ch-frami - Swiss (German) dictionary for hunspell ("frami" version)
hunspell-de-de-frami - German dictionary for hunspell ("frami" version)
iamerican-huge - American English dictionary for ispell (huge)
ibritish-huge - British English dictionary for ispell (huge)
kde-thumbnailer-deb - KDE plugin to show thumbnails of Debian package files
kffmpegthumbnailer - video thumbnailer for KDE
libffindex0 - library for simple index/database for huge amounts of small files
libffindex0-dev - library for simple index/database for huge amounts of small files (development)
libformat-human-bytes-perl - Format a bytecount and make it human readable
libghc-random-shuffle-dev - random shuffle library
libghc-random-shuffle-doc - random shuffle library; documentation
libghc-random-shuffle-prof - random shuffle library; profiling libraries
libhugs-alut-bundled - A binding for the OpenAL Utility Toolkit
libhugs-base-bundled - Basic libraries
libhugs-glut-bundled - A binding for the OpenGL Utility Toolkit
libhugs-haskell98-bundled - Compatibility with Haskell 98
libhugs-hgl-bundled - A simple graphics library based on X11 or Win32
libhupnp0 - Library for building UPnP devices
librime-data-bopomofo - RIME schema data - Bopomofo (a.k.a Zhu Yin)
librime-data-double-pinyin - RIME schema data - Double Pinyin (a.k.a Zi Ran Ma Shuang Pin)
libtime-human-perl - convert localtime() format to "speaking clock" time
python-buzhug - pure-Python database engine, using a Pythonic, no-SQL syntax
randomplay - command-line based shuffle music player that remembers songs between sessions
ruby-chunky-png - pure ruby library for read/write, chunk-level access to PNG files
shush - runs a command and optionally reports its output by mail
teseq - utility for rendering terminal typescripts human-readable
thunar-media-tags-plugin - Media tags plugin for Thunar file manager
xul-ext-calendar-timezones - Calendar Extension for Thunderbird - Timezone data
xul-ext-gdata-provider - Calendar Extension for Thunderbird - Google Calendar support
xul-ext-lightning - Calendar Extension for Thunderbird
xzgv - Picture viewer for X with a thumbnail-based selecto
root@K7S5A:/home/*****/Downloads#

root@K7S5A:/home/*****/Downloads# locale-set LC_ALL="hu_HU.UTF-8"
Eln\xe9z\xe9st, a command-not-found \xf6sszeomlott. K\xfcldj\xf6n hibajelent\xe9st ide:
https://bugs.launchpad.net/command-not-found/+filebug
A jelent\xe9sbe vegye be a k\xf6vetkez\u0151 inform\xe1ci\xf3kat:

command-not-found verzi\xf3: 0.3
Python verzi\xf3: 3.2.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Kiv\xe9telinform\xe1ci\xf3k:

unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.2/locale.py", line 541, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
root@K7S5A:/home/*****/Downloads#

Nem locale-set hanem "set LC_ALL="hu_HU.UTF-8"
Amúgy ha nem vagy biztos abban, amit leírsz, írj be 1 karaktert, és nyomd meg a tabot. ha nem csinál semmit, akkor nyomd meg mégegyszer, és láss csodát, kiírja miket tudsz csinálni.
Ubi ráadásul már kapcsolókat is kiír időnként.

Akkor ismét:

root@K7S5A:/home/*****/Downloads# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "hu_HU.UTF-8",
LC_ALL = (unset),
LC_PAPER = "hu_HU.UTF-8",
LC_ADDRESS = "hu_HU.UTF-8",
LC_MONETARY = "hu_HU.utf8",
LC_NUMERIC = "hu_HU.utf8",
LC_TELEPHONE = "hu_HU.UTF-8",
LC_IDENTIFICATION = "hu_HU.UTF-8",
LC_MEASUREMENT = "hu_HU.utf8",
LC_TIME = "hu_HU.utf8",
LC_NAME = "hu_HU.UTF-8",
LANG = "hu"
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
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
hu_HU.UTF-8... up-to-date
Generation complete.
root@K7S5A:/home/*****/Downloads#

Lehet, hogy hosszabbnak kéne lennie?

root@K7S5A:/home/*****# dpkg -l | grep i18
ii debconf-i18n 1.5.46ubuntu1 all full internationalization support for debconf
ii intltool-debian 0.35.0+20060710.1 all Help i18n of RFC822 compliant config files
ii libmono-i18n-west4.0-cil 2.10.8.1-5ubuntu1 all Mono I18N.West library (for CLI 4.0)
ii libmono-i18n4.0-cil 2.10.8.1-5ubuntu1 all Mono I18N base library (for CLI 4.0)
ii libtext-wrapi18n-perl 0.06-7 all internationalized substitute of Text::Wrap
root@K7S5A:/home/*****#

Visszanézve a reconfigure-t...
Keress rá légyszi a libencode-locale-perl csomagra a telepített csomik között. Ha nincs, tedd fel. Valamiért a perl nem tudja átváltani a locale encodingot.
Legalábbis az sem.
Tovább gondolkoztam:
localedef --list-archive <--Ezt a parancsot add ki. Ezután néhány könyvtár tartalmát fogjuk megnézni.

root@K7S5A:/home/*****# apt-get install libencode-locale-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libencode-locale-perl is already the newest version.
libencode-locale-perl set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

"set to manually installed" ez mire utal?

root@K7S5A:/home/karcsi# localedef --list-archive
de_CH.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
hu_HU.utf8
zh_CN.utf8
zh_SG.utf8

subscribe
Off: Miért szereted annyira az "idézőjeleket"?

Hát..? Ha a magyar szövegben idegen szót használok, vagy azt toldalékolom akkor kiemelésképpen, vagy - és a "legutolsó" eset, - :) - ha más értelemben használom, mint ami szó eredeti értelme. (Nem biztos, hogy összhangban teszem az akadémikus magyar nyelvtannal...)

Közben keresem én is az okot, egy "gwrite" nevű programot "kikukáztam" mert a kínai karakterek fő forrása lehetett. (--purge + autoremove)
Eltávolítottam egy "amsn"-t is, mert arra úgysem lesz szükség. Az "live-msn"-t a Microsoft "kukázza" éppen ki.)

És igazából azért vágynék az egyszerű szöveges fájlként konfigurálható konfig állományokra. Mennyivel egyszerűbb volt, mint ma az "xml"-, "perl"-, "python"-os megoldások. Bár ha jól működik, persze semmi bajom velük. - (Ízelítő, amikor következetesen használom, persze én sem mindig.)

Miért van ennyi "def." angol? Nekem elég lenne csak az amerikai, esetleg brit és magyar UTF-8 esetleg a latin_2-es támogatás. A többit hogyan lehet az alapértelmezettek közül eltávolítani? Vagy a fejlesztők a különböző "app"-jai igénylik ezt?

Most itt tartok:

root@K7S5A:/# 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=hu
LANGUAGE=hu_HU.UTF-8
LC_CTYPE="hu"
LC_NUMERIC=hu_HU.utf8
LC_TIME=hu_HU.utf8
LC_COLLATE="hu"
LC_MONETARY=hu_HU.utf8
LC_MESSAGES="hu"
LC_PAPER=hu_HU.UTF-8
LC_NAME=hu_HU.UTF-8
LC_ADDRESS=hu_HU.UTF-8
LC_TELEPHONE=hu_HU.UTF-8
LC_MEASUREMENT=hu_HU.utf8
LC_IDENTIFICATION=hu_HU.UTF-8
LC_ALL=

Köszönöm, legalább 100-or már elkövettem mindkettőt, - különböző módositások után. Az eredmény jelenleg:

root@K7S5A:/home/*****# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "hu_HU.UTF-8",
LC_ALL = (unset),
LC_PAPER = "hu_HU.UTF-8",
LC_ADDRESS = "hu_HU.UTF-8",
LC_MONETARY = "hu_HU.utf8",
LC_NUMERIC = "hu_HU.utf8",
LC_TELEPHONE = "hu_HU.UTF-8",
LC_IDENTIFICATION = "hu_HU.UTF-8",
LC_MEASUREMENT = "hu_HU.utf8",
LC_TIME = "hu_HU.utf8",
LC_NAME = "hu_HU.UTF-8",
LANG = "hu"
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
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... hash collision (1688509771) en_HK.utf8, de_CH.utf8
failed
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
hu_HU.ISO-8859-2... up-to-date
hu_HU.UTF-8... up-to-date
Generation complete.

Mégegyszer köszönöm, jó pár parancs használatát megtanultam a problémán keresztül a segítségeddel. Le fogom szedni a teljes "locales" szoftver-anyagát és újra feltelepítem. Ha valamilyen konkrét siker is lesz - esetleg tanulságokkal, - azt feltétlenül ideírom. (Soha nincs kedvem rendszert újratelepíteni, pedig gyorsabb lenne. De akkor meg az okok maradnának rejtve, azt még nehezebben viselem mint az okkeresést.)