Недавно я обновился до хитрого и больше не могу установить r-recommended. Я продолжаю получать это сообщение об ошибке:
user@box:~$ sudo apt install r-recommended
[sudo] password for user:
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-recommended : Depends: r-cran-boot (>= 1.2.19) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
user@box:~$
Тем не менее, https://cran.r-project.org/bin/linux/ubuntu/artful/ уже доступен.
Редактирование: по просьбе @muru в комментариях вывод из sudo apt-get update плюс вывод из sudo apt-get upgrade был
user@box:~$ sudo apt update
Hit:1 http://download.virtualbox.org/virtualbox/debian zesty InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:3 https://cran-r.c3sl.ufpr.br/bin/linux/ubuntu artful/ InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 https://cran-r.c3sl.ufpr.br/bin/linux/ubuntu artful/ Release
Hit:8 http://archive.ubuntu.com/ubuntu artful InRelease
Hit:9 http://archive.canonical.com/ubuntu artful InRelease
Hit:10 http://archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu artful-backports InRelease
Hit:12 http://archive.ubuntu.com/ubuntu artful-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
user@box:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@box:~$
Похоже, что для r-cran-boot существует искаженная зависимость. В частности, это зависит от r-api-3, который больше не существует, был изменен на r-api-3.4.
sudo aptitude full-upgrade
The following packages will be upgraded:
r-cran-boot{b}
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 618 kB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package and is not provided by any available package
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [1.3-20-1build1 (artful, now)]
Accept this solution? [Y/n/q/?]
В настоящее время я попытаюсь представить отчет об ошибке.
Обновление: похоже, исправитель пакета исправил проблему. Я могу обновить без получения ошибки зависимостей.
Похоже, что для r-cran-boot существует искаженная зависимость. В частности, это зависит от r-api-3, который больше не существует, был изменен на r-api-3.4.
sudo aptitude full-upgrade
The following packages will be upgraded:
r-cran-boot{b}
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 618 kB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package and is not provided by any available package
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [1.3-20-1build1 (artful, now)]
Accept this solution? [Y/n/q/?]
В настоящее время я попытаюсь представить отчет об ошибке.
Обновление: похоже, исправитель пакета исправил проблему. Я могу обновить без получения ошибки зависимостей.
Похоже, что для r-cran-boot существует искаженная зависимость. В частности, это зависит от r-api-3, который больше не существует, был изменен на r-api-3.4.
sudo aptitude full-upgrade
The following packages will be upgraded:
r-cran-boot{b}
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 618 kB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package and is not provided by any available package
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [1.3-20-1build1 (artful, now)]
Accept this solution? [Y/n/q/?]
В настоящее время я попытаюсь представить отчет об ошибке.
Обновление: похоже, исправитель пакета исправил проблему. Я могу обновить без получения ошибки зависимостей.
Действительно, как указал Пол Стодхилл в своем ответе, установка с aptitude будет делать трюк, если вы знаете, что он предложит сначала установить ничего - одно бесполезное предложение, которое вам нужно отклонить, - просто, то он предложит установить r-cran-boot в любом случае с неудовлетворительной зависимостью от r-api-3.4, как показано на этом выходе:
user@box:~$ sudo aptitude install r-recommended
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{ab} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package, provided by:
- r-base-core (3.4.2-2zesty), but 3.4.2-2artful4 is to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [Not Installed]
2) r-recommended [Not Installed]
Leave the following dependencies unresolved:
3) r-base-core recommends r-recommended
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) r-cran-boot [1.3-20-1build1 (artful)]
Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{a} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-core 3.4.2-2artful4 [23.2 MB]
Get: 2 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-dev 3.4.2-2artful4 [4414 B]
(...)
Setting up r-cran-rpart (4.1-11-1build1) ...
Setting up r-recommended (3.4.2-2artful4) ...
Current status: 1 (+1) upgradable.
user@box:~$
Действительно, как указал Пол Стодхилл в своем ответе, установка с aptitude будет делать трюк, если вы знаете, что он предложит сначала установить ничего - одно бесполезное предложение, которое вам нужно отклонить, - просто, то он предложит установить r-cran-boot в любом случае с неудовлетворительной зависимостью от r-api-3.4, как показано на этом выходе:
user@box:~$ sudo aptitude install r-recommended
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{ab} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package, provided by:
- r-base-core (3.4.2-2zesty), but 3.4.2-2artful4 is to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [Not Installed]
2) r-recommended [Not Installed]
Leave the following dependencies unresolved:
3) r-base-core recommends r-recommended
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) r-cran-boot [1.3-20-1build1 (artful)]
Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{a} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-core 3.4.2-2artful4 [23.2 MB]
Get: 2 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-dev 3.4.2-2artful4 [4414 B]
(...)
Setting up r-cran-rpart (4.1-11-1build1) ...
Setting up r-recommended (3.4.2-2artful4) ...
Current status: 1 (+1) upgradable.
user@box:~$
Действительно, как указал Пол Стодхилл в своем ответе, установка с aptitude будет делать трюк, если вы знаете, что он предложит сначала установить ничего - одно бесполезное предложение, которое вам нужно отклонить, - просто, то он предложит установить r-cran-boot в любом случае с неудовлетворительной зависимостью от r-api-3.4, как показано на этом выходе:
user@box:~$ sudo aptitude install r-recommended
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{ab} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
The following packages have unmet dependencies:
r-cran-boot : Depends: r-api-3 which is a virtual package, provided by:
- r-base-core (3.4.2-2zesty), but 3.4.2-2artful4 is to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) r-cran-boot [Not Installed]
2) r-recommended [Not Installed]
Leave the following dependencies unresolved:
3) r-base-core recommends r-recommended
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) r-cran-boot [1.3-20-1build1 (artful)]
Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
cdbs{a} dh-translations{a} intltool{a} libblas-dev{a} liblapack-dev{a} libncurses5-dev{a} libreadline-dev{a} libtinfo-dev{a} python-pkg-resources{a} python-scour{a}
python-six{a} r-base-core{a} r-base-dev{a} r-cran-boot{a} r-cran-class{a} r-cran-cluster{a} r-cran-codetools{a} r-cran-foreign{a} r-cran-kernsmooth{a}
r-cran-lattice{a} r-cran-mass{a} r-cran-matrix{a} r-cran-mgcv{a} r-cran-nlme{a} r-cran-nnet{a} r-cran-rpart{a} r-cran-spatial{a} r-cran-survival{a} r-doc-html{a}
r-recommended
0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.5 MB of archives. After unpacking 78.9 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-core 3.4.2-2artful4 [23.2 MB]
Get: 2 https://cloud.r-project.org/bin/linux/ubuntu artful/ r-base-dev 3.4.2-2artful4 [4414 B]
(...)
Setting up r-cran-rpart (4.1-11-1build1) ...
Setting up r-recommended (3.4.2-2artful4) ...
Current status: 1 (+1) upgradable.
user@box:~$