Hello, i was just found error when i try to install ZFS, i already tried ZFS before, but after i reboot it shows error like this
root@projecthome:~# uname -r
6.8.12-6-pve
root@projecthome:~# modprobe zfs
modprobe: ERROR: could not insert 'zfs': Invalid argument
root@projecthome:~# zfs version
zpool version
Failed to initialize the libzfs library.
Failed to initialize the libzfs library.
root@projecthome:~# sudo apt install alien autoconf automake build-essential debhelper-compat dh-autoreconf dh-dkms dh-python dkms fakeroot gawk git libaio-dev libattr1-dev libblkid-dev libcurl4-openssl-dev libelf-dev libffi-dev libpam0g-dev libssl-dev libtirpc-dev libtool libudev-dev linux-headers-generic parallel po-debconf python3 python3-all-dev python3-cffi python3-dev python3-packaging python3-setuptools python3-sphinx uuid-dev zlib1g-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'debhelper' instead of 'debhelper-compat'
Package linux-headers-generic is a virtual package provided by:
pve-headers-6.1 7.3-4
proxmox-headers-6.8 6.8.12-6
proxmox-headers-6.5 6.5.13-6
proxmox-headers-6.2 6.2.16-20
proxmox-headers-6.11 6.11.0-2
linux-headers-amd64 6.1.124-1
You should explicitly select one to install.
E: Package 'linux-headers-generic' has no installation candidate
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 48s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)
Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 56s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)
Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)
root@projecthome:~# uname -r
6.8.12-6-pve
root@projecthome:~# modprobe zfs
modprobe: ERROR: could not insert 'zfs': Invalid argument
root@projecthome:~# zfs version
zpool version
Failed to initialize the libzfs library.
Failed to initialize the libzfs library.
root@projecthome:~# sudo apt install alien autoconf automake build-essential debhelper-compat dh-autoreconf dh-dkms dh-python dkms fakeroot gawk git libaio-dev libattr1-dev libblkid-dev libcurl4-openssl-dev libelf-dev libffi-dev libpam0g-dev libssl-dev libtirpc-dev libtool libudev-dev linux-headers-generic parallel po-debconf python3 python3-all-dev python3-cffi python3-dev python3-packaging python3-setuptools python3-sphinx uuid-dev zlib1g-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'debhelper' instead of 'debhelper-compat'
Package linux-headers-generic is a virtual package provided by:
pve-headers-6.1 7.3-4
proxmox-headers-6.8 6.8.12-6
proxmox-headers-6.5 6.5.13-6
proxmox-headers-6.2 6.2.16-20
proxmox-headers-6.11 6.11.0-2
linux-headers-amd64 6.1.124-1
You should explicitly select one to install.
E: Package 'linux-headers-generic' has no installation candidate
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 48s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)
Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 56s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)
Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)