<div dir="ltr">Hi,<br><br>It appears that ever since LLVM 11 has been tagged for release, the ubuntu 20.04 apt repository seems to be broken.<div><br></div><div>It seems the non-version packages target version 11, but it's missing. Version 12 packages are present, but are not the defaults.</div><div><br></div><div>Simple repro using Docker image for Ubuntu 20.04:<br><br>```<br><font face="monospace">FROM ubuntu:20.04 AS build-env<br>RUN apt-get update \<br> && apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget<br>RUN wget -O - <a href="https://apt.llvm.org/llvm-snapshot.gpg.key">https://apt.llvm.org/llvm-snapshot.gpg.key</a> | apt-key add - \<br> && apt-add-repository "deb <a href="http://apt.llvm.org/focal/">http://apt.llvm.org/focal/</a> llvm-toolchain-focal main" -s \<br> && apt-get update \<br> && apt-get install -y \<br> clang \<br> llvm-dev \<br> llvm</font><br>```</div><div><br></div><div>Relevant output:</div><div><br></div><div>```</div><div><font face="monospace">Hit:2 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> focal InRelease<br>Hit:1 <a href="https://apt.llvm.org/focal">https://apt.llvm.org/focal</a> llvm-toolchain-focal InRelease<br>Hit:3 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> focal-updates InRelease<br>Hit:4 <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> focal-backports InRelease<br>Hit:5 <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> focal-security InRelease<br>Reading package lists...<br>Reading package lists...<br>Building dependency tree...<br>Reading state information...<br>Some packages could not be installed. This may mean that you have<br>requested an impossible situation or if you are using the unstable<br>distribution that some required packages have not yet been created<br>or been moved out of Incoming.<br>The following information may help to resolve the situation:<br><br>The following packages have unmet dependencies:<br> clang : Depends: clang-11 (>= 11~) but it is not installable<br> llvm : Depends: llvm-runtime (= 1:11.0-51+0~20200404161639.1~1.gbp214056) but it is not going to be installed<br> Depends: llvm-11 (>= 11~) but it is not installable<br> llvm-dev : Depends: llvm-runtime (= 1:11.0-51+0~20200404161639.1~1.gbp214056) but it is not going to be installed<br> Depends: llvm-11-dev (>= 11~) but it is not installable<br>E: Unable to correct problems, you have held broken packages.</font><br></div><div>```</div><div><br></div><div>The 18.04 image (and llvm-toolchain-bionic) seem to work just fine, but debian:buster (and llvm-toolchain-buster) return the same errors.</div><div><br></div><div>When targeting repo llvm-toolchain-focal-10, the packages install correctly (w/ version 10). Interestingly, using llvm-toolchain-focal-11 gives the same results as
llvm-toolchain-focal-10 (it installs LLVM & Clang version 10).</div><div><br></div><div>Is this a known issue?</div><div><br></div><div>BR,<br>Marcin</div><div><br></div></div>