<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64120>64120</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Error installing clang-format from llvm-toolchain-focal
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chouetz
</td>
</tr>
</table>
<pre>
Hello,
Since July 25th afternoon, I have a trouble installing clang-format from llvm-toolchain-focal source list.
On ubuntu 20.04, the error is the following:
```
sudo apt-get -t llvm-toolchain-focal install -y --no-install-recommends \
> clang-format
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
clang-format : Depends: clang-format-17 (>= 17~) but it is not installable
E: Unable to correct problems, you have held broken packages.
```
I've checked in the `Packages` file on [llvm repository](https://apt.llvm.org/focal/dists/llvm-toolchain-focal/main/binary-amd64/) and the definition of `clang-format` is the following:
```
Package: clang-format
Source: llvm-defaults (0.58~exp1~20230129223711.13)
Version: 1:17.0-58~exp1~20230129223711.13
Architecture: amd64
Maintainer: LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Installed-Size: 33
Depends: clang-format-17 (>= 17~)
Breaks: clang (<< 1:3.6-28)
Replaces: clang (<< 1:3.6-28)
Multi-Arch: same
Priority: optional
Section: devel
Filename: pool/main/l/llvm-defaults/clang-format_17.0-58~exp1~20230129223711.13_amd64.deb
Size: 9992
SHA256: 955cd5eeff89955e43b4b31f8819b75afb4ad08e6aa9d4878e68d50230675d6a
SHA1: 89adf563aeec5544fddbacfd6b7c9dde221b3ed3
MD5sum: a743e1bf067cd088bbd80b0c5fe60fe6
```
Whereas `clang-format-17` is not (or no more) available in this repo (but clang-format-18 since yesterday [it seems](https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/bf100602e2911e4a996220551c67c8d9616eb2e5)
I installed instead `clang-format-18`. Do you think there is a real issue here?
Many thanks in advance
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVk1v5LgR_TXsS0GCRH0f-uCx3dgJ1shiZ7I5LkpiqcWYIjsk1UnvYX57QErddk-cYMcwDIuqz_eqnojOyaMm2rPqE6uedrj4ydj9MJmF_B-73ojL_idSyjD-yLInlj18kXog-MuiLsArPwGOnqw2RjP-CJ9hwjMBgrdm6RWB1M6jUlIfYVCoj8lo7IweRmtmUOo8J94YNUwodTKaARU4s9iBQEnn0zXjXzUs_aL9AjxLszLk8RMBWWssSBcfRqOU-ZfUR1Y8rF6szrbf-OgWYQBPPjmSh8R_nHurFpILJIk2yfacWBrMPJMWDli14cCKZwg_79ta3_xKKELDJxxe8bi24tI0hSejaTX5tEgVbQSdSAvSwwW8JboP4Dz6AOEaXBp9H-SLmemaxMFgFiVAGw_9DXYSKXydpIMZLzATavATeriYJfK0hrH0z4WcJwGoQc4n45wM1Dnpl5gVAsxj9EJLsLhQWwB9CVl6tcUR0nkr-yW6xDwuFBjCS0virdI4IqHQC4ViScNgCT2JNY6x6-FsziTALB7MCJ_1YGapj9tIfH1P-XuEYqcTqRN4A5acUWeKtd66eRuQDyLd17jomfwbRZLczfl-mlnxAE_RLFjcvUvyBhhvWfHMiifIm2-Md9AvHqQPsxtg2Mh6Q_I5BPmbDgehjcFYS4OHkzW9otmFBbhSGHoV0FvzSvpWffrhBqx_PzPenAmGiYZXEiB1RIfV2S-bM6szGKUiMBpY9SnsCVg6GSe9sRdWPTHeTt6fIhb8wPgBTz4NZqmxR8YPcZUYP4R5cIwfPto0xg8zSs34oZca7SXBWdRlDNcBahGLEjRKLdcJHEOJd6tWZ39697fWvqfmukVBb8K7WKigERflXSAtS6v2G_37lH_jGS-ynHecF02ep3nBeLe6_0bWrVMFOSse8ibNkv_tFV0e7DBJT4NfbMy79h5fvaDUHqUmG178_PNvL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