Score:0

Unable to install RSTUDIO - Cannot install 'libclang-dev'

sk flag

please if you could assist, I have tried to find solution but still unable to install rstudio (ubuntu 20.04 LTS). Getting this output:

sudo gdebi rstudio-2022.12.0-353-amd64.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Cannot install 'libclang-dev'

Then i tried:

sudo apt install libclang-dev
[sudo] password for___: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libclang-dev : Depends: libclang-10-dev (>= 10~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

When i tried this i get:

he following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-12 : Depends: libobjc-9-dev but it is not going to be installed
            Depends: libclang-common-12-dev (= 1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4) but it is not going to be installed
 clangd-12 : Depends: libclang-common-12-dev (= 1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The output of sudo apt-cache policy libc6

libc6:
  Installed: 2.31-0ubuntu9.9
  Candidate: 2.31-0ubuntu9.9
  Version table:
 *** 2.31-0ubuntu9.9 100
        100 /var/lib/dpkg/status
     2.31-0ubuntu9 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Tried all proposals from : Unable to install libclang on 20.04 LTS But i am not able to fix it..please could you provide assistance?

dju_V avatar
sk flag
For all struggling with same issue: After applying this: ` sudo apt install aptitude` Then run: ` sudo aptitude install clang` (first answer No, then two answers Y ) and afterwards i was able to install rstudio with gdebi
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.