开始

apt install zfsutils-linux

如果提示 Package zfsutils-linux is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

codename=$(lsb_release -cs);echo "deb http://deb.debian.org/debian $codename-backports main contrib non-free"|sudo tee -a /etc/apt/sources.list && sudo apt update

接着再运行 apt install zfsutils-linux 会自动安装需要的依赖

安装完成后重启

可能需要用到的依赖

apt install dpkg-dev linux-headers-$(uname -r) linux-image-$(uname -r) zfs-dkms

检查是否启动zfs

modprobe zfs
modinfo zfs
lsmod | grep zfs

参考