You are not logged in.
Hi all,
I have linux, linux-lts and zfs-dkms installed. When I update I'm getting following error for linux-lts:
...
:: Running pre-transaction hooks...
(1/3) etckeeper: pre-transaction commit
(2/3) Remove DKMS modules
==> dkms remove zfs/0.7.9 -k 4.14.41-1-lts
Error! There is no instance of zfs 0.7.9
for kernel 4.14.41-1-lts (x86_64) located in the DKMS tree.
==> dkms remove nvidia/396.24 -k 4.14.41-1-lts
==> dkms remove vboxhost/5.2.12_OSE -k 4.14.41-1-lts
==> dkms remove nvidia/396.24 -k 4.16.11-1-ARCH
==> dkms remove vboxhost/5.2.12_OSE -k 4.16.11-1-ARCH
==> dkms remove spl/0.7.9 -k 4.14.41-1-lts
==> dkms remove spl/0.7.9 -k 4.16.11-1-ARCH
==> dkms remove zfs/0.7.9 -k 4.16.11-1-ARCH
...
:: Running post-transaction hooks...
( 1/16) Updating linux-lts module dependencies...
( 2/16) Updating linux module dependencies...
( 3/16) Install DKMS modules
==> dkms install zfs/0.7.9 -k 4.14.44-1-lts
configure: error:
*** Please make sure the kmod spl devel <kernel> package for your
*** distribution is installed then try again. If that fails you
*** can specify the location of the spl objects with the
*** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
*** any of the following:
/usr/src/spl-0.7.9/4.14.44-1-lts
/usr/src/spl-0.7.9
Error! Bad return status for module build on kernel: 4.14.44-1-lts (x86_64)
Consult /var/lib/dkms/zfs/0.7.9/build/make.log for more information.
==> dkms install nvidia/396.24 -k 4.16.12-1-ARCH
==> dkms install spl/0.7.9 -k 4.14.44-1-lts
==> dkms install vboxhost/5.2.12_OSE -k 4.16.12-1-ARCH
==> dkms install spl/0.7.9 -k 4.16.12-1-ARCH
==> dkms install nvidia/396.24 -k 4.14.44-1-lts
==> dkms install vboxhost/5.2.12_OSE -k 4.14.44-1-lts
==> dkms install zfs/0.7.9 -k 4.16.12-1-ARCH
There are similar posts here:
https://bbs.archlinux.org/viewtopic.php?id=226806
https://bbs.archlinux.org/viewtopic.php?id=220790
In the first one is suggested to install zfs-dkms-rc which I don't want to do because of the low value in Votes and Popularity and in the second one I don't understand what is the solution. If the error appears because zfs gets installed before spl why I'm not getting an error for lts?
Offline
See the big fat note on https://wiki.archlinux.org/index.php/ZFS#DKMS
The dkms hook builds in random order, so you're not guaranteed that spl will be built before zfs. But you're not guaranteed it won't either. That's the definition of random.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
See the big fat note on https://wiki.archlinux.org/index.php/ZFS#DKMS
The dkms hook builds in random order, so you're not guaranteed that spl will be built before zfs. But you're not guaranteed it won't either. That's the definition of random.
OK and what can I do for it? If I replace dkms with dkms-sorted will the errors disappear?
[UPDATE]
I have replaced dkms with dkms-sorted and today there was an update for linux-lts.
spl was installed before zfs and there are no errors during building. I hope this is not because of a random order.
This is the output:
:: Synchronizing package databases...
core 129.7 KiB 18.1M/s 00:00 [####################################################################] 100%
extra 1620.2 KiB 65.9M/s 00:00 [####################################################################] 100%
community 4.4 MiB 78.8M/s 00:00 [####################################################################] 100%
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (3) ilmbase-2.2.1-3 linux-lts-4.14.47-1 linux-lts-headers-4.14.47-1
Total Download Size: 68.76 MiB
Total Installed Size: 143.90 MiB
Net Upgrade Size: 0.01 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-lts-4.14.47-1-x86_64 60.7 MiB 77.9M/s 00:01 [####################################################################] 100%
linux-lts-headers-4.14.47-1-x86_64 7.9 MiB 81.3M/s 00:00 [####################################################################] 100%
ilmbase-2.2.1-3-x86_64 136.8 KiB 0.00B/s 00:00 [####################################################################] 100%
(3/3) checking keys in keyring [####################################################################] 100%
(3/3) checking package integrity [####################################################################] 100%
(3/3) loading package files [####################################################################] 100%
(3/3) checking for file conflicts [####################################################################] 100%
(3/3) checking available disk space [####################################################################] 100%
:: Running pre-transaction hooks...
(1/2) etckeeper: pre-transaction commit
[master f1bfd13] saving uncommitted changes in /etc prior to pacman run
1 file changed, 1 insertion(+), 1 deletion(-)
(2/2) Remove DKMS modules
==> dkms remove zfs/0.7.9 -k 4.14.44-1-lts
Error! There is no instance of zfs 0.7.9
for kernel 4.14.44-1-lts (x86_64) located in the DKMS tree.
==> dkms remove spl/0.7.9 -k 4.14.44-1-lts
==> dkms remove nvidia/396.24 -k 4.14.44-1-lts
==> dkms remove vboxhost/5.2.12_OSE -k 4.14.44-1-lts
:: Processing package changes...
(1/3) upgrading ilmbase [####################################################################] 100%
(2/3) upgrading linux-lts [####################################################################] 100%
(3/3) upgrading linux-lts-headers [####################################################################] 100%
:: Running post-transaction hooks...
(1/5) Updating linux-lts module dependencies...
(2/5) Install DKMS modules
==> dkms install spl/0.7.9 -k 4.14.47-1-lts
==> dkms install vboxhost/5.2.12_OSE -k 4.14.47-1-lts
==> dkms install nvidia/396.24 -k 4.14.47-1-lts
==> dkms install zfs/0.7.9 -k 4.14.47-1-lts
(3/5) Updating linux-lts initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.14.47-1-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [keyboard]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [resume]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.14.47-1-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [keyboard]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [resume]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
(4/5) Arming ConditionNeedsUpdate...
(5/5) etckeeper: post-transaction commit
Last edited by karcher (2018-06-01 09:52:18)
Offline