我在 Ubuntu 20.04 中安装 clang-7 时遇到问题。其他版本的 clang 安装没有任何问题。但只有 clang-7 给出了这样的消息。
clang-7 : Depends: libstdc++-5-dev but it is not installable
Depends: libgcc-5-dev but it is not installable
Depends: libobjc-5-dev but it is not installable
Depends: libclang-common-7-dev (= 1:7.1.0~svn353565-1~exp1~20190408084827.60) but 1:7.0.1-12 is to be installed
Recommends: python
Recommends: libomp-7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
该消息意味着无法在 Ubuntu 20.04 中安装 Depends。在这种情况下,还有其他方法可以安装 Clang-7 并使用它吗?