Question

Issue while installing R

Posted September 26, 2021 92 views
RUbuntu 20.04

Hi, how are you? I hope you be ok

I have a issue, when a use the command sudo add-apt-repository ‘deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/’, the code is no working, it send me this:

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/’

I don’t understand what happened, Can you help me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @Kanon,

I didn’t quite understand what is the error.

If you type in:

sudo add-apt-repository ‘deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/’

You receive :

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/’

Is that correct? Can you please give a little bit more information on the case?

Additionally, can you please try and do an update and upgrade prior to adding the repository to see if that would help out?

  • I’m sorry, I have copied the wrong lines, when entry

    sudo add-apt-repository ‘deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/’

    the system works, but send this

    Err:14 https://cloud.r-project.org/bin/linux… focal-cran40/ Release
    404 Not Found [IP: 13.226.206.124 443]
    Err:15 https://cloud.r-project.org/bin/linux/ubuntu -cran40/ Release
    404 Not Found [IP: 13.226.206.124 443]
    Err:16 https://cloud.r-project.org/bin/linux/ubuntu focal-cran35/ Release
    404 Not Found [IP: 13.226.206.124 443]
    Leyendo lista de paquetes… Hecho
    E: El repositorio «https://cloud.r-project.org/bin/linux… focal-cran40/ Release» no tiene un fichero de Publicación.
    N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión.
    N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
    E: El repositorio «https://cloud.r-project.org/bin/linux/ubuntu -cran40/ Release» no tiene un fichero de Publicación.
    N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión.
    N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
    E: El repositorio «https://cloud.r-project.org/bin/linux/ubuntu focal-cran35/ Release» no tiene un fichero de Publicación.
    N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión.
    N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.

    • Hi @Kanon,

      Hmm, I’m able to reach the IP address as well as the link. It’s possible you’ve blocked something with your firewall. What Firewall are you using is it only IPtables or UFW as well?

      • Hi @KFSys , I have try, when I entry “sudo apt update”, in general I get the same result.
        The firewall, I use the Ubuntu 20.04 default configuration, I have try “sudo ufw disable” and I get the same.
        I start to suspect something is wrong with my System

        • Hi @Kanon,

          Can you follow these instructions to resolve the issue:

          # update indices
          apt update -qq
          # install two helper packages we need
          apt install --no-install-recommends software-properties-common dirmngr
          # add the signing key (by Michael Rutter) for these repos
          # To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc 
          # Fingerprint: 298A3A825C0D65DFD57CBB651716619E084DAB9
          wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
          # add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
          add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"