I'm trying to install RKward
from the Ubuntu repositories, under Ubuntu 18.04.3 LTS.
Unfortunately I'm getting: The following packages have unmet dependencies.
, as I'm missing r-api-3.4
which apparently is not in the repo. Searching online, this should be provided by r-base-core
, which I have installed.
No packages are on hold (dpkg --get-selections | grep hold
returns nothing) and of course the system is up to date and with no packages to autoremove
.
How to fix this?
More info:
#> apt update
Hit:1 http://**my company's repo, synced daily**/apt/archive-ubuntu bionic InRelease
Hit:2 http://**my company's repo, synced daily**/apt/archive-ubuntu bionic-updates InRelease
Hit:3 http://**my company's repo, synced daily**/apt/archive-ubuntu bionic-backports InRelease
Hit:4 http://**my company's repo, synced daily**/apt/security-ubuntu bionic-security InRelease
Ign:5 http://**my company's repo, synced daily**/apt/sublimetext apt/dev/ InRelease
Hit:6 http://**my company's repo, synced daily**/apt/skype-deb stable InRelease
Get:7 http://**my company's repo, synced daily**/apt/spotify stable InRelease [3316 B]
Hit:8 http://**my company's repo, synced daily**/apt/nextcloud-devs-ubuntu bionic InRelease
Ign:9 http://**my company's repo, synced daily**/apt/chrome-deb stable InRelease
Hit:10 http://**my company's repo, synced daily**/apt/teamviewer stable InRelease
Hit:11 http://**my company's repo, synced daily**/apt/nodejs bionic InRelease
Hit:12 http://**my company's repo, synced daily**/apt/libreoffice bionic InRelease
Hit:13 http://**my company's repo, synced daily**/apt/sublimetext apt/dev/ Release
Hit:14 http://**my company's repo, synced daily**/apt/chrome-deb stable Release
Ign:15 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:16 http://ppa.launchpad.net/canonical-kernel-team/ppa/ubuntu bionic InRelease
Hit:17 http://dl.google.com/linux/chrome/deb stable Release
Hit:18 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease
Hit:19 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu bionic InRelease
Hit:20 http://packages.microsoft.com/repos/vscode stable InRelease
Fetched 3316 B in 1s (2773 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
#> apt install rkward
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:
rkward : Depends: r-api-3.4
E: Unable to correct problems, you have held broken packages.
#> apt-cache policy rkward
rkward:
Installed: (none)
Candidate: 0.7.0-1
Version table:
0.7.0-1 500
500 http://**my company's repo, synced daily**/apt/archive-ubuntu bionic/universe amd64 Packages
sudo apt update
and ofsudo apt install rkward
and ofapt-cache policy rkward
https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
(I think it providesRstudio
) which might be the root cause of this.sudo apt update
to refresh the package database without the repo, and then re-installing those packages from the Ubuntu 18.04 repositories. Always wise to take good notes in case you must undo something - lists of packages are notoriously hard to remember properly. A data backup before starting never hurts, too.