ZFS Module Errors on Ubuntu Server Upgrade


If you are using ppa:zfs-native/stable while upgrading from Ubuntu Server 13.10 to 14.04, you may encounter the following error:

run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
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.
Error! Bad return status for module build on kernel: 3.13.0-24-generic (x86_64)
Consult /var/lib/dkms/zfs/0.6.2/build/make.log for more information.


Remove the ZFS packages, install spl, kmod, and linux-headers, switch to the daily repository to get support for the 3.13 kernel, then reinstall ubuntu-zfs

sudo apt-get remove --purge ubuntu-zfs zfs-dkms zfsutils spl spl-dkms libzfs1 dkms
sudo apt-get install kmod spl linux-headers-`uname -r`
sudo apt-add-repository --remove ppa:zfs-native/stable
sudo apt-add-repository ppa:zfs-native/daily
sudo apt-get install ubuntu-zfs