Gtk-WARNING Locale not supported by C library












1















I was trying to install a package after add some languages to my system and it's seems like impossible. I tried to fix it with sudo dpkg-reconfigure locales that helped me when my terminal prompt wasn't opening but it looks like it doesn't fix all the problems.



The complete error is this:



(mintSources.py:5884): Gtk-WARNING **: 07:00:48.932: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1689, in <module>
add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
File "/usr/lib/linuxmint/mintSources/mintSources.py", line 141, in add_repository_via_cli
print(_("You are about to add the following PPA:"))
UnicodeEncodeError: 'ascii' codec can't encode character 'xe5' in position 17: ordinal not in range(128)


And when I write locale the answer is this one:



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


I've three languages installed, seems like Norwegian is the one who's working strange
ls -lah



    total 24K
drwxr-xr-x 2 root root 4.0K Feb 4 00:49 <font color="#729FCF"><b>.</b></font>

drwxr-xr-x 3 root root 4.0K Dec 17 10:26 <font color="#729FCF"><b>..</b></font>
-rw-r--r-- 1 root root 294 Jul 17 2018 en
-rw-r--r-- 1 root root 372 Jul 17 2018 es
-rw-r--r-- 1 root root 780 Feb 4 00:40 mintlocale
-rw-r--r-- 1 root root 24 Feb 5 06:48 nb









share|improve this question



























    1















    I was trying to install a package after add some languages to my system and it's seems like impossible. I tried to fix it with sudo dpkg-reconfigure locales that helped me when my terminal prompt wasn't opening but it looks like it doesn't fix all the problems.



    The complete error is this:



    (mintSources.py:5884): Gtk-WARNING **: 07:00:48.932: Locale not supported by C library.
    Using the fallback 'C' locale.
    Traceback (most recent call last):
    File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1689, in <module>
    add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
    File "/usr/lib/linuxmint/mintSources/mintSources.py", line 141, in add_repository_via_cli
    print(_("You are about to add the following PPA:"))
    UnicodeEncodeError: 'ascii' codec can't encode character 'xe5' in position 17: ordinal not in range(128)


    And when I write locale the answer is this one:



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


    I've three languages installed, seems like Norwegian is the one who's working strange
    ls -lah



        total 24K
    drwxr-xr-x 2 root root 4.0K Feb 4 00:49 <font color="#729FCF"><b>.</b></font>

    drwxr-xr-x 3 root root 4.0K Dec 17 10:26 <font color="#729FCF"><b>..</b></font>
    -rw-r--r-- 1 root root 294 Jul 17 2018 en
    -rw-r--r-- 1 root root 372 Jul 17 2018 es
    -rw-r--r-- 1 root root 780 Feb 4 00:40 mintlocale
    -rw-r--r-- 1 root root 24 Feb 5 06:48 nb









    share|improve this question

























      1












      1








      1








      I was trying to install a package after add some languages to my system and it's seems like impossible. I tried to fix it with sudo dpkg-reconfigure locales that helped me when my terminal prompt wasn't opening but it looks like it doesn't fix all the problems.



      The complete error is this:



      (mintSources.py:5884): Gtk-WARNING **: 07:00:48.932: Locale not supported by C library.
      Using the fallback 'C' locale.
      Traceback (most recent call last):
      File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1689, in <module>
      add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
      File "/usr/lib/linuxmint/mintSources/mintSources.py", line 141, in add_repository_via_cli
      print(_("You are about to add the following PPA:"))
      UnicodeEncodeError: 'ascii' codec can't encode character 'xe5' in position 17: ordinal not in range(128)


      And when I write locale the answer is this one:



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


      I've three languages installed, seems like Norwegian is the one who's working strange
      ls -lah



          total 24K
      drwxr-xr-x 2 root root 4.0K Feb 4 00:49 <font color="#729FCF"><b>.</b></font>

      drwxr-xr-x 3 root root 4.0K Dec 17 10:26 <font color="#729FCF"><b>..</b></font>
      -rw-r--r-- 1 root root 294 Jul 17 2018 en
      -rw-r--r-- 1 root root 372 Jul 17 2018 es
      -rw-r--r-- 1 root root 780 Feb 4 00:40 mintlocale
      -rw-r--r-- 1 root root 24 Feb 5 06:48 nb









      share|improve this question














      I was trying to install a package after add some languages to my system and it's seems like impossible. I tried to fix it with sudo dpkg-reconfigure locales that helped me when my terminal prompt wasn't opening but it looks like it doesn't fix all the problems.



      The complete error is this:



      (mintSources.py:5884): Gtk-WARNING **: 07:00:48.932: Locale not supported by C library.
      Using the fallback 'C' locale.
      Traceback (most recent call last):
      File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1689, in <module>
      add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
      File "/usr/lib/linuxmint/mintSources/mintSources.py", line 141, in add_repository_via_cli
      print(_("You are about to add the following PPA:"))
      UnicodeEncodeError: 'ascii' codec can't encode character 'xe5' in position 17: ordinal not in range(128)


      And when I write locale the answer is this one:



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


      I've three languages installed, seems like Norwegian is the one who's working strange
      ls -lah



          total 24K
      drwxr-xr-x 2 root root 4.0K Feb 4 00:49 <font color="#729FCF"><b>.</b></font>

      drwxr-xr-x 3 root root 4.0K Dec 17 10:26 <font color="#729FCF"><b>..</b></font>
      -rw-r--r-- 1 root root 294 Jul 17 2018 en
      -rw-r--r-- 1 root root 372 Jul 17 2018 es
      -rw-r--r-- 1 root root 780 Feb 4 00:40 mintlocale
      -rw-r--r-- 1 root root 24 Feb 5 06:48 nb






      linux-mint cinnamon






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 5 at 10:21









      user10926715user10926715

      62




      62






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498771%2fgtk-warning-locale-not-supported-by-c-library%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498771%2fgtk-warning-locale-not-supported-by-c-library%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?