what(): locale::facet::_S_create_c_locale name not valid

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a Kali Linux where I cannot install any packages. locale is not working and I cannot install it what can I do? I changed sources.list but it's of no help, I tried sudo dpkg-reconfigure locales it tells me:



Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
/usr/sbin/dpkg-reconfigure: locales is not installed









share|improve this question



























    up vote
    0
    down vote

    favorite












    I have a Kali Linux where I cannot install any packages. locale is not working and I cannot install it what can I do? I changed sources.list but it's of no help, I tried sudo dpkg-reconfigure locales it tells me:



    Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
    Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
    dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
    /usr/sbin/dpkg-reconfigure: locales is not installed









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a Kali Linux where I cannot install any packages. locale is not working and I cannot install it what can I do? I changed sources.list but it's of no help, I tried sudo dpkg-reconfigure locales it tells me:



      Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
      Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
      dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
      /usr/sbin/dpkg-reconfigure: locales is not installed









      share|improve this question















      I have a Kali Linux where I cannot install any packages. locale is not working and I cannot install it what can I do? I changed sources.list but it's of no help, I tried sudo dpkg-reconfigure locales it tells me:



      Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
      Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
      dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
      /usr/sbin/dpkg-reconfigure: locales is not installed






      debian kali-linux locale






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 24 '16 at 10:17









      phk

      3,88152147




      3,88152147










      asked Aug 24 '16 at 9:50









      Giorgi Gavasheli

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It's possible that your PATH setting is bad. Make sure that echo $PATH as a non-root user lists /usr/bin and /bin, and as the root user also /usr/sbin and /sbin. However, dpkg emits a warning in that case so if that warning was absent then this isn't the problem.



          The locale command is part of a package that is marked as “essential” (libc-bin). To uninstall it, you have to type a full sentence at the confirmation prompt. This isn't something you can do by accident.



          You might have removed the binary. Once again this won't happen automatically, it has to be a consequence of something you did while running as root. Be careful when running as root, only use the root account to do things that you can't do from your normal account. To reinstall the libc-bin package including the locale command, run this command as root:



          apt-get --reinstall install libc-bin


          You don't appear to have a lot of Linux experience. Kali Linux is a distribution for experienced security professionals, designed to run security-related tools in a virtual machine easily. It isn't designed for a permanent installation and it isn't designed for beginners. If you aren't an experienced Linux user, use a more friendly distribution such as elementary OS, Linux Mint or Ubuntu.






          share|improve this answer




















          • apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
            – Giorgi Gavasheli
            Aug 26 '16 at 20:20











          • @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
            – Gilles
            Aug 26 '16 at 20:25










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f305424%2fwhat-localefacet-s-create-c-locale-name-not-valid%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          It's possible that your PATH setting is bad. Make sure that echo $PATH as a non-root user lists /usr/bin and /bin, and as the root user also /usr/sbin and /sbin. However, dpkg emits a warning in that case so if that warning was absent then this isn't the problem.



          The locale command is part of a package that is marked as “essential” (libc-bin). To uninstall it, you have to type a full sentence at the confirmation prompt. This isn't something you can do by accident.



          You might have removed the binary. Once again this won't happen automatically, it has to be a consequence of something you did while running as root. Be careful when running as root, only use the root account to do things that you can't do from your normal account. To reinstall the libc-bin package including the locale command, run this command as root:



          apt-get --reinstall install libc-bin


          You don't appear to have a lot of Linux experience. Kali Linux is a distribution for experienced security professionals, designed to run security-related tools in a virtual machine easily. It isn't designed for a permanent installation and it isn't designed for beginners. If you aren't an experienced Linux user, use a more friendly distribution such as elementary OS, Linux Mint or Ubuntu.






          share|improve this answer




















          • apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
            – Giorgi Gavasheli
            Aug 26 '16 at 20:20











          • @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
            – Gilles
            Aug 26 '16 at 20:25














          up vote
          0
          down vote













          It's possible that your PATH setting is bad. Make sure that echo $PATH as a non-root user lists /usr/bin and /bin, and as the root user also /usr/sbin and /sbin. However, dpkg emits a warning in that case so if that warning was absent then this isn't the problem.



          The locale command is part of a package that is marked as “essential” (libc-bin). To uninstall it, you have to type a full sentence at the confirmation prompt. This isn't something you can do by accident.



          You might have removed the binary. Once again this won't happen automatically, it has to be a consequence of something you did while running as root. Be careful when running as root, only use the root account to do things that you can't do from your normal account. To reinstall the libc-bin package including the locale command, run this command as root:



          apt-get --reinstall install libc-bin


          You don't appear to have a lot of Linux experience. Kali Linux is a distribution for experienced security professionals, designed to run security-related tools in a virtual machine easily. It isn't designed for a permanent installation and it isn't designed for beginners. If you aren't an experienced Linux user, use a more friendly distribution such as elementary OS, Linux Mint or Ubuntu.






          share|improve this answer




















          • apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
            – Giorgi Gavasheli
            Aug 26 '16 at 20:20











          • @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
            – Gilles
            Aug 26 '16 at 20:25












          up vote
          0
          down vote










          up vote
          0
          down vote









          It's possible that your PATH setting is bad. Make sure that echo $PATH as a non-root user lists /usr/bin and /bin, and as the root user also /usr/sbin and /sbin. However, dpkg emits a warning in that case so if that warning was absent then this isn't the problem.



          The locale command is part of a package that is marked as “essential” (libc-bin). To uninstall it, you have to type a full sentence at the confirmation prompt. This isn't something you can do by accident.



          You might have removed the binary. Once again this won't happen automatically, it has to be a consequence of something you did while running as root. Be careful when running as root, only use the root account to do things that you can't do from your normal account. To reinstall the libc-bin package including the locale command, run this command as root:



          apt-get --reinstall install libc-bin


          You don't appear to have a lot of Linux experience. Kali Linux is a distribution for experienced security professionals, designed to run security-related tools in a virtual machine easily. It isn't designed for a permanent installation and it isn't designed for beginners. If you aren't an experienced Linux user, use a more friendly distribution such as elementary OS, Linux Mint or Ubuntu.






          share|improve this answer












          It's possible that your PATH setting is bad. Make sure that echo $PATH as a non-root user lists /usr/bin and /bin, and as the root user also /usr/sbin and /sbin. However, dpkg emits a warning in that case so if that warning was absent then this isn't the problem.



          The locale command is part of a package that is marked as “essential” (libc-bin). To uninstall it, you have to type a full sentence at the confirmation prompt. This isn't something you can do by accident.



          You might have removed the binary. Once again this won't happen automatically, it has to be a consequence of something you did while running as root. Be careful when running as root, only use the root account to do things that you can't do from your normal account. To reinstall the libc-bin package including the locale command, run this command as root:



          apt-get --reinstall install libc-bin


          You don't appear to have a lot of Linux experience. Kali Linux is a distribution for experienced security professionals, designed to run security-related tools in a virtual machine easily. It isn't designed for a permanent installation and it isn't designed for beginners. If you aren't an experienced Linux user, use a more friendly distribution such as elementary OS, Linux Mint or Ubuntu.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 24 '16 at 23:23









          Gilles

          511k12010141543




          511k12010141543











          • apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
            – Giorgi Gavasheli
            Aug 26 '16 at 20:20











          • @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
            – Gilles
            Aug 26 '16 at 20:25
















          • apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
            – Giorgi Gavasheli
            Aug 26 '16 at 20:20











          • @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
            – Gilles
            Aug 26 '16 at 20:25















          apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
          – Giorgi Gavasheli
          Aug 26 '16 at 20:20





          apt-get is not working it says :root@mr00:~# apt-get --reinstall install libc-bin terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted
          – Giorgi Gavasheli
          Aug 26 '16 at 20:20













          @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
          – Gilles
          Aug 26 '16 at 20:25




          @GiorgiGavasheli Run export LC_ALL=C; unset LANGUAGE and try again. If you still get this error, then there's something seriously broken and without knowing how you got there it's difficult to help you. I'd suggest reinstalling, and this time don't go about editing or removing files when you don't know what they're for.
          – Gilles
          Aug 26 '16 at 20:25

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f305424%2fwhat-localefacet-s-create-c-locale-name-not-valid%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay