How To Install R on Ubuntu 20.04 - LinuxConfig.org

In this tutorial you will learn how to install R on Ubuntu 20.04 Focal Fossa Server/Desktop
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-r-on-ubuntu-20-04

Hi, I’m trying to install R on a XPS Dell laptop (i7 core) with Ubuntu 20.04 Focal Fossa LTS.
I successfully did Step 1 and 2, as suggested from the tutorial.
Step 3 gives the following:
$ R --version
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory

Can anybody help me?
Thanks very much

Hi Manupuddu,

The missing shared object file should be in the libreadline7 package, which you can install with apt:

$ sudo apt-get install libreadline7

It should be available in the default repositories.

This is what I got:
$ sudo apt-get install libreadline7
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato… Fatto
Il pacchetto libreadline7 non ha versioni disponibili, ma è nominato da un altro
pacchetto. Questo potrebbe indicare che il pacchetto è mancante, obsoleto
oppure è disponibile solo all’interno di un’altra sorgente
E: Il pacchetto “libreadline7” non ha candidati da installare

That is in Italian … which in English means:

The libreadline7 package has no version available, but is named by another
package. This could indicate that the package is missing, out of date
or it is only available within another source.

I read something about that R 4.0 is only for amd64 ... [https://cran.r-project.org/bin/linux/ubuntu/README.html](https://cran.r-project.org/bin/linux/ubuntu/README.html) 

I'm not an expert, but could this mean that there's incompatibility with Intel?

From the error message I would think there is some sort of problem with your installation sources, as I can install the mentioned package without problems. Did you modified the default sources list of your system (besides adding r-project’s repository)?