Closed
Description
I am using the LLVM repositories for Ubuntu Xenial (deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main
) and I'd like to install both clangd-8
and clang-tidy-8
. At the moment it's not possible, but I did not find any documentation saying these two packages should be incompatible.
Expected behaviour:
- It's possible to install
clangd-8
andclang-tidy-8
at the same time.
Actual behaviour:
- Apt fails with the following error:
The following packages have unmet dependencies:
clangd-8 : Breaks: clang-tools-8 (< 1:8.0.1-1) but 1:8.0.1~svn369350-1~exp1~20190820122438.78 is to be installed
To reproduce it I used docker, here is a minimal Dockerfile
that shows the issue:
FROM ubuntu:16.04
RUN echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" > /etc/apt/sources.list.d/llvm.list \
&& apt-get update
RUN apt-get install -y clangd-8 clang-tidy-8
Here is the full output of running docker build .
with the Dockerfile
above:
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16.04
---> 2a697363a870
Step 2/3 : RUN echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" > /etc/apt/sources.list.d/llvm.list && apt-get update
---> Running in fbb9e6520558
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://apt.llvm.org/xenial llvm-toolchain-xenial-8 InRelease [4234 B]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Ign:3 http://apt.llvm.org/xenial llvm-toolchain-xenial-8 InRelease
Get:6 http://apt.llvm.org/xenial llvm-toolchain-xenial-8/main amd64 Packages [8424 B]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1015 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [594 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6283 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1393 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [998 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.3 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 16.2 MB in 2s (6339 kB/s)
Reading package lists...
W: GPG error: http://apt.llvm.org/xenial llvm-toolchain-xenial-8 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421
W: The repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial-8 InRelease' is not signed.
Removing intermediate container fbb9e6520558
---> 3a75c1f67438
Step 3/3 : RUN apt-get install -y clangd-8 clang-tidy-8
---> Running in 80b859553919
Reading package lists...
Building dependency tree...
Reading state information...
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:
clangd-8 : Breaks: clang-tools-8 (< 1:8.0.1-1) but 1:8.0.1~svn369350-1~exp1~20190820122438.78 is to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y clangd-8 clang-tidy-8' returned a non-zero code: 100
Metadata
Metadata
Assignees
Labels
No labels