如何卸载`libllvm3.8(1:3.8-2ubuntu4)`并安装`libllvm3.8(= 1:3.8-2ubuntu1)`?

时间:2018-01-26 18:48:32

标签: clang ubuntu-16.04 llvm-clang unreal-engine4

我按照此处的说明尝试安装UnrealEngine4:https://github.com/Microsoft/AirSim/blob/master/docs/build_linux.md

当我在UnrealEngine4存储库中运行./Setup.sh时,出现以下错误:

The following packages have unmet dependencies:
 clang-3.8 : Depends: libclang1-3.8 (= 1:3.8-2ubuntu1) but it is not going to be installed
             Depends: libobjc-5-dev but it is not going to be installed
             Depends: libclang-common-3.8-dev (= 1:3.8-2ubuntu1) but it is not going to be installed
             Recommends: llvm-3.8-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这导致我尝试安装llvm-3.8-dev

sudo apt-get install llvm-3.8-dev

最终导致了这个问题:

The following packages have unmet dependencies:
 llvm-3.8-dev : Depends: libllvm3.8 (= 1:3.8-2ubuntu1) but 1:3.8-2ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.

如何卸载libllvm3.8 (1:3.8-2ubuntu4)

其他信息:

$ dpkg -l | grep llvm
ri  libllvm3.8:amd64                                            1:3.8-2ubuntu4                                amd64        Modular compiler and toolchain technologies, runtime library

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

1 个答案:

答案 0 :(得分:0)

sudo apt install package = version

您应该安装包添加版本号

的包

sudo apt install llvm-3.8-dev = 1:3.8-2ubuntu1