Monday, May 6, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 10313  / 1 Year ago, sun, december 18, 2022, 5:49:59

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 https://apt.llvm.org/llvm.sh
$ chmod +x llvm.sh
$ sudo ./llvm.sh 12

Thiss 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 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.31-0ubuntu9 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

More From » package-management

 Answers
7

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

[#1581] Monday, December 19, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ledeball

Total Points: 434
Total Questions: 121
Total Answers: 120

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
ledeball questions
Fri, Oct 7, 22, 00:32, 2 Years ago
Sat, Nov 19, 22, 06:15, 1 Year ago
Sat, Dec 3, 22, 07:59, 1 Year ago
;