Cant generate locale float exception












1















I am getting the error



 en_US.ISO-8859-1.../usr/sbin/locale-gen: line 177:  8091 Floating point exception(core dumped) localedef $no_archive -i $input -c -f $charset $locale_alias


when I run sudo locale-gen en_US.UTF-8



I am also getting :



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_COLLATE to default locale: No such file or directory


When I run locale -a



also export LC_ALL="en_US.UTF-8"
returns
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)



Edit:



This is from a copy of a virtual machine, I just copied in hyper v.










share|improve this question





























    1















    I am getting the error



     en_US.ISO-8859-1.../usr/sbin/locale-gen: line 177:  8091 Floating point exception(core dumped) localedef $no_archive -i $input -c -f $charset $locale_alias


    when I run sudo locale-gen en_US.UTF-8



    I am also getting :



    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_COLLATE to default locale: No such file or directory


    When I run locale -a



    also export LC_ALL="en_US.UTF-8"
    returns
    -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)



    Edit:



    This is from a copy of a virtual machine, I just copied in hyper v.










    share|improve this question



























      1












      1








      1








      I am getting the error



       en_US.ISO-8859-1.../usr/sbin/locale-gen: line 177:  8091 Floating point exception(core dumped) localedef $no_archive -i $input -c -f $charset $locale_alias


      when I run sudo locale-gen en_US.UTF-8



      I am also getting :



      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_COLLATE to default locale: No such file or directory


      When I run locale -a



      also export LC_ALL="en_US.UTF-8"
      returns
      -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)



      Edit:



      This is from a copy of a virtual machine, I just copied in hyper v.










      share|improve this question
















      I am getting the error



       en_US.ISO-8859-1.../usr/sbin/locale-gen: line 177:  8091 Floating point exception(core dumped) localedef $no_archive -i $input -c -f $charset $locale_alias


      when I run sudo locale-gen en_US.UTF-8



      I am also getting :



      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_COLLATE to default locale: No such file or directory


      When I run locale -a



      also export LC_ALL="en_US.UTF-8"
      returns
      -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)



      Edit:



      This is from a copy of a virtual machine, I just copied in hyper v.







      locale






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 15 at 10:28









      Codito ergo sum

      1,5023825




      1,5023825










      asked Jan 15 at 9:15









      AlexAlex

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.




          • Right click on the VM from Hyper-V and click on Settings.

          • expand Processor and select Compatibility

          • Then check the box for Migrate to a physical computer with a different processor version.


          You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:




          • sudo nano /etc/initramfs-tools/initramfs.conf

          • Check if MODULES=most instead of MODULES=dep

          • Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core


          Finally reboot and retry to generate your locales.






          share|improve this answer
























          • So I want it to be dep or most? I have most

            – Alex
            Jan 19 at 15:48













          • Nevermind, I read the comments in the file.

            – Alex
            Jan 19 at 15:53











          • That didn't work

            – Alex
            Jan 19 at 16:02











          • You have to keep most

            – olivierb2
            Jan 20 at 9:57











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1109863%2fcant-generate-locale-float-exception%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.




          • Right click on the VM from Hyper-V and click on Settings.

          • expand Processor and select Compatibility

          • Then check the box for Migrate to a physical computer with a different processor version.


          You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:




          • sudo nano /etc/initramfs-tools/initramfs.conf

          • Check if MODULES=most instead of MODULES=dep

          • Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core


          Finally reboot and retry to generate your locales.






          share|improve this answer
























          • So I want it to be dep or most? I have most

            – Alex
            Jan 19 at 15:48













          • Nevermind, I read the comments in the file.

            – Alex
            Jan 19 at 15:53











          • That didn't work

            – Alex
            Jan 19 at 16:02











          • You have to keep most

            – olivierb2
            Jan 20 at 9:57
















          0














          I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.




          • Right click on the VM from Hyper-V and click on Settings.

          • expand Processor and select Compatibility

          • Then check the box for Migrate to a physical computer with a different processor version.


          You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:




          • sudo nano /etc/initramfs-tools/initramfs.conf

          • Check if MODULES=most instead of MODULES=dep

          • Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core


          Finally reboot and retry to generate your locales.






          share|improve this answer
























          • So I want it to be dep or most? I have most

            – Alex
            Jan 19 at 15:48













          • Nevermind, I read the comments in the file.

            – Alex
            Jan 19 at 15:53











          • That didn't work

            – Alex
            Jan 19 at 16:02











          • You have to keep most

            – olivierb2
            Jan 20 at 9:57














          0












          0








          0







          I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.




          • Right click on the VM from Hyper-V and click on Settings.

          • expand Processor and select Compatibility

          • Then check the box for Migrate to a physical computer with a different processor version.


          You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:




          • sudo nano /etc/initramfs-tools/initramfs.conf

          • Check if MODULES=most instead of MODULES=dep

          • Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core


          Finally reboot and retry to generate your locales.






          share|improve this answer













          I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.




          • Right click on the VM from Hyper-V and click on Settings.

          • expand Processor and select Compatibility

          • Then check the box for Migrate to a physical computer with a different processor version.


          You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:




          • sudo nano /etc/initramfs-tools/initramfs.conf

          • Check if MODULES=most instead of MODULES=dep

          • Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core


          Finally reboot and retry to generate your locales.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 9:30









          olivierb2olivierb2

          1,87989




          1,87989













          • So I want it to be dep or most? I have most

            – Alex
            Jan 19 at 15:48













          • Nevermind, I read the comments in the file.

            – Alex
            Jan 19 at 15:53











          • That didn't work

            – Alex
            Jan 19 at 16:02











          • You have to keep most

            – olivierb2
            Jan 20 at 9:57



















          • So I want it to be dep or most? I have most

            – Alex
            Jan 19 at 15:48













          • Nevermind, I read the comments in the file.

            – Alex
            Jan 19 at 15:53











          • That didn't work

            – Alex
            Jan 19 at 16:02











          • You have to keep most

            – olivierb2
            Jan 20 at 9:57

















          So I want it to be dep or most? I have most

          – Alex
          Jan 19 at 15:48







          So I want it to be dep or most? I have most

          – Alex
          Jan 19 at 15:48















          Nevermind, I read the comments in the file.

          – Alex
          Jan 19 at 15:53





          Nevermind, I read the comments in the file.

          – Alex
          Jan 19 at 15:53













          That didn't work

          – Alex
          Jan 19 at 16:02





          That didn't work

          – Alex
          Jan 19 at 16:02













          You have to keep most

          – olivierb2
          Jan 20 at 9:57





          You have to keep most

          – olivierb2
          Jan 20 at 9:57


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1109863%2fcant-generate-locale-float-exception%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 make a Squid Proxy server?

          第一次世界大戦

          Touch on Surface Book