https://bugs.llvm.org/show_bug.cgi?id=43254

            Bug ID: 43254
           Summary: Can't install clangd-9 alongside clang-tools-9 on
                    Ubuntu Disco
           Product: Packaging
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: deb packages
          Assignee: unassignedb...@nondot.org
          Reporter: j...@linux.com
                CC: llvm-bugs@lists.llvm.org

When trying to install clangd-9 and clang-tools-9 via apt.llvm.org on Ubuntu
Disco, like this:

```Dockerfile
FROM ubuntu:disco

RUN apt-get update && apt-get install -qy curl gnupg software-properties-common

RUN curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
 && apt-add-repository -yu "deb http://apt.llvm.org/disco/
llvm-toolchain-disco-9 main" \
 && apt-get -t llvm-toolchain-disco-9 install -y \
    clangd-9 \
    clang-format-9 \
    clang-tidy-9
```

it fails with this error:

> The following packages have unmet dependencies:
> clangd-9 : Breaks: clang-tools-9 (< 1:9~+rc1-1~exp2) but 
> 1:9~svn371301-1~exp1~20190908074810.48 is to be installed
> E: Unable to correct problems, you have held broken packages.

However, doing the exact same thing with clangd-10 and clang-tools-10 works
fine:

```Dockerfile
FROM ubuntu:disco

RUN apt-get update && apt-get install -qy curl gnupg software-properties-common

RUN curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
 && apt-add-repository -yu "deb http://apt.llvm.org/disco/ llvm-toolchain-disco
main" \
 && apt-get -t llvm-toolchain-disco install -y clangd-10 clang-tidy-10
clang-format-10
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to