我在升级到 debian bullseye 的 64 位 Pi OS 上安装 zfsutils 时遇到错误。
sudo apt install zfsutils-linux
The following packages have unmet dependencies: zfsutils-linux : Depends: libnvpair3linux (= 2.0.3-9~bpo10+1) but 2.0.3-9 is to be installed
Depends: libuutil3linux (= 2.0.3-9~bpo10+1) but 2.0.3-9 is to be installed
Depends: libzfs4linux (= 2.0.3-9~bpo10+1) but 2.0.3-9 is to be installed
Depends: libzpool4linux (= 2.0.3-9~bpo10+1) but 2.0.3-9 is to be installed
Recommends: zfs-zed but it is not going to be installed E: Unable to correct problems, you have held broken packages.
apt policy zfsutils-linux
zfsutils-linux:
Installed: (none)
Candidate: 2.0.3-9~bpo10+1
Version table:
2.0.3-9 500
500 http://deb.debian.org/debian bullseye/contrib arm64 Packages
2.0.3-9~bpo10+1 990
100 http://deb.debian.org/debian buster-backports/contrib arm64 Packages
2.0.2-1~bpo10+1 500
500 http://archive.raspberrypi.org/debian buster/main arm64 Packages
0.7.12-2+deb10u2 500
500 http://deb.debian.org/debian buster/contrib arm64 Packages
有任何想法吗?
答案1
需要从 apt 源中删除 buster-backports 并进行更新。之后 zfsutils 2.0.3-9 安装正常。
答案2
在升级的 Raspberry Pi 操作系统上,从 buster 到 bullseye,或者在使用内核 5.15 全新安装 Raspberry Pi 操作系统到 bullseye 时,我的机器上没有 apt buster 向后移植。并且 dkms-zfs 和 zfsutils-linux 已损坏。因此,自 2022 年 11 月 10 日起,ZFS 不会安装在 Raspberry Pi 操作系统上。