Unable to install packages nor create libraries

Error Information:

Hello and thanks for your time.
I am running a RStudioServer instance. I did reinstall from scratch.
I dis uninstall r-base and RStudioServer (RS-S as follows), and installed all again using sudo su to install as a root this because using only sudo did not fully create the appropriate libraries.

Now I can "almost" run. But there is no way to install any library. Only those that comes from install process.

What did I do?
**install.packages(c("tidyverse", "shiny", "orca", "lubridate", "data.table"))**
What did I get?
(fragment)

probando la URL 'https://cran.rstudio.com/src/contrib/data.table_1.13.0.tar.gz'
Content type 'application/x-gzip' length 5273400 bytes (5.0 MB)
==================================================
downloaded 5.0 MB

(as far as I can see it can download from repository)

And this comes after downloading (also a fragment)

/usr/lib/R/bin/R: línea 142: **/usr/lib/R/etc/ldpaths**: No existe el fichero o el directorio (file or folder does not exists)
/usr/lib/R/bin/R: línea 248: /usr/lib/R/etc/ldpaths: No existe el fichero o el directorio
Error in file(con, "r") : no se puede abrir la conexión
Calls: <Anonymous> -> sub -> grep -> readLines -> file
Además: Warning message:
In file(con, "r") :
  no fue posible abrir el archivo **'/usr/lib/R/etc/Makeconf'**: No existe el fichero o el directorio
Warning in install.packages :
  installation of package ‘processx’ had non-zero exit status

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version: 1.3.1073 (Giant Goldenrod) for Ubuntu Bionic
  • OS Version: Debian 4.19.67-2+deb10u2 (2019-11-11)
  • R Version: R version 4.0.2 (2020-06-22) -- "Taking Off Again"

Also:

  • Your sessionInfo():
    R version 4.0.2 (2020-06-22)
    Platform: x86_64-pc-linux-gnu (64-bit)
    Running under: Debian GNU/Linux 10 (buster)

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0

locale:
[1] LC_CTYPE=es_CO.UTF-8 LC_NUMERIC=C LC_TIME=es_CO.UTF-8 LC_COLLATE=es_CO.UTF-8
[5] LC_MONETARY=es_CO.UTF-8 LC_MESSAGES=es_CO.UTF-8 LC_PAPER=es_CO.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_CO.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2

  • RStudio application log files: IS EMPTY

From Troubleshooting Guide: Using RStudio

Self Solved.
It was a deficient installation process...(not so easy to catch)
What happened?
I made a "full" r-base uninstall. First mistake. You have to make a r-base-core uninstall.

sudo apt-get --purge remove r-base-core

Then I made a fresh install using sudo. Second Mistake. I had to make as root

sudo su
apt -y install r-base

Now everything seems to be working as expected

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.