Unable to install R packages in Ubuntu 18.04

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








up vote
3
down vote

favorite
2












Issue



Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04.
The problem is related to the use of the shared library libcurl. More precisely:



/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not 
found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
/libs/curl.so)


sofar, I tried...



  • ... to install a previous version of libcurl with
    sudo apt-get install libcurl3, but other libraries were uninstalled on the procedure and R was not usable.

error output



When trying to install package called "forecast", for example:



install.packages("forecast")
installing to /home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared
object '/home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so':
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
/libs/curl.so)

ERROR: lazy loading failed for package ‘forecast’
* removing ‘/home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast’
Warning in install.packages :
installation of package ‘forecast’ had non-zero exit status


other info:



  • R version 3.4.4 (2018-03-15)

  • Platform: x86_64-pc-linux-gnu (64-bit)

EDITS: Following Suggestions from N0rbert:



from terminal:

avila@t420s ~> mv /home/$USER/R /home/$USER/R_old
avila@t420s ~> sudo apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


from R (RStudio)

install.package("forecast")


LONG output, reinstalled lots of packages (dependencies?).
After long compiling and waiting... IT WORKED!!!



Any suggestions on what was the problem?



Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts?







share|improve this question


























    up vote
    3
    down vote

    favorite
    2












    Issue



    Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04.
    The problem is related to the use of the shared library libcurl. More precisely:



    /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not 
    found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
    /libs/curl.so)


    sofar, I tried...



    • ... to install a previous version of libcurl with
      sudo apt-get install libcurl3, but other libraries were uninstalled on the procedure and R was not usable.

    error output



    When trying to install package called "forecast", for example:



    install.packages("forecast")
    installing to /home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast/libs
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared
    object '/home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so':
    /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
    found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
    /libs/curl.so)

    ERROR: lazy loading failed for package ‘forecast’
    * removing ‘/home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast’
    Warning in install.packages :
    installation of package ‘forecast’ had non-zero exit status


    other info:



    • R version 3.4.4 (2018-03-15)

    • Platform: x86_64-pc-linux-gnu (64-bit)

    EDITS: Following Suggestions from N0rbert:



    from terminal:

    avila@t420s ~> mv /home/$USER/R /home/$USER/R_old
    avila@t420s ~> sudo apt-get install libcurl4-openssl-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3).
    0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


    from R (RStudio)

    install.package("forecast")


    LONG output, reinstalled lots of packages (dependencies?).
    After long compiling and waiting... IT WORKED!!!



    Any suggestions on what was the problem?



    Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts?







    share|improve this question
























      up vote
      3
      down vote

      favorite
      2









      up vote
      3
      down vote

      favorite
      2






      2





      Issue



      Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04.
      The problem is related to the use of the shared library libcurl. More precisely:



      /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not 
      found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
      /libs/curl.so)


      sofar, I tried...



      • ... to install a previous version of libcurl with
        sudo apt-get install libcurl3, but other libraries were uninstalled on the procedure and R was not usable.

      error output



      When trying to install package called "forecast", for example:



      install.packages("forecast")
      installing to /home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast/libs
      ** R
      ** data
      *** moving datasets to lazyload DB
      ** inst
      ** byte-compile and prepare package for lazy loading
      Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared
      object '/home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so':
      /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
      found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
      /libs/curl.so)

      ERROR: lazy loading failed for package ‘forecast’
      * removing ‘/home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast’
      Warning in install.packages :
      installation of package ‘forecast’ had non-zero exit status


      other info:



      • R version 3.4.4 (2018-03-15)

      • Platform: x86_64-pc-linux-gnu (64-bit)

      EDITS: Following Suggestions from N0rbert:



      from terminal:

      avila@t420s ~> mv /home/$USER/R /home/$USER/R_old
      avila@t420s ~> sudo apt-get install libcurl4-openssl-dev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3).
      0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


      from R (RStudio)

      install.package("forecast")


      LONG output, reinstalled lots of packages (dependencies?).
      After long compiling and waiting... IT WORKED!!!



      Any suggestions on what was the problem?



      Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts?







      share|improve this question














      Issue



      Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04.
      The problem is related to the use of the shared library libcurl. More precisely:



      /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not 
      found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
      /libs/curl.so)


      sofar, I tried...



      • ... to install a previous version of libcurl with
        sudo apt-get install libcurl3, but other libraries were uninstalled on the procedure and R was not usable.

      error output



      When trying to install package called "forecast", for example:



      install.packages("forecast")
      installing to /home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast/libs
      ** R
      ** data
      *** moving datasets to lazyload DB
      ** inst
      ** byte-compile and prepare package for lazy loading
      Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared
      object '/home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so':
      /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
      found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
      /libs/curl.so)

      ERROR: lazy loading failed for package ‘forecast’
      * removing ‘/home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast’
      Warning in install.packages :
      installation of package ‘forecast’ had non-zero exit status


      other info:



      • R version 3.4.4 (2018-03-15)

      • Platform: x86_64-pc-linux-gnu (64-bit)

      EDITS: Following Suggestions from N0rbert:



      from terminal:

      avila@t420s ~> mv /home/$USER/R /home/$USER/R_old
      avila@t420s ~> sudo apt-get install libcurl4-openssl-dev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3).
      0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


      from R (RStudio)

      install.package("forecast")


      LONG output, reinstalled lots of packages (dependencies?).
      After long compiling and waiting... IT WORKED!!!



      Any suggestions on what was the problem?



      Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 15 at 19:37

























      asked May 15 at 18:12









      Marcelo Avila

      1046




      1046




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          It seems that to get predictive results you may want to start with renaming your existing R personal library with:



          mv /home/$USER/R /home/$USER/R_old


          Also install development package of curl:



          sudo apt-get install libcurl4-openssl-dev


          And then try to install your R-package from R-terminal:



          $ R
          install.packages("forecast")





          share|improve this answer




















          • thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
            – Marcelo Avila
            May 15 at 19:37











          • The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
            – N0rbert
            May 15 at 21:39










          • I see. Thanks for the clarification.
            – Marcelo Avila
            May 16 at 21:59

















          up vote
          1
          down vote













          My resolution came from the Rstudio boards: https://community.rstudio.com/t/error-version-curl-openssl-3-not-found/8090



          Simply removing the R curl package and reinstalling (along with devtools etc.) did the trick.






          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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1036641%2funable-to-install-r-packages-in-ubuntu-18-04%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            It seems that to get predictive results you may want to start with renaming your existing R personal library with:



            mv /home/$USER/R /home/$USER/R_old


            Also install development package of curl:



            sudo apt-get install libcurl4-openssl-dev


            And then try to install your R-package from R-terminal:



            $ R
            install.packages("forecast")





            share|improve this answer




















            • thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
              – Marcelo Avila
              May 15 at 19:37











            • The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
              – N0rbert
              May 15 at 21:39










            • I see. Thanks for the clarification.
              – Marcelo Avila
              May 16 at 21:59














            up vote
            1
            down vote



            accepted










            It seems that to get predictive results you may want to start with renaming your existing R personal library with:



            mv /home/$USER/R /home/$USER/R_old


            Also install development package of curl:



            sudo apt-get install libcurl4-openssl-dev


            And then try to install your R-package from R-terminal:



            $ R
            install.packages("forecast")





            share|improve this answer




















            • thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
              – Marcelo Avila
              May 15 at 19:37











            • The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
              – N0rbert
              May 15 at 21:39










            • I see. Thanks for the clarification.
              – Marcelo Avila
              May 16 at 21:59












            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted






            It seems that to get predictive results you may want to start with renaming your existing R personal library with:



            mv /home/$USER/R /home/$USER/R_old


            Also install development package of curl:



            sudo apt-get install libcurl4-openssl-dev


            And then try to install your R-package from R-terminal:



            $ R
            install.packages("forecast")





            share|improve this answer












            It seems that to get predictive results you may want to start with renaming your existing R personal library with:



            mv /home/$USER/R /home/$USER/R_old


            Also install development package of curl:



            sudo apt-get install libcurl4-openssl-dev


            And then try to install your R-package from R-terminal:



            $ R
            install.packages("forecast")






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 15 at 19:23









            N0rbert

            14.7k32969




            14.7k32969











            • thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
              – Marcelo Avila
              May 15 at 19:37











            • The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
              – N0rbert
              May 15 at 21:39










            • I see. Thanks for the clarification.
              – Marcelo Avila
              May 16 at 21:59
















            • thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
              – Marcelo Avila
              May 15 at 19:37











            • The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
              – N0rbert
              May 15 at 21:39










            • I see. Thanks for the clarification.
              – Marcelo Avila
              May 16 at 21:59















            thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
            – Marcelo Avila
            May 15 at 19:37





            thanks for your help. it worked. Please see edited question. Should I just slowly reinstall the needed packages or is there a way to find out which package was causing conflicts? :)
            – Marcelo Avila
            May 15 at 19:37













            The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
            – N0rbert
            May 15 at 21:39




            The problem was linkage to libcurl from previous Ubuntu version. I do not know the full list of your packages. So consider to reinstall all of them. If my answer helped, you may accept it.
            – N0rbert
            May 15 at 21:39












            I see. Thanks for the clarification.
            – Marcelo Avila
            May 16 at 21:59




            I see. Thanks for the clarification.
            – Marcelo Avila
            May 16 at 21:59












            up vote
            1
            down vote













            My resolution came from the Rstudio boards: https://community.rstudio.com/t/error-version-curl-openssl-3-not-found/8090



            Simply removing the R curl package and reinstalling (along with devtools etc.) did the trick.






            share|improve this answer


























              up vote
              1
              down vote













              My resolution came from the Rstudio boards: https://community.rstudio.com/t/error-version-curl-openssl-3-not-found/8090



              Simply removing the R curl package and reinstalling (along with devtools etc.) did the trick.






              share|improve this answer
























                up vote
                1
                down vote










                up vote
                1
                down vote









                My resolution came from the Rstudio boards: https://community.rstudio.com/t/error-version-curl-openssl-3-not-found/8090



                Simply removing the R curl package and reinstalling (along with devtools etc.) did the trick.






                share|improve this answer














                My resolution came from the Rstudio boards: https://community.rstudio.com/t/error-version-curl-openssl-3-not-found/8090



                Simply removing the R curl package and reinstalling (along with devtools etc.) did the trick.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 25 at 2:53









                ubashu

                2,23721736




                2,23721736










                answered May 25 at 1:01









                chepyle

                1112




                1112






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036641%2funable-to-install-r-packages-in-ubuntu-18-04%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491