在 Debian 上安装 LLVM-17 的依赖性问题

问题描述 投票:0回答:1

我在 Debian 12 上安装 LLVM 17 时遇到一些依赖性问题。我似乎缺少一些存储库,并且我已按照 here 的说明进行操作,但是使用提供的脚本 (

bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
),我收到一条错误,指出存在未绑定的变量所以我改为添加存储库:

deb http://apt.llvm.org/unstable/ llvm-toolchain-17 main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain-17 main

但是现在当我尝试运行

apt install clang-17 lldb-17 lld-17
时,我遇到以下依赖问题:

The following packages have unmet dependencies:
 clang-17 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
            Depends: libclang-cpp17 (>= 1:17.0.0~++20230911073120+0176e8729ea4) but it is not going to be installed
            Depends: libllvm17 but it is not going to be installed
            Depends: libstdc++6 (>= 11) but 10.2.1-6 is to be installed
            Depends: libstdc++-13-dev but it is not installable
            Depends: libgcc-13-dev but it is not installable
            Depends: libobjc-13-dev but it is not installable
            Depends: libclang-common-17-dev (= 1:17.0.0~++20230911073120+0176e8729ea4-1~exp1~20230911073214.41) but it is not going to be installed
            Depends: llvm-17-linker-tools (= 1:17.0.0~++20230911073120+0176e8729ea4-1~exp1~20230911073214.41) but it is not going to be installed
            Depends: libclang1-17 (= 1:17.0.0~++20230911073120+0176e8729ea4-1~exp1~20230911073214.41) but it is not going to be installed
            Recommends: llvm-17-dev but it is not going to be installed
 lld-17 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
          Depends: libllvm17 (= 1:17.0.0~++20230911073120+0176e8729ea4-1~exp1~20230911073214.41) but it is not going to be installed
          Depends: libstdc++6 (>= 12) but 10.2.1-6 is to be installed
          Depends: libzstd1 (>= 1.5.5) but 1.4.8+dfsg-2.1 is to be installed
 lldb-17 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
           Depends: libclang-cpp17 (>= 1:17.0.0~++20230911073120+0176e8729ea4) but it is not going to be installed
           Depends: liblldb-17 but it is not going to be installed
           Depends: libllvm17 (= 1:17.0.0~++20230911073120+0176e8729ea4-1~exp1~20230911073214.41) but it is not going to be installed
           Depends: libstdc++6 (>= 12) but 10.2.1-6 is to be installed
           Depends: python3-lldb-17 but it is not going to be installed

是否有存储库或我缺少的东西,或者我需要一一修复所有这些依赖项?

编辑: 更新了存储库,因为我在 Debian 12 stable 上使用不稳定的存储库。遗憾的是这并没有解决问题。回购现在是:

deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-17 main
deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-17 main
debian llvm
1个回答
0
投票

我需要将

deb http://ftp.de.debian.org/debian sid main
添加到我的来源列表中。

© www.soinside.com 2019 - 2024. All rights reserved.