在 Debian 11 上安装 Proxmox 时出现依赖错误

在 Debian 11 上安装 Proxmox 时出现依赖错误

我尝试在 Debian 11 上安装 Proxmox,但运行apt install proxmox-ve postfix open-iscsi失败:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 criu : Depends: python-future but it is not installable
        Depends: python-ipaddr but it is not installable
        Depends: python-protobuf but it is not installable
 libpve-u2f-server-perl : Depends: perlapi-5.28.1 but it is not installable
 librados2-perl : Depends: perlapi-5.28.1 but it is not installable
 proxmox-ve : Depends: pve-qemu-kvm but it is not installable
 pve-cluster : Depends: corosync (>= 2.3.4-1) but it is not going to be installed
               Depends: libqb0 (>= 0.17.1-1) but it is not installable
               Depends: perlapi-5.28.1 but it is not installable
               Depends: libcmap4 (>= 1.99.9) but it is not going to be installed
               Depends: libcpg4 (>= 2.3.4-1) but it is not going to be installed
               Depends: libquorum5 (>= 2.3.4-1) but it is not going to be installed
 qemu-server : Depends: pve-qemu-kvm (>= 3.0.1-62) but it is not installable
               Depends: libjson-c3 (>= 0.10) but it is not installable
 spiceterm : Depends: pve-qemu-kvm but it is not installable
E: Unable to correct problems, you have held broken packages.

我怎样才能解决这个问题?

答案1

您的设置中引用的存储库似乎不正确。要解决此问题,请重做安装说明中的相关步骤

echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

作为根。您还应该检查文件中/etc/apt/sources.list.d或文件本身中是否没有其他 Proxmox 引用/etc/apt/sources.list

然后,更新为

apt update

(再次以 root 身份)并再次尝试安装。

相关内容