LibreOffice stopped working in Ubuntu 17.04












4















After upgrading to 17.04, when I start LibreOffice, I get the following error messages:



/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory


I've tried to completely remove and reinstall the libreoffice package. I've checked and there are no PPAs in the sources list.



Update: turns out the file libreglo.so exists in directory /usr/lib/libreoffice/program/. When I add this directory to LD_LIBRARY_PATH LibreOffice works. But why is it apparently mis-configured by default?










share|improve this question

























  • Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

    – Eliah Kagan
    Aug 10 '17 at 20:59
















4















After upgrading to 17.04, when I start LibreOffice, I get the following error messages:



/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory


I've tried to completely remove and reinstall the libreoffice package. I've checked and there are no PPAs in the sources list.



Update: turns out the file libreglo.so exists in directory /usr/lib/libreoffice/program/. When I add this directory to LD_LIBRARY_PATH LibreOffice works. But why is it apparently mis-configured by default?










share|improve this question

























  • Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

    – Eliah Kagan
    Aug 10 '17 at 20:59














4












4








4








After upgrading to 17.04, when I start LibreOffice, I get the following error messages:



/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory


I've tried to completely remove and reinstall the libreoffice package. I've checked and there are no PPAs in the sources list.



Update: turns out the file libreglo.so exists in directory /usr/lib/libreoffice/program/. When I add this directory to LD_LIBRARY_PATH LibreOffice works. But why is it apparently mis-configured by default?










share|improve this question
















After upgrading to 17.04, when I start LibreOffice, I get the following error messages:



/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory


I've tried to completely remove and reinstall the libreoffice package. I've checked and there are no PPAs in the sources list.



Update: turns out the file libreglo.so exists in directory /usr/lib/libreoffice/program/. When I add this directory to LD_LIBRARY_PATH LibreOffice works. But why is it apparently mis-configured by default?







libreoffice shared-library






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 12 '17 at 0:42









Eliah Kagan

81.6k21227364




81.6k21227364










asked May 10 '17 at 14:46









JohsmJohsm

4923622




4923622













  • Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

    – Eliah Kagan
    Aug 10 '17 at 20:59



















  • Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

    – Eliah Kagan
    Aug 10 '17 at 20:59

















Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

– Eliah Kagan
Aug 10 '17 at 20:59





Can you edit your question to include the output of ls -l /etc/apt/sources.list.d and echo "$LD_LIBRARY_PATH"?

– Eliah Kagan
Aug 10 '17 at 20:59










4 Answers
4






active

oldest

votes


















4














I faced a similar problem after upgrading. This solution (by disabling java) worked for me:



LibreOffice 5 problems and solutions



Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)




  • Go to Options

  • LibreOffice

  • Advanced

  • Uncheck "Use a Java runtime environment"






share|improve this answer


























  • +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

    – Zanna
    Aug 10 '17 at 12:51











  • I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

    – Vasil Koicev
    Aug 11 '17 at 6:28






  • 1





    I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

    – Zanna
    Aug 11 '17 at 6:30



















1














I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config



It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc



export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/



and for the UI, it meant editing



/usr/share/applications/libreoffice-writer.desktop



and replacing



Exec=libreoffice --writer %U


with



Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U


My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.






