llvm / llvm/llvm-project

[apt.llvm.org] liblldb-N packages collide on /etc/lldb/lldbinit, breaking co-installation

Open
#218,821 1 comment 0 reactions 0 assignees View on GitHub
lldb packaging platform:linux
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

**Steps to reproduce**

Install `lldb-22` from apt.llvm.org, and then try to install `lldb-23`.

The latter fails with:

```
dpkg: error processing archive .../liblldb-23_1%3a23.1.0~++20260818083639+55feb0a3b6b7-1~exp1~20260818083649.49_amd64.deb (--unpack):
trying to overwrite '/etc/lldb/lldbinit', which is also in package liblldb-22 1:22.1.8-1~deb12u1
```

**Workaround**

Install with `sudo apt-get -o Dpkg::Options::="--force-overwrite" install lldb-23`.

**Additional notes**

Appears to be a regression from https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/8d3b66b3e23ee7aff6a5ed2c1a6c455a015720ff.

A potential fix is to store the file at a versioned path such as `/etc/lldb-N/lldbinit`.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the apt.llvm.org package definitions for liblldb-22 and liblldb-23, then review the referenced llvm-toolchain commit and reproduce the installation sequence. Done means lldb-22 and lldb-23 can be installed together without a dpkg file collision, with the lldbinit configuration handled safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian
Domain
release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.