<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Unable to install clangd-8 and clang-tidy-8 at the same time from LLVM Ubuntu Xenial repositories"
   href="https://bugs.llvm.org/show_bug.cgi?id=44218">44218</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unable to install clangd-8 and clang-tidy-8 at the same time from LLVM Ubuntu Xenial repositories
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Packaging
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>deb packages
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>funous@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am using the LLVM repositories for Ubuntu Xenial (`deb
<a href="http://apt.llvm.org/xenial/">http://apt.llvm.org/xenial/</a> 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` and `clang-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
```

Possibly related to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Can't install clangd-9 alongside clang-tools-9 on Ubuntu Disco"
   href="show_bug.cgi?id=43254">https://bugs.llvm.org/show_bug.cgi?id=43254</a>

To reproduce it I used docker, here is a minimal `Dockerfile` that shows the
issue:
```
FROM ubuntu:16.04
RUN echo "deb <a href="http://apt.llvm.org/xenial/">http://apt.llvm.org/xenial/</a> 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 <a href="http://apt.llvm.org/xenial/">http://apt.llvm.org/xenial/</a> llvm-toolchain-xenial-8
main" > /etc/apt/sources.list.d/llvm.list   && apt-get update
 ---> Running in fbb9e6520558
Get:1 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial InRelease [247 kB]
Get:2 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> xenial-security InRelease [109 kB]
Get:3 <a href="http://apt.llvm.org/xenial">http://apt.llvm.org/xenial</a> llvm-toolchain-xenial-8 InRelease [4234 B]
Get:4 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-updates InRelease [109 kB]
Get:5 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-backports InRelease [107 kB]
Ign:3 <a href="http://apt.llvm.org/xenial">http://apt.llvm.org/xenial</a> llvm-toolchain-xenial-8 InRelease
Get:6 <a href="http://apt.llvm.org/xenial">http://apt.llvm.org/xenial</a> llvm-toolchain-xenial-8/main amd64 Packages
[8424 B]
Get:7 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> xenial-security/main amd64 Packages
[1015 kB]
Get:8 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial/main amd64 Packages [1558 kB]
Get:9 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> xenial-security/restricted amd64
Packages [12.7 kB]
Get:10 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> xenial-security/universe amd64
Packages [594 kB]
Get:11 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> xenial-security/multiverse amd64
Packages [6283 B]
Get:12 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial/restricted amd64 Packages [14.1
kB]
Get:13 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial/universe amd64 Packages [9827
kB]
Get:14 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial/multiverse amd64 Packages [176
kB]
Get:15 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-updates/main amd64 Packages
[1393 kB]
Get:16 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-updates/restricted amd64
Packages [13.1 kB]
Get:17 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-updates/universe amd64 Packages
[998 kB]
Get:18 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-updates/multiverse amd64
Packages [19.3 kB]
Get:19 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-backports/main amd64 Packages
[7942 B]
Get:20 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial-backports/universe amd64
Packages [8807 B]
Fetched 16.2 MB in 2s (6339 kB/s)
Reading package lists...
W: GPG error: <a href="http://apt.llvm.org/xenial">http://apt.llvm.org/xenial</a> 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 '<a href="http://apt.llvm.org/xenial">http://apt.llvm.org/xenial</a> 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
```</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>