llvm / llvm/llvm-project

Latest clangd won't install on Bookworm and Trixie

Open
#192,947 1 comment 1 reaction 0 assignees View on GitHub
clangd packaging platform:linux
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Installing latest `clangd` from `http://apt.llvm.org` on *Bookworm* and *Trixie* seems to fail:
```Containerfile
#! /usr/bin/env -S podman build --no-cache -f

FROM debian:trixie

RUN apt-get update && apt-get install -y ca-certificates

ADD --chmod=644 https://apt.llvm.org/llvm-snapshot.gpg.key /etc/apt/keyrings/llvm.asc
COPY <= 22~) but it is not installable
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
Unable to satisfy dependencies. Reached two conflicting decisions:
1. clangd:amd64=1:22.0-62~exp2~20251121220725.4 is selected for install
2. clangd:amd64=1:22.0-62~exp2~20251121220725.4 Depends clangd-22 (>= 22~)
but none of the choices are installable:
[no choices]
```

The same Containerfile seems to work and installs `clangd-23` when based on *Bullseye*:
```Containerfile
#! /usr/bin/env -S podman build --no-cache -f

FROM debian:bullseye

RUN apt-get update && apt-get install -y ca-certificates

ADD --chmod=644 https://apt.llvm.org/llvm-snapshot.gpg.key /etc/apt/keyrings/llvm.asc
COPY <

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.