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?