<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63839>63839</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
apt package conflict for libclang-rt-17-dev and libclang-rt-17-dev-wasm64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Snape3058
</td>
</tr>
</table>
<pre>
Both packages contains file `/usr/lib/llvm-17/lib/clang/17/lib/wasi/libclang_rt.builtins-wasm64.a`
When libclang-rt-17-dev-wasm64 package is installed, updating package libclang-rt-17-dev will lead to a paste failure.
Solved by removing package libclang-rt-17-dev-wasm64 and then updating package libclang-rt-17-dev
apt log:
```
Preparing to unpack .../libclang-rt-17-dev_1%3a17~++20230709053028+b4e09c0dea86-1~exp1~20230709173134.693_amd64.deb ...
Unpacking libclang-rt-17-dev:amd64 (1:17~++20230709053028+b4e09c0dea86-1~exp1~20230709173134.693) over (1:17~++20230704053004+ed9cb663765c-1~exp1~20230704173110.688) ...
dpkg: error processing archive /var/cache/apt/archives/libclang-rt-17-dev_1%3a17~++20230709053028+b4e09c0dea86-1~exp1~20230709173134.693_amd64.deb (--unpack):
trying to overwrite '/usr/lib/llvm-17/lib/clang/17/lib/wasi/libclang_rt.builtins-wasm64.a', which is also in package libclang-rt-17-dev-wasm64 1:17~++20230709053028+b4e09c0dea86-1~exp1~20230709173134.693
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libclang-rt-17-dev_1%3a17~++20230709053028+b4e09c0dea86-1~exp1~20230709173134.693_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
System info:
Ubuntu 20.04
apt mirror:
```
deb [arch=amd64] http://apt.llvm.org/focal/ llvm-toolchain-focal main
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVV9vq7gT_TTOywhkbC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