When I try to install r software in debian 10 I get unmet dependencies error.
The line "deb https://cloud.r-project.org/bin/linux/debian buster-cran40/" was already added in "/etc/apt/sources.list".
After running "apt install -t buster-cran40 r-base", I get this message:
"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-base-core (>= 4.0.3-1~bustercran.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1~bustercran.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages."
I already tried the approaches from those sites:
https://www.charlesbordet.com/en/how-to-upgrade-to-R-4-0-0-on-debian/#the-naive-solution
https://cran.r-project.org/bin/linux/debian/
I need your help.
2
Answers
The problem was indeed in the file "/etc/apt/sources.list", where I have added the bellow links with the command line
sudo add-apt-repository 'deb link'
.Check your
/etc/apt/sources.list
it should contain the regular debian repository and thecran
repository (remove duplicate).Check your
/etc/apt/sources.list.d
for duplicate entry.Then run: