HI everybody! I have a problem with zfs modul.

apt upgrade

apt upgrade is unsafe on rolling release distributions.

using apt full-upgrade instead

use apt upgrade --force to override

Сущ:1 http://dl.google.com/linux/chrome/deb stable InRelease
Сущ:2 http://deb.debian.org/debian buster InRelease
Сущ:3 http://deb.playonlinux.com squeeze InRelease
Сущ:4 https://repo.skype.com/deb stable InRelease
Сущ:5 https://dl.winehq.org/wine-builds/debian buster InRelease
Сущ:8 http://repo.zabbix.com/zabbix/4.0/debian stretch InRelease
Сущ:6 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Игн:7 http://mirrors.edge.kernel.org/debian stretch InRelease
Сущ:9 https://ftp.halifax.rwth-aachen.de/parrotsec rolling InRelease
Сущ:10 http://mirrors.edge.kernel.org/debian stretch Release
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Все пакеты имеют последние версии.
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Расчёт обновлений… Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
libclang1-9 libisl22 libllvm9 libperl5.30 libperl5.30:i386 libpython3.8 libpython3.8-minimal libpython3.8-stdlib libre2-8
libxcb-util0 libxenmisc4.11 perl-modules-5.30 python3.8 python3.8-minimal
Для их удаления используйте «sudo apt autoremove».
Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Установлено или удалено не до конца 5 пакетов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
Хотите продолжить? [Д/н] y
Настраивается пакет initramfs-tools (0.139) …
update-initramfs: deferring update (trigger activated)
Настраивается пакет linux-image-5.7.0-2parrot2-amd64 (5.7.10-1parrot2) …
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.7.0-2parrot2-amd64:Error! echo
Your kernel headers for kernel 5.7.0-2parrot2-amd64 cannot be found at
/lib/modules/5.7.0-2parrot2-amd64/build or /lib/modules/5.7.0-2parrot2-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
Error! echo
Your kernel headers for kernel 5.7.0-2parrot2-amd64 cannot be found at
/lib/modules/5.7.0-2parrot2-amd64/build or /lib/modules/5.7.0-2parrot2-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
Error! echo
Your kernel headers for kernel 5.7.0-2parrot2-amd64 cannot be found at
/lib/modules/5.7.0-2parrot2-amd64/build or /lib/modules/5.7.0-2parrot2-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
Error! echo
Your kernel headers for kernel 5.7.0-2parrot2-amd64 cannot be found at
/lib/modules/5.7.0-2parrot2-amd64/build or /lib/modules/5.7.0-2parrot2-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
Error! echo
Your kernel headers for kernel 5.7.0-2parrot2-amd64 cannot be found at
/lib/modules/5.7.0-2parrot2-amd64/build or /lib/modules/5.7.0-2parrot2-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.7.0-2parrot2-amd64
cp: не удалось выполнить stat для ‘/var/lib/acpi-override/*’: Нет такого файла или каталога
E: /usr/share/initramfs-tools/hooks/acpi-override failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.7.0-2parrot2-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: ошибка при обработке пакета linux-image-5.7.0-2parrot2-amd64 (–configure):
installed linux-image-5.7.0-2parrot2-amd64 package post-installation script subprocess returned error exit status 1
Настраивается пакет zfs-dkms (0.8.5-2) …
Removing old zfs-0.8.5 DKMS files…


Deleting module version: 0.8.5
completely from the DKMS tree.

Done.
Loading new zfs-0.8.5 DKMS files…
Building for 5.9.0-2parrot1-amd64
Building initial module for 5.9.0-2parrot1-amd64
grep: /lib/modules/5.9.0-2parrot1-amd64/build/include/linux/miscdevice.h: No such file or directory
configure: error:
*** None of the expected “global page state” interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-0.8.5-2
*** Compatible Kernels: 2.6.32 - 5.8

Error! Bad return status for module build on kernel: 5.9.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.8.5/build/make.log for more information.
dpkg: ошибка при обработке пакета zfs-dkms (–configure):
installed zfs-dkms package post-installation script subprocess returned error exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет zfs-initramfs:
zfs-initramfs зависит от zfs-modules | zfs-dkms, однако:
Пакет zfs-modules не установлен.
Пакет zfs-dkms, предоставляющий zfs-modules, пока не настроен.
Пакет zfs-dkms пока не настроен.

dpkg: ошибка при обработке пакета zfs-initramfs (–configure):
проблемы зависимостей — оставляем не настроенным
dpkg: зависимости пакетов не позволяют настроить пакет zfs-zed:
zfs-zed зависит от zfs-modules | zfs-dkms, однако:
Пакет zfs-modules не установлен.
Пакет zfs-dkms, предоставляющий zfs-modules, пока не настроен.
Пакет zfs-dkms пока не настроен.

dpkg: ошибка при обработке пакета zfs-zed (–configure):
проблемы зависимостей — оставляем не настроенным
Обрабатываются триггеры для initramfs-tools (0.139) …
update-initramfs: Generating /boot/initrd.img-5.9.0-2parrot1-amd64
cp: не удалось выполнить stat для ‘/var/lib/acpi-override/*’: Нет такого файла или каталога
E: /usr/share/initramfs-tools/hooks/acpi-override failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.9.0-2parrot1-amd64 with 1.
dpkg: ошибка при обработке пакета initramfs-tools (–configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
При обработке следующих пакетов произошли ошибки:
linux-image-5.7.0-2parrot2-amd64
zfs-dkms
zfs-initramfs
zfs-zed
initramfs-tools
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

Linux parrot 5.9.0-2parrot1-amd64 #1 SMP Debian 5.9.6-2parrot1 (2020-11-17) x86_64 GNU/Linux

Hello

Same error with my Parrot

I read this
=> https://github.com/openzfs/zfs/issues/9935

just compare :
/lib/modules/5.9.0-2parrot1-amd64/build/include/
and
/lib/modules/5.9.0-2parrot1-comon/build/include/

:wink:
Do a Rsync to solve this
Ex:
" ```
sudo rsync -a /usr/src/linux-headers-5.6.0-1-common/ /usr/src/linux-headers-5.6.0-1-amd64/

Common issue when compiling the zfs module.

Your system stores the linux folder under /usr/src, eg:
/usr/src/linux-headers-5.9.0-2parrot1-common/include/linux/miscdevice.h

You need to link it to the /lib/modules structure, e.g:
sudo ln -s /usr/src/linux-headers-5.9.0-2parrot1-common/include/linux /lib/modules/5.9.0-2parrot1-amd64/build/include/linux

Note that you need to do this each time a new kernel gets available,
to avoid searching for the right folder name run:
sudo updatedb; locate miscdevice.h

This lists all installed versions of miscdevice + path, one per currently installed kernel.

Also note that those links will remain after kernel removal, leaving otherwise empty folder structures.
They wont pose any trouble, but you might wish to remove them by hand.

find / -name miscdevice.h 2>/dev/null

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.