Home>

You need to install R. Ubuntu 18.04. Tried:

  1. https://cran.r-project.org/instructions from here. copy deb https://cloud.r-project.org/bin/linux/ubuntuxenial-cran40/in /etc/apt/sources.list, click close, writes E:The repository 'http://cran.rstudio.com/bin/linux/ubuntu bionic/Release' does not have I went through all 4 options that are proposed to be added to /etc/apt/sources.list, there is no difference

  2. instructions like this stumbles over this: Error:14 http://cran.rstudio.com/bin/linux/ubuntubionic/Release
    404 Not Found [IP: 13.33.243.35 80] E: The "http://cran.rstudio.com/bin/linux/ubuntu bionic/Release" repository does not contain a Release file. N: This repository cannot be updated securely, so it is disabled by default. N: See the apt-secure(8) man page for information on creating a repository and user settings.

  3. from here sudo apt-get install r-base r-base-dev Outcome: The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 4.0.3-1.2004.0) but it won't install Depends: r-recommended (= 4.0.3-1.2004.0) but it won't install Recommends: r-base-html but it won't install r-base-dev : Depends: r-base-core (>= 4.0.3-1.2004.0) but it won't install E: Unable to fix errors: you have broken packages.

  4. downloaded R 4.0.3. ./configure configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support --with-pcre1 doesn't help

Need as simple advice as possible at the "copy this and that" level, for a complete beginner.

kandellak, I tried. at this stage sudo add-apt-repository 'deb cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' gives an error (as in point 2)

yanina2022-02-12 14:53:41
r
  • Answer # 1

    Install packages from your distribution's official repository:

    $ sudo apt-get install r-base
    

    packager-baseyour distribution.

    You have fixed broken packages

    It is necessary to restore order in the system. to the packager-baseit clearly has nothing to do with it. and we can say with confidence that the error is caused by the mess that you tried to breed in the system. remove everything that you have corrected in/etc/apt/sources*, update the package list and try to installr-base.

    Thanks to! Everything worked.

    yanina2022-02-12 15:08:05

    Can you explain what it means to "clean up the system", how to "update the list of packages" and how to "remove everything that was fixed in /etc/apt/sources*"?

    Глеб Дильман2022-02-12 20:39:17

    @GlebDilman, if you have a new question, please ask it using the "ask a question" button in the upper right corner of the page.

    aleksandr barakin2022-02-12 20:39:17
  • Answer # 2

    Install packages from your distribution's official repository:

    $ sudo apt-get install r-base
    

    packager-baseyour distribution.

    You have fixed broken packages

    It is necessary to restore order in the system. to the packager-baseit clearly has nothing to do with it. and we can say with confidence that the error is caused by the mess that you tried to breed in the system. remove everything that you have corrected in/etc/apt/sources*, update the package list and try to installr-base.

    Thanks to! Everything worked.

    yanina2022-02-12 15:08:05

    Can you explain what it means to "clean up the system", how to "update the list of packages" and how to "remove everything that was fixed in /etc/apt/sources*"?

    Глеб Дильман2022-02-12 20:39:17

    @GlebDilman, if you have a new question, please ask it using the "ask a question" button in the upper right corner of the page.

    aleksandr barakin2022-02-12 20:39:17
  • Answer # 3

    Install packages from your distribution's official repository:

    $ sudo apt-get install r-base
    

    packager-baseyour distribution.

    You have fixed broken packages

    It is necessary to restore order in the system. to the packager-baseit clearly has nothing to do with it. and we can say with confidence that the error is caused by the mess that you tried to breed in the system. remove everything that you have corrected in/etc/apt/sources*, update the package list and try to installr-base.

    Thanks to! Everything worked.

    yanina2022-02-12 15:08:05

    Can you explain what it means to "clean up the system", how to "update the list of packages" and how to "remove everything that was fixed in /etc/apt/sources*"?

    Глеб Дильман2022-02-12 20:39:17

    @GlebDilman, if you have a new question, please ask it using the "ask a question" button in the upper right corner of the page.

    aleksandr barakin2022-02-12 20:39:17