Errors were encountered while processing: rstudio

Hello, I am trying to install RStudio on my Ubuntu 20.04 laptop amd64, using the "rstudio-2022.07.2-576-
amd64.deb" file from terminal:

sudo dpkg -i rstudio-2022.07.2-576-amd64.deb

When I try to install it, the console gives the message :

Selecting previously unselected package rstudio.
(Reading database ... 101896 files and directories currently installed.)
Preparing to unpack rstudio-2022.07.2-576-amd64.deb ...
Unpacking rstudio (2022.07.2+576) ...
dpkg: dependency problems prevent configuration of rstudio:
 rstudio depends on libclang-dev; however:
  Package libclang-dev is not installed.
 rstudio depends on libxkbcommon-x11-0; however:
  Package libxkbcommon-x11-0 is not installed.

dpkg: error processing package rstudio (--install):
 dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
 rstudio

I am using Ubuntu 20.04 and am trying to install the latest version of R Studio available for Ubuntu. I was able to install R without any difficulty.

There might be a very easy solution or I may be doing the installation wrong. I am both new to Ubuntu and R.

Thank you very much for your help.
Best Regards

I suspect you are simply using the wrong installer, try with this link

https://download1.rstudio.org/desktop/bionic/amd64/rstudio-2022.07.2-576-amd64.deb

Also, you could try with gdebi to handle any missing dependency

sudo gdebi studio-2022.07.2-576-amd64.deb

Thanks, I solved it by following this:

Ubuntu Packages For R - Brief Instructions (r-project.org)

Those are instructions for installing R and package binaries, not for installing RStudio, they are not related to the error messages you showed in your first post.

This topic was automatically closed 21 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.