1

I am new to linux and ubuntu. I am trying to install Rstudio on ubuntu 22.04 LTS.

sudo apt-get install ./rstudio-latest-amd64.deb
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:
 libc6-dev : Depends: libc6 (= 2.19-10ubuntu2.1) but 2.35-0ubuntu3 is installed
             Depends: libc-dev-bin (= 2.19-10ubuntu2.1)
             Depends: linux-libc-dev but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

apt --fix-broken install E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

How do I downgrade dependencies for libc6-dev?

karel
  • 114,770
Sher
  • 111

2 Answers2

1

It might be due to the fact that, so far, there is no stable release that supports Ubuntu 22.04 LTS. See discussion on RStudio Community:

https://community.rstudio.com/t/rstudio-ide-desktop-2022-02-0-443-not-working-on-ubuntu-22-04-lts-some-gui-issue/135876/4

Apparently, latest daily builds work, at least with some tweaking to options. I have yet to try myself but I'm planning to. I'd love to hear how it goes for you.

teppo
  • 153
1

I had the same issue and could solve that by starting rstudio with the --no-sandbox option. The even better news is that the latest rstudio release is out with a package for 22.04. For me, that upgrade solved the issue.