Announcement

Collapse
No announcement yet.

Suddenly can't use other system language than English anymore

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Suddenly can't use other system language than English anymore

    I'm using Kubuntu Trusty Tahr x64 with the most current updates from the Kubuntu Launchpad repositories.

    I'm living in good old Germany and have the German and Japanese language packs installed. I'm using mostly German, but sometimes also Japanese.

    All this worked fine, until I just did a full update in Synaptic, and I noticed that it also had lots of updated Kubuntu packages.
    After the update had completed without any errors, I rebooted.
    I was then very surprised to find that after logging in again after the reboot, the entire Kubuntu and all applications (even unrelated applications like Firefox) had suddenly switched to English.
    I opened the "Locale" module in System Settings, where I was greeted with the following weird warning:



    After that, got an almost identical second warning, just with Japanese (ja) instead of German.
    It subsequently removed German and Japanese from the list on the right, leaving only English.

    I've then tried re-adding German, and it was downloaded properly and added to the list again:



    However, as soon as I clicked on "Apply", the weird warning from above appeared once more, and German was once again removed from the list.
    I then tried adding Japanese. Also here, it was added fine and appeared in the list on the right, but as soon as I clicked on "Apply", the weird warning appeared again, and Japanese was removed again from the list.

    I've then tried loggin out and logging back in and then adding the language, but it was the very same and didn't work either. Rebooting and then trying to add the language also produced the same non-working result.

    Next I've opened Synaptic and found that the language package (kde-l10n-de) is still installed. When trying to re-install it, I got a number of error messages:

    Code:
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = "en",
        LC_ALL = (unset),
        LC_PAPER = "en_DE.UTF-8",
        LC_ADDRESS = "en_DE.UTF-8",
        LC_MONETARY = "en_DE.UTF-8",
        LC_NUMERIC = "en_DE.UTF-8",
        LC_TELEPHONE = "en_DE.UTF-8",
        LC_IDENTIFICATION = "en_DE.UTF-8",
        LC_MEASUREMENT = "en_DE.UTF-8",
        LC_TIME = "en_DE.UTF-8",
        LC_NAME = "en_DE.UTF-8",
        LANG = "en_DE.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
    Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 94, <> line 1.
    Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 106, <> line 1.
    (Reading database ... 172502 files and directories currently installed.)
    Preparing to unpack .../kde-l10n-de_4%3a4.13.1-0ubuntu0.1~ubuntu14.04~ppa2_all.deb ...
    Unpacking kde-l10n-de (4:4.13.1-0ubuntu0.1~ubuntu14.04~ppa2) over (4:4.13.1-0ubuntu0.1~ubuntu14.04~ppa2) ...
    Processing triggers for man-db (2.6.7.1-1) ...
    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
    Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 94.
    Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 106.
    Setting up kde-l10n-de (4:4.13.1-0ubuntu0.1~ubuntu14.04~ppa2) ...
    Looks like something went badly wrong with the last update of the system packages.

    #2
    Yup, looks like a failed update. Perhaps the "locale" package didn't install nicely.

    You can reinstall it using
    sudo apt-get --reinstall install locale

    However, it may be that other packages did not update correctly, either.

    Use
    sudo apt-get -f install
    If it repairs something the repeat until it reports no change.

    And, do
    sudo dpkg --configure -a
    likewise.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Originally posted by GreyGeek View Post
      Yup, looks like a failed update. Perhaps the "locale" package didn't install nicely.

      You can reinstall it using
      sudo apt-get --reinstall install locale

      However, it may be that other packages did not update correctly, either.

      Use
      sudo apt-get -f install
      If it repairs something the repeat until it reports no change.

      And, do
      sudo dpkg --configure -a
      likewise.
      "sudo apt-get -f install" didn't do anything, no change - so no broken packages.
      "sudo dpkg --configure -a" didn't do anything either.
      The reinstall got me an error:

      Code:
      sudo apt-get --reinstall install locale
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package locale
      Then I took a look in Synaptic and found out that the package is named "locales", not "locale".
      Reinstalling the "locales" package brought the following errors:

      Code:
      sudo apt-get --reinstall install locales
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
      Need to get 2695 kB of archives.
      After this operation, 0 B of additional disk space will be used.
      Get:1 http://de.archive.ubuntu.com/ubuntu/ trusty-updates/main locales all 2.13+git20120306-12.1 [2695 kB]
      Fetched 2695 kB in 1s (1956 kB/s)  
      
      perl: warning: Setting locale failed.
      perl: warning: Please check that your locale settings:
              LANGUAGE = "en",
              LC_ALL = "",
              LC_PAPER = "en_DE.UTF-8",
              LC_ADDRESS = "en_DE.UTF-8",
              LC_MONETARY = "en_DE.UTF-8",
              LC_NUMERIC = "en_DE.UTF-8",
              LC_TELEPHONE = "en_DE.UTF-8",
              LC_MESSAGES = "de_DE.UTF-8",
              LC_COLLATE = ""de_DE.UTF-8"",
              LC_IDENTIFICATION = "en_DE.UTF-8",
              LC_MEASUREMENT = "en_DE.UTF-8",
              LC_CTYPE = "de_DE.UTF-8",
              LC_TIME = "en_DE.UTF-8",
              LC_NAME = "en_DE.UTF-8",
              LANG = "en_DE.UTF-8"
          are supported and installed on your system.
      perl: warning: Falling back to the standard locale ("C").
      locale: Cannot set LC_ALL to default locale: No such file or directory
      
      (Reading database ... 172502 files and directories currently installed.)
      Preparing to unpack .../locales_2.13+git20120306-12.1_all.deb ...
      Unpacking locales (2.13+git20120306-12.1) over (2.13+git20120306-12.1) ...
      Processing triggers for man-db (2.6.7.1-1) ...
      locale: Cannot set LC_ALL to default locale: No such file or directory
      Setting up locales (2.13+git20120306-12.1) ...
      Generating locales...
        de_AT.UTF-8... up-to-date
        de_BE.UTF-8... up-to-date
        de_CH.UTF-8... up-to-date
        de_DE.UTF-8... up-to-date
        de_LI.UTF-8... up-to-date
        de_LU.UTF-8... up-to-date
        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
        ja_JP.UTF-8... up-to-date
      Generation complete.
      No idea where it got that weird "en_DE.UTF8" from, I always had everything set to "de_DE.UTF8".

      Besides that, with "failed update" I didn't mean that something went wrong on my side. The checks above now made sure that this isn't the case.
      What I meant was that buggy or broken packages were uploaded during the last update of the Kubuntu repository on Launchpad, resulting in this behaviour.
      It's not just me who's having this problem:
      https://www.kubuntuforums.net/showth...l=1#post352813

      On Launchpad, some are reporting the same error:
      https://bugs.launchpad.net/ubuntu/+s...e/+bug/1322968

      Comment


        #4
        https://bugs.launchpad.net/ubuntu/+s...e/+bug/1317115
        I had same issues and as a workaround I manually edited ~/.kde/env/setlocale.sh to set correct locale to each entry. However, everytime I touched System Settings -> Locale, this file got overwritten with wrong locales.

        Here's another bug report https://bugs.launchpad.net/kubuntu-ppa/+bug/1327527 that relates to kde-l10n packages.

        I haven't tested if this is really fixed as I currenlty have a working system.

        Comment


          #5
          New update of l10n-packages seems to fix this problem. I successfully could change my language back to German without any errors.

          Comment


            #6
            Originally posted by jalmargyyk View Post
            https://bugs.launchpad.net/ubuntu/+s...e/+bug/1317115
            I had same issues and as a workaround I manually edited ~/.kde/env/setlocale.sh to set correct locale to each entry. However, everytime I touched System Settings -> Locale, this file got overwritten with wrong locales.

            Here's another bug report https://bugs.launchpad.net/kubuntu-ppa/+bug/1327527 that relates to kde-l10n packages.

            I haven't tested if this is really fixed as I currenlty have a working system.
            Manually editing ~/.kde/env/setlocale.sh removed the locale error message from Synaptic, but still didn't let me add other languages, and running System Settings -> Locale would overwrite it with crap again.

            Now however I've just installed the latest updates from the Kubuntu repositories (4.13.2) and rebooted. While everything was still in English after the reboot, I could re-add other languages again, and after another reboot to apply changes for all applications, things are working fine again

            Comment

            Working...
            X