Debian

在 Debian 11 上安裝 Proxmox 時出現依賴錯誤

  • January 28, 2022

我正在嘗試在 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.

我怎樣才能解決這個問題?

您的設置中引用的儲存庫似乎不正確。要解決此問題,請重做安裝說明中的相關步驟

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 身份)並再次嘗試安裝。

引用自:https://unix.stackexchange.com/questions/687720