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?
sudo apt --fix-broken install
and see if that fixes it.apt
(andapt-get
) need to be ran withsudo
so they have root privileges – cocomac Jun 06 '22 at 18:18The following packages have unmet dependencies: libc6-i386 : Depends: libc6 (= 2.34-0ubuntu3.2) but 2.35-0ubuntu3 is to be installed libstdc++-9-dev : Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not installable E: Unable to correct problems, you have held broken packages. }
– Sher Jun 07 '22 at 01:59