Announcement

Collapse
No announcement yet.

perl: warning: Setting locale failed.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    perl: warning: Setting locale failed.

    I got below mentioned message since I have installed Kubuntu about 3 years ago:

    perl: warning: Please check that your locale settings:
    LANGUAGE = "",
    LC_ALL = (unset),
    LC_TIME = "de_AT.UTF-8",
    LC_MONETARY = "de_AT.UTF-8",
    LC_CTYPE = "C.UTF-8",
    LC_ADDRESS = "de_AT.UTF-8",
    LC_TELEPHONE = "de_AT.UTF-8",
    LC_NAME = "de_AT.UTF-8",
    LC_MEASUREMENT = "de_AT.UTF-8",
    LC_IDENTIFICATION = "de_AT.UTF-8",
    LC_NUMERIC = "de_AT.UTF-8",
    LC_PAPER = "de_AT.UTF-8",
    LANG = "en_AT.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    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
    perl: warning: Setting locale failed.

    How can that be fixed?

    Also weird is that under /etc/default/locale​ it says that the Language is en_US.UTF-8 thus I do not get why it says in the error that language = nothing set.

    LC_ALL is missing but what should that be set to?
    Last edited by Fred-VIE; Mar 27, 2025, 02:23 PM.

    #2
    • LC_ALL is normally unset; it can be used as an override for all the others
    • "Falling back to the standard locale ("C") ... No such file or directory" suggests the file /usr/share/i18n/locales/C is not there. Can you check whether the directory exists, and has hundreds of files (including de_AT)? If it does, maybe the environment variable LOCPATH is set? If the directory is missing, apt-file search tells me that the locales package has it.
    • running locale in a konsole might be informative, as might locale -a
    I suspect you've got some environment variables related to locales badly set. I suggest running env in a konsole and reviewing them.
    Regards, John Little

    Comment


      #3
      It is there, C is a file though.
      de_AT is in the locales folder

      Originally posted by jlittle View Post
      [LIST]
      If it does, maybe the environment variable LOCPATH is set?
      • running locale in a konsole might be informative, as might locale -a
      I suspect you've got some environment variables related to locales badly set. I suggest running env in a konsole and reviewing them.​
      I guess this is void now because Kubuntu does not start anymore after the update to 24.4 thus I cannot try console commands.

      Seems my bad feeling about that update was right, I shouldnt have done it :/
      Last edited by Fred-VIE; Mar 27, 2025, 04:51 PM.

      Comment

      Working...
      X