llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.13k stars 12.01k forks source link

Ubuntu Noble: Unmet dependencies when upgrading LLVM20 #109575

Closed Zingam closed 1 month ago

Zingam commented 1 month ago

LLVM20 installed by ./llvm.sh 20

Unpacking libpolly-20-dev:amd64 (1:20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429) over (1:20~++
20240921081646+8527861179ac-1~exp1~20240921081835.427) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-4qNIt3/09-llvm-20-dev_1%3a20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429_
amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
zzzz@zzzz:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 llvm-20-dev : Depends: libllvm20 (= 1:20~++20240921081646+8527861179ac-1~exp1~20240921081835.427) but 1:20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429 is installed
               Depends: llvm-20 (= 1:20~++20240921081646+8527861179ac-1~exp1~20240921081835.427) but 1:20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429 is installed
               Depends: llvm-20-tools (= 1:20~++20240921081646+8527861179ac-1~exp1~20240921081835.427) but 1:20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429 is installed
               Depends: libclang-cpp20 (= 1:20~++20240921081646+8527861179ac-1~exp1~20240921081835.427) but 1:20~++20240922083525+e4e3ff5adc8b-1~exp1~20240922083716.429 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

A previous issue preventing Clang 20 from working: https://github.com/llvm/llvm-project/issues/109153

Zingam commented 1 month ago

I assume this has been fixed today. I run: sudo apt --fix-broken install to fix the issue.