Dependency issues when installing RStudio on Ubuntu 22.04

I just upgraded my Ubuntu distribution and get the following error when trying to install RStudio:

dpkg: dependency problems prevent configuration of rstudio:
 rstudio depends on libssl-dev; however:
  Package libssl-dev is not installed.
 rstudio depends on libclang-dev; however:
  Package libclang-dev is not installed.
 rstudio depends on libpq5; however:
  Package libpq5 is not installed.

dpkg: error processing package rstudio (--install):
 dependency problems - leaving unconfigured

I saw this topic:

and tried using the latest daily build, but get dependency issues with that as well (and my attempts to manually fix the dependencies failed). Has anyone else experienced this issue recently and found a solution?

Thanks for any help!

The latest stable release is 2022.07.2 Build 576, and I have that working without dependency issues introduced by Ubuntu 22.04 with simply download and eddy

Thanks for your quick reply.

I get the following error with that release:

(Reading database ... 229488 files and directories currently installed.)
Preparing to unpack rstudio-2022.07.2-576-amd64.deb ...
Unpacking rstudio (2022.07.2+576) over (2022.07.2+566) ...
dpkg: dependency problems prevent configuration of rstudio:
 rstudio depends on libssl-dev; however:
  Package libssl-dev is not installed.
 rstudio depends on libclang-dev; however:
  Package libclang-dev is not installed.
 rstudio depends on libpq5; however:
  Package libpq5 is not installed.

dpkg: error processing package rstudio (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
 rstudio

and when I try to install libssl-dev I get:

sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 rstudio : Depends: libclang-dev but it is not installable
           Depends: libpq5 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Those weren’t errors I saw. Did you try

Trying that got me closer; I think the main issue was that I didn't have all Software Sources enabled in Ubuntu Software after upgrading to 22.04. Thanks again for your help :slight_smile:

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.