Recently, the CI hits the following error: The following packages have unmet dependencies: python3-lldb-14 : Conflicts: python3-lldb-x.y python3-lldb-17 : Conflicts: python3-lldb-x.y E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Fix this by removing preinstalled llvm 14 before installing llvm 17. Link: https://github.com/llvm/llvm-project/issues/64182#issuecomment-1658085767 Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx> --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8dd22dfd125692de..895599f160e80304 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,6 +106,7 @@ jobs: run: | if [[ "${{matrix.cc_pkg}}" == "clang" ]]; then \ wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh; \ + sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14 -y; \ sudo bash /tmp/llvm.sh 17; \ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 400; \ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 400; \ base-commit: 12e697608d841dc33c360beb4753c5509187ef6f -- Ammar Faizi