Installing llvm-21 currently fails on Ubuntu 22.04 Jammy due to a mismatch of the repo metadata and packages:
docker run -it --rm ubuntu:22.04 bash -c "
apt update && \
apt install -y lsb-release wget software-properties-common gnupg curl && \
wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 21
"
Result:
...
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/libllvm21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/libclang-cpp21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/libclang-common-21-dev_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/llvm-21-linker-tools_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/libclang1-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/clang-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/clang-tools-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/clangd-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/libclang-rt-21-dev_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/liblldb-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/lld-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/python3-lldb-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/lldb-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/llvm-21-runtime_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/llvm-21_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/llvm-21-tools_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Failed to fetch https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/llvm-21-dev_21.1.8%7e%2b%2b20251221032842%2b2078da43e25a-1%7eexp1%7e20251221153008.77_amd64.deb 404 Not Found [IP: 199.232.194.49 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Looking at https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/, I can see that the packages for 21.1.5 exist but not the 21.1.8 ones.
Installing llvm-21 currently fails on Ubuntu 22.04 Jammy due to a mismatch of the repo metadata and packages:
Result:
Looking at https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/, I can see that the packages for 21.1.5 exist but not the 21.1.8 ones.