Mark van der Loo
2020-Jun-04 22:31 UTC
[R-sig-Debian] installation problem for R 4.0 on Debian buster
Hi all, I just spun up a fresh Debian Buster instance, then I added: deb http://cloud.r-project.org/bin/linux/debian buster-cran40/ to /etc/apt/sources.list. I also ran the apt-key command as described here: https://cran.r-project.org/bin/linux/debian/#secure-apt So far so good, now when I do the following, I get no joy: $ sudo apt-get install r-base Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: r-base : Depends: r-recommended (= 4.0.0-1~bustercran.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages. However, when I use the buster-cran-35 deb line, all works fine. So there seems to be something going on with buster-cran-40. Is this correct, or am I missing something? Thanks, Mark [[alternative HTML version deleted]]
Dirk Eddelbuettel
2020-Jun-05 00:39 UTC
[R-sig-Debian] installation problem for R 4.0 on Debian buster
On 5 June 2020 at 00:31, Mark van der Loo wrote: | Hi all, | | I just spun up a fresh Debian Buster instance, then I added: | | deb http://cloud.r-project.org/bin/linux/debian buster-cran40/ | | to /etc/apt/sources.list. I also ran the apt-key command as described here: | https://cran.r-project.org/bin/linux/debian/#secure-apt | | So far so good, now when I do the following, I get no joy: | | $ sudo apt-get install r-base | | Reading package lists... Done | Building dependency tree | Reading state information... Done | Some packages could not be installed. This may mean that you have | requested an impossible situation or if you are using the unstable | distribution that some required packages have not yet been created | or been moved out of Incoming. | The following information may help to resolve the situation: | | The following packages have unmet dependencies: | r-base : Depends: r-recommended (= 4.0.0-1~bustercran.0) but it is not | going to be installed | E: Unable to correct problems, you have held broken packages. | | | However, when I use the buster-cran-35 deb line, all works fine. So there | seems to be something going on with buster-cran-40. Is this correct, or am | I missing something? You run one command to install r-base. It tells that it wants to (but can't) install r-recommended. To have the system tell you more and why, add r-recommended: $ sudo apt-get install r-base r-recommended Keep adding packages while it complains. After maybe five or so steps you should. It is often because _one_ of the libraries brought in by the 'new' package conflict. That can happen with backports. (And it is one of the reasons I like 'testing' better but hey personal tastes and preferences cannot be debated...) Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
Johannes Ranke
2020-Jun-05 06:52 UTC
[R-sig-Debian] installation problem for R 4.0 on Debian buster
Hi Mark, Am Freitag, 5. Juni 2020, 00:31:34 CEST schrieb Mark van der Loo:> Hi all, > > I just spun up a fresh Debian Buster instance, then I added: > > deb http://cloud.r-project.org/bin/linux/debian buster-cran40/ > > to /etc/apt/sources.list. I also ran the apt-key command as described here: > https://cran.r-project.org/bin/linux/debian/#secure-apt > > So far so good,OK, then you need to keep reading. Instead of simply installing R 4.0.0 you need to remove the packages depending on r-api-35 as detailed in https://cran.r-project.org/bin/linux/debian/#debian-bullseye-testing The reason is that the backported r-cran-* packages have a lower version number than the r-cran-* packages in the Debian archive, but the packages in the Debian archive depend on r-api-35 while the new backport provides r- api-40. Also, you will need to rebuild all locally installed packages as detailed on the CRAN Debian page. Greetings, Johannes> now when I do the following, I get no joy: > > $ sudo apt-get install r-base > > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > r-base : Depends: r-recommended (= 4.0.0-1~bustercran.0) but it is not > going to be installed > E: Unable to correct problems, you have held broken packages. > > > However, when I use the buster-cran-35 deb line, all works fine. So there > seems to be something going on with buster-cran-40. Is this correct, or am > I missing something? > > Thanks, > Mark > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Debian mailing list > R-SIG-Debian at r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-debian
Dirk Eddelbuettel
2020-Jun-05 18:04 UTC
[R-sig-Debian] installation problem for R 4.0 on Debian buster
On 5 June 2020 at 08:52, Johannes Ranke wrote: | Hi Mark, | | Am Freitag, 5. Juni 2020, 00:31:34 CEST schrieb Mark van der Loo: | > Hi all, | > | > I just spun up a fresh Debian Buster instance, then I added: | > | > deb http://cloud.r-project.org/bin/linux/debian buster-cran40/ | > | > to /etc/apt/sources.list. I also ran the apt-key command as described here: | > https://cran.r-project.org/bin/linux/debian/#secure-apt | > | > So far so good, | | OK, then you need to keep reading. Instead of simply installing R 4.0.0 you | need to remove the packages depending on r-api-35 as detailed in | | https://cran.r-project.org/bin/linux/debian/#debian-bullseye-testing | | The reason is that the backported r-cran-* packages have a lower version | number than the r-cran-* packages in the Debian archive, but the packages in | the Debian archive depend on r-api-35 while the new backport provides r- | api-40. That sounds ... suboptimal. And I am not sure I understand why that would be. Can you explain? Are they behind a version? If so, why? Also, apt-pinning can help here. You can give a repo a higher-than-default priority. Maybe that would be applicable here? Dirk | Also, you will need to rebuild all locally installed packages as detailed on | the CRAN Debian page. | | Greetings, | | Johannes | | > now when I do the following, I get no joy: | > | > $ sudo apt-get install r-base | > | > Reading package lists... Done | > Building dependency tree | > Reading state information... Done | > Some packages could not be installed. This may mean that you have | > requested an impossible situation or if you are using the unstable | > distribution that some required packages have not yet been created | > or been moved out of Incoming. | > The following information may help to resolve the situation: | > | > The following packages have unmet dependencies: | > r-base : Depends: r-recommended (= 4.0.0-1~bustercran.0) but it is not | > going to be installed | > E: Unable to correct problems, you have held broken packages. | > | > | > However, when I use the buster-cran-35 deb line, all works fine. So there | > seems to be something going on with buster-cran-40. Is this correct, or am | > I missing something? | > | > Thanks, | > Mark | > | > [[alternative HTML version deleted]] | > | > _______________________________________________ | > R-SIG-Debian mailing list | > R-SIG-Debian at r-project.org | > https://stat.ethz.ch/mailman/listinfo/r-sig-debian | | _______________________________________________ | R-SIG-Debian mailing list | R-SIG-Debian at r-project.org | https://stat.ethz.ch/mailman/listinfo/r-sig-debian -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
Dirk Eddelbuettel
2020-Jun-05 18:07 UTC
[R-sig-Debian] installation problem for R 4.0 on Debian buster
Johannes, Also, the page is an edit behind. The Debian transition for R 4.0.0 ended; and the R package 4.0.0-3 is in testing as are all packages using r-api-4.0. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org