Unable to install R packages in Ubuntu 18.04


up vote
3
down vote
favorite
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?
package-management 18.04 shared-library curl r
add a comment |Â
up vote
3
down vote
favorite
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?
package-management 18.04 shared-library curl r
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
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?
package-management 18.04 shared-library curl r
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?
package-management 18.04 shared-library curl r
edited May 15 at 19:37
asked May 15 at 18:12


Marcelo Avila
1046
1046
add a comment |Â
add a comment |Â
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")
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
add a comment |Â
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.
add a comment |Â
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")
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
add a comment |Â
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")
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
add a comment |Â
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")
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")
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited May 25 at 2:53


ubashu
2,23721736
2,23721736
answered May 25 at 1:01
chepyle
1112
1112
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password