clang は apt によるインストールを拒否します。

clang は apt によるインストールを拒否します。

だから私はUnreal Engine 4を保存したいのですが、奇妙な理由でclangがそれをインストールしたくありません。私は以前にclangを使ったことがなく、インストールしたこともないので、何が起こっているのかわかりません。

Registering git hooks... (this will override existing ones!)
Attempting installation of missing package: clang-3.5
+ sudo apt-get install -y clang-3.5
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:
 clang-3.5 : Depends: libclang1-3.5 (= 1:3.5-4ubuntu2~trusty2) but it is     not going to be installed
             Depends: libobjc-4.8-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

これは私に起こったことで、ソースだけでなくパッケージマネージャを介していくつかの異なるソフトウェアを入手しようとしたので、本当に迷惑です。

これは私の名前です:

Linux hyperbeam 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

答え1

依存関係を手動でインストールしてみてください。

sudo apt-get install -y clang-3.5 libclang1-3.5 libobjc-4.8-dev

これは、混合リポジトリによって引き起こされる可能性があります。望むより:

https://askubuntu.com/questions/564282/apt-get-unmet-dependent-but-it-is-not-going-to-be-installed

/etc/apt/sources.listが混在していますか?最新のリポジトリからパッケージをインストールしようとしていますが、最新の依存関係を持つリポジトリにアクセスできないようです。

答え2

sudo apt --fix-broken install 修正をインストールした後、Ubuntu 18.04.2 Am で sudo apt update を実行します。これは私にとって効果的でした。

関連情報