<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64489>64489</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`apt.llvm.org` offers unversioned packages
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
The causes for #64120 and #64182 also resulted in unversioned packages (e.g. `clang` instead of `clang-17`/`clang-18`) being published for the main branch by `apt.llvm.org`. This causes the distro packages being replaced.
```
apt list -a clang
Listing... Done
clang/unknown,now 1:18.0-58~exp1~20230727113816.15 amd64 [installed,automatic]
clang/focal 1:10.0-50~exp1 amd64
```
This was just introduced recently as I have this system set up to use `apt.llvm.sh` since at least CLang 13 or 14 or it never published such a package before and it just started at the end of July with Clang 17 (most likely when the branch switch was botched).
The issue has been resolved in that these packages are no longer being generated since the versioned packages now have a newer timestamp:
```
apt list -a clang-18
Listing... Done
clang-18/unknown 1:18~++20230806052914+ffc5ed976a47-1~exp1~20230806173031.722 amd64 [upgradable from: 1:18~++20230805052926+3e2ed5701b7e-1~exp1~20230805173043.721]
clang-18/now 1:18~++20230805052926+3e2ed5701b7e-1~exp1~20230805173043.721 amd64 [installed,upgradable to: 1:18~++20230806052914+ffc5ed976a47-1~exp1~20230806173031.722]
```
But those unversioned packages remain in the repo (from `/var/lib/apt/lists/apt.llvm.org_focal_dists_llvm-toolchain-focal_main_binary-amd64_Packages` (applies to all packages not just `clang`):
```
Package: clang
Source: llvm-defaults (0.58~exp1~20230727113816.15)
Version: 1:18.0-58~exp1~20230727113816.15
```
```
Package: clang-18
Source: llvm-toolchain-snapshot
Version: 1:18~++20230806052914+ffc5ed976a47-1~exp1~20230806173031.722
```
So those need to be removed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklk2P2zgPxz-NciFiSPL7IYdmBgM8D3pYoMVeB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