[R] Unable to add the CRAN apt repository

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Mon Dec 4 19:57:26 CET 2023

On Mon, 04 Dec 2023 13:41:47 -0500
Steve Gutreuter <sgutreuter using gmail.com> wrote:

> $> sudo /usr/bin/add-apt-repository "deb  
> https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release
> -cs)-cran40/"

Looks like `lsb_release -cs` returns a Mint codename for you.
Thankfully, since we know that Linux Mint 21 is based on Ubuntu 22.04
"Jammy Jellyfish", it should be possible to replace $(lsb_release -cs)
with jammy when running the command. Does the jammy-cran40/
subdirectory work for you?

Best regards,

More information about the R-help mailing list