package libclang-common-15-dev 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110 failed to install/upgrade: trying to overwrite '/usr/lib/llvm-15/lib/clang/15.0.7/README.txt', which is also in package libclang-rt-15-dev:amd64 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110

Bug #2016824 reported by Mark Zvilius
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-15 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running "apt upgrade" as I have done hundreds of times before, but this time I got this error.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: libclang-common-15-dev 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110
ProcVersionSignature: Ubuntu 5.19.0-38.39~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-38-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon Apr 17 19:25:01 2023
ErrorMessage: trying to overwrite '/usr/lib/llvm-15/lib/clang/15.0.7/README.txt', which is also in package libclang-rt-15-dev:amd64 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110
InstallationDate: Installed on 2022-08-23 (237 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.8, python3-minimal, 3.10.6-1~22.04
PythonDetails: /usr/bin/python3.10, Python 3.10.8, python-is-python3, 3.9.2-2
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.8
SourcePackage: llvm-toolchain-15
Title: package libclang-common-15-dev 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110 failed to install/upgrade: trying to overwrite '/usr/lib/llvm-15/lib/clang/15.0.7/README.txt', which is also in package libclang-rt-15-dev:amd64 1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mark Zvilius (zvilius) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-15 (Ubuntu):
status: New → Confirmed
Revision history for this message
Arthur Passos (arthurpassoscs) wrote :

Facing this as well, any workarounds in the meantime?

Revision history for this message
Lucas Chenco (lchenco) wrote :

Removing clang-15 and associated tools worked my end.

sudo apt-get remove clang-15 clangd-15 clang-tools-15 clang-tidy-15

Revision history for this message
Joe Zidell (jzidell) wrote :

Same issue here

Revision history for this message
Keith (keithing) wrote (last edit ):

I was able to work around with

```
sudo apt-get -f install libclang-common-15-dev -o DPkg::options::="--force-overwrite"
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.