ZFS packages broken on 16.04 install

Asked by Luke Mackenzie

I'm getting the following when trying to install zfs on Ubuntu 16.04. an anyone advise?
```

sudo apt install zfs-zed
Reading package lists... Done
Building dependency tree
Reading state information... Done
zfs-zed is already the newest version (0.6.5.6-0ubuntu16).
zfs-zed set to manually installed.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zfsutils-linux (0.6.5.6-0ubuntu16) ...
Job for zfs-mount.service failed because the control process exited with error code. See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-05-28 17:44:58 BST; 6ms ago
  Process: 27181 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
 Main PID: 27181 (code=exited, status=1/FAILURE)

May 28 17:44:58 codecowboy-P5E3-Premium systemd[1]: Starting Mount ZFS filesystems...
May 28 17:44:58 codecowboy-P5E3-Premium zfs[27181]: The ZFS modules are not loaded.
May 28 17:44:58 codecowboy-P5E3-Premium zfs[27181]: Try running '/sbin/modprobe zfs' as root to load them.
May 28 17:44:58 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
May 28 17:44:58 codecowboy-P5E3-Premium systemd[1]: Failed to start Mount ZFS filesystems.
May 28 17:44:58 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Unit entered failed state.
May 28 17:44:58 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
dpkg: error processing package zfsutils-linux (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of zfs-zed:
 zfs-zed depends on zfsutils-linux; however:
  Package zfsutils-linux is not configured yet.

dpkg: error processing package zfs-zed (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            update-initramfs: Generating /boot/initrd.img-4.4.0-78-generic
Errors were encountered while processing:
 zfsutils-linux
 zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)
codecowboy@codecowboy-P5E3-Premium:~$ zfs-zeddkms staatus
zfs-zeddkms: command not found
codecowboy@codecowboy-P5E3-Premium:~$ dkms status
bbswitch, 0.8, 4.4.0-78-generic, x86_64: installed
nvidia-375, 375.66, 4.4.0-78-generic, x86_64: installed
spl, 0.6.5.9, 3.13.0-119-generic, x86_64: installed
spl, 0.6.5.9, 4.4.0-78-generic, x86_64: installed

```

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu zfs-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Luke Mackenzie
Solved:
Last query:
Last reply:
Revision history for this message
Luke Mackenzie (luke-lukem) said :
#1

I've run `journalctl` and have included the output here. If you can shed any light that would be much appreciated. Otherwise, I think I have reached the 'fresh install' point.

```
journalctl |grep -i zfs
May 29 05:28:27 codecowboy-P5E3-Premium ureadahead[232]: ureadahead:/etc/init.d/zfs-share: No such file or directory
May 29 05:28:27 codecowboy-P5E3-Premium ureadahead[232]: ureadahead:/etc/default/zfs: No such file or directory
May 29 05:28:27 codecowboy-P5E3-Premium ureadahead[232]: ureadahead:/etc/cron.d/zfsutils-linux: No such file or directory
May 29 05:28:34 codecowboy-P5E3-Premium ureadahead[232]: ureadahead:/sbin/zfs: No such file or directory
May 29 05:29:40 codecowboy-P5E3-Premium sudo[2578]: codecowboy : TTY=pts/6 ; PWD=/home/codecowboy ; USER=root ; COMMAND=/usr/bin/apt install zfsutils-linux
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: Starting Import ZFS pools by cache file...
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_init
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_init (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_close
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_close (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol cv_timedwait_hires
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol cv_timedwait_hires (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_seek
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_seek (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_destroy
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_destroy (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_timedwait_sig
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_timedwait_sig (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol rootdir
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol rootdir (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_close_file
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_close_file (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_read_file
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_read_file (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_delete
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_delete (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_open
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_open (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_open_file
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_open_file (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_getf
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_getf (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_get_filesize
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_get_filesize (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_fsync
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_fsync (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_getattr
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_getattr (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait_sig
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait_sig (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_install
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_install (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_signal
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_signal (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_rdwr
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_rdwr (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait_io
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait_io (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_create
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_create (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_broadcast
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_broadcast (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_openat
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_openat (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_set_raw_ops
May 29 05:30:40 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_set_raw_ops (err -22)
May 29 05:30:40 codecowboy-P5E3-Premium modprobe[9280]: modprobe: ERROR: could not insert 'zfs': Invalid argument
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-import-cache.service: Control process exited, code=exited status=1
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: Failed to start Import ZFS pools by cache file.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-import-cache.service: Unit entered failed state.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-import-cache.service: Failed with result 'exit-code'.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: Starting Mount ZFS filesystems...
May 29 05:30:40 codecowboy-P5E3-Premium zfs[9356]: The ZFS modules are not loaded.
May 29 05:30:40 codecowboy-P5E3-Premium zfs[9356]: Try running '/sbin/modprobe zfs' as root to load them.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: Failed to start Mount ZFS filesystems.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Unit entered failed state.
May 29 05:30:40 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
```

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Are there any bugs reported?

Revision history for this message
Luke Mackenzie (luke-lukem) said :
#3

Hi,

I gave up on this. I suspect it was caused by conflicts with a legacy ZFS install before the ZFS modules got put into the kernel. In the end, I cut my losses and reinstalled 16.04. That resolved the problem.