share|improve this answer































    0














    The same thing happened to me with LibreOffice. It seams that the upgrade to 17.04 actually messed with the environmental variables, specifically the LD_LIBRARY_PATH.






    share|improve this answer



















    • 1





      did you find a workaround?

      – Zanna
      Aug 10 '17 at 12:52



















    0














    I fixed it by purging the libreoffice installation



    sudo apt-get purge libreoffice


    I deleted the directories



    /var/lib/libreoffice
    /etc/libreoffice


    I then installed libreoffice as a snap



    sudo snap install libreoffice





    share|improve this answer























      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%2f913812%2flibreoffice-stopped-working-in-ubuntu-17-04%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      I faced a similar problem after upgrading. This solution (by disabling java) worked for me:



      LibreOffice 5 problems and solutions



      Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)




      • Go to Options

      • LibreOffice

      • Advanced

      • Uncheck "Use a Java runtime environment"






      share|improve this answer


























      • +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

        – Zanna
        Aug 10 '17 at 12:51











      • I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

        – Vasil Koicev
        Aug 11 '17 at 6:28






      • 1





        I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

        – Zanna
        Aug 11 '17 at 6:30
















      4














      I faced a similar problem after upgrading. This solution (by disabling java) worked for me:



      LibreOffice 5 problems and solutions



      Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)




      • Go to Options

      • LibreOffice

      • Advanced

      • Uncheck "Use a Java runtime environment"






      share|improve this answer


























      • +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

        – Zanna
        Aug 10 '17 at 12:51











      • I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

        – Vasil Koicev
        Aug 11 '17 at 6:28






      • 1





        I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

        – Zanna
        Aug 11 '17 at 6:30














      4












      4








      4







      I faced a similar problem after upgrading. This solution (by disabling java) worked for me:



      LibreOffice 5 problems and solutions



      Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)




      • Go to Options

      • LibreOffice

      • Advanced

      • Uncheck "Use a Java runtime environment"






      share|improve this answer















      I faced a similar problem after upgrading. This solution (by disabling java) worked for me:



      LibreOffice 5 problems and solutions



      Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)




      • Go to Options

      • LibreOffice

      • Advanced

      • Uncheck "Use a Java runtime environment"







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Aug 10 '17 at 12:48









      Zanna

      50.3k13133241




      50.3k13133241










      answered Aug 10 '17 at 12:28









      Vasil KoicevVasil Koicev

      413




      413













      • +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

        – Zanna
        Aug 10 '17 at 12:51











      • I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

        – Vasil Koicev
        Aug 11 '17 at 6:28






      • 1





        I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

        – Zanna
        Aug 11 '17 at 6:30



















      • +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

        – Zanna
        Aug 10 '17 at 12:51











      • I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

        – Vasil Koicev
        Aug 11 '17 at 6:28






      • 1





        I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

        – Zanna
        Aug 11 '17 at 6:30

















      +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

      – Zanna
      Aug 10 '17 at 12:51





      +1 since I assume LibreOffice will mostly work with java disabled, but I don't think this is an ideal solution long term. Is there a bug report for this?

      – Zanna
      Aug 10 '17 at 12:51













      I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

      – Vasil Koicev
      Aug 11 '17 at 6:28





      I'm not sure is there a bug report. I know that it's a workaround but so far it was the only one that work for me. I hope that next updates will fix it.

      – Vasil Koicev
      Aug 11 '17 at 6:28




      1




      1





      I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

      – Zanna
      Aug 11 '17 at 6:30





      I'm sure your answer will help lots of people in the meantime - I guess folks should try re-enabling java after each update if it doesn't happen automatically

      – Zanna
      Aug 11 '17 at 6:30













      1














      I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config



      It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc



      export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/



      and for the UI, it meant editing



      /usr/share/applications/libreoffice-writer.desktop



      and replacing



      Exec=libreoffice --writer %U


      with



      Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U


      My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.






      share|improve this answer




























        1














        I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config



        It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc



        export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/



        and for the UI, it meant editing



        /usr/share/applications/libreoffice-writer.desktop



        and replacing



        Exec=libreoffice --writer %U


        with



        Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U


        My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.






        share|improve this answer


























          1












          1








          1







          I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config



          It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc



          export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/



          and for the UI, it meant editing



          /usr/share/applications/libreoffice-writer.desktop



          and replacing



          Exec=libreoffice --writer %U


          with



          Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U


          My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.






          share|improve this answer













          I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config



          It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc



          export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/



          and for the UI, it meant editing



          /usr/share/applications/libreoffice-writer.desktop



          and replacing



          Exec=libreoffice --writer %U


          with



          Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U


          My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 16 '17 at 14:50









          SteveSongSteveSong

          30115




          30115























              0














              The same thing happened to me with LibreOffice. It seams that the upgrade to 17.04 actually messed with the environmental variables, specifically the LD_LIBRARY_PATH.






              share|improve this answer



















              • 1





                did you find a workaround?

                – Zanna
                Aug 10 '17 at 12:52
















              0














              The same thing happened to me with LibreOffice. It seams that the upgrade to 17.04 actually messed with the environmental variables, specifically the LD_LIBRARY_PATH.






              share|improve this answer



















              • 1





                did you find a workaround?

                – Zanna
                Aug 10 '17 at 12:52














              0












              0








              0







              The same thing happened to me with LibreOffice. It seams that the upgrade to 17.04 actually messed with the environmental variables, specifically the LD_LIBRARY_PATH.






              share|improve this answer













              The same thing happened to me with LibreOffice. It seams that the upgrade to 17.04 actually messed with the environmental variables, specifically the LD_LIBRARY_PATH.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 25 '17 at 22:18









              TechdudeGamesTechdudeGames

              743




              743








              • 1





                did you find a workaround?

                – Zanna
                Aug 10 '17 at 12:52














              • 1





                did you find a workaround?

                – Zanna
                Aug 10 '17 at 12:52








              1




              1





              did you find a workaround?

              – Zanna
              Aug 10 '17 at 12:52





              did you find a workaround?

              – Zanna
              Aug 10 '17 at 12:52











              0














              I fixed it by purging the libreoffice installation



              sudo apt-get purge libreoffice


              I deleted the directories



              /var/lib/libreoffice
              /etc/libreoffice


              I then installed libreoffice as a snap



              sudo snap install libreoffice





              share|improve this answer




























                0














                I fixed it by purging the libreoffice installation



                sudo apt-get purge libreoffice


                I deleted the directories



                /var/lib/libreoffice
                /etc/libreoffice


                I then installed libreoffice as a snap



                sudo snap install libreoffice





                share|improve this answer


























                  0












                  0








                  0







                  I fixed it by purging the libreoffice installation



                  sudo apt-get purge libreoffice


                  I deleted the directories



                  /var/lib/libreoffice
                  /etc/libreoffice


                  I then installed libreoffice as a snap



                  sudo snap install libreoffice





                  share|improve this answer













                  I fixed it by purging the libreoffice installation



                  sudo apt-get purge libreoffice


                  I deleted the directories



                  /var/lib/libreoffice
                  /etc/libreoffice


                  I then installed libreoffice as a snap



                  sudo snap install libreoffice






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 28 '18 at 15:09









                  Diarmuid O'BriainDiarmuid O'Briain

                  5617




                  5617






























                      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%2f913812%2flibreoffice-stopped-working-in-ubuntu-17-04%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido