Unable to install libclang on 20.04 LTS
Olivia Zamora
After trying to install libclang-dev with sudo apt-get install -y libclang-dev i receive this error:
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 try the solution:
$ wget $ chmod +x llvm.sh $ sudo ./llvm.sh 12Thiss occurs:
The following packages have unmet dependencies: clang-12 : Depends: libclang-common-12-dev (= 1:12.0.1~++20210511012537+24535af52ae1-1~exp1~20210510233243.87) but it is not going to be installed clangd-12 : Depends: libclang-common-12-dev (= 1:12.0.1~++20210511012537+24535af52ae1-1~exp1~20210510233243.87) 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.2 Candidate: 2.31-0ubuntu9.2 Version table: *** 2.31-0ubuntu9.2 500 500 focal-updates/main amd64 Packages 100 /var/lib/dpkg/status 2.31-0ubuntu9 500 500 focal/main amd64 Packages 11 3 Answers
You have to revert libc6 library to the normal version using command below:
sudo apt-get install libc6=2.31-0ubuntu9.2 libc6:i386=2.31-0ubuntu9.2 3 I got same problem. I have run this steps (no idea what they did - I'm new on this, but works for me)
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
sudo apt-get -f install 0 For me it solved
sudo apt --fix-broken install
sudo apt-get updateAnd then installing with
sudo dpkg -i rstudio-specific-version.deb