Hi Eric, I applied these patches, built them in a ppa and then did a clean install of zfsutils-linux from -proposed and then upgraded to the packages in the ppa. However, your patches break the upgrade: king@ubuntu:~$ dpkg -l | grep zfsutils-linux ii zfsutils-linux 0.6.5.6-0ubuntu11 amd64 Native OpenZFS management utilities for Linux king@ubuntu:~$ sudo add-apt-repository ppa:colin-king/zfs-0.6.5.7-lp1574342 [sudo] password for king: More info: https://launchpad.net/~colin-king/+archive/ubuntu/zfs-0.6.5.7-lp1574342 Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmp3bjyv0sl/secring.gpg' created gpg: keyring `/tmp/tmp3bjyv0sl/pubring.gpg' created gpg: requesting key B0F01786 from hkp server keyserver.ubuntu.com gpg: /tmp/tmp3bjyv0sl/trustdb.gpg: trustdb created gpg: key XXXXXXXXX: public key "Launchpad PPA for Colin King" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK king@ubuntu:~$ sudo apt-get update Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://gb.archive.ubuntu.com/ubuntu xenial InRelease Get:3 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial InRelease [17.6 kB] Hit:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:5 http://gb.archive.ubuntu.com/ubuntu xenial-proposed InRelease Hit:6 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease Get:7 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 Packages [3,024 B] Get:8 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main i386 Packages [3,032 B] Get:9 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main Translation-en [1,584 B] Fetched 25.2 kB in 1s (21.5 kB/s) Reading package lists... Done king@ubuntu:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: linux-image-extra-4.3.0-7-generic Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed libpython-stdlib python python-minimal python2.7 python2.7-minimal The following packages will be upgraded: libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed zfsutils-linux 7 to upgrade, 5 to newly install, 0 to remove and 0 not to upgrade. Need to get 2,610 kB of archives. After this operation, 4,986 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1~16.04 [1,294 kB] Get:2 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 libuutil1linux amd64 0.6.5.6-0ubuntu12 [27.5 kB] Get:3 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 libzpool2linux amd64 0.6.5.6-0ubuntu12 [384 kB] Get:4 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 libzfs2linux amd64 0.6.5.6-0ubuntu12 [106 kB] Get:5 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 zfs-zed amd64 0.6.5.6-0ubuntu12 [29.8 kB] Get:6 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 zfsutils-linux amd64 0.6.5.6-0ubuntu12 [290 kB] Get:7 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 libnvpair1linux amd64 0.6.5.6-0ubuntu12 [23.4 kB] Get:8 http://ppa.launchpad.net/colin-king/zfs-0.6.5.7-lp1574342/ubuntu xenial/main amd64 zfs-doc all 0.6.5.6-0ubuntu12 [58.2 kB] Get:9 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-minimal amd64 2.7.11-1 [28.2 kB] Get:10 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1~16.04 [224 kB] Get:11 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libpython-stdlib amd64 2.7.11-1 [7,656 B] Get:12 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python amd64 2.7.11-1 [137 kB] Fetched 2,610 kB in 1s (2,399 kB/s) Selecting previously unselected package python2.7-minimal. (Reading database ... 128781 files and directories currently installed.) Preparing to unpack .../python2.7-minimal_2.7.12-1~16.04_amd64.deb ... Unpacking python2.7-minimal (2.7.12-1~16.04) ... Selecting previously unselected package python-minimal. Preparing to unpack .../python-minimal_2.7.11-1_amd64.deb ... Unpacking python-minimal (2.7.11-1) ... Selecting previously unselected package python2.7. Preparing to unpack .../python2.7_2.7.12-1~16.04_amd64.deb ... Unpacking python2.7 (2.7.12-1~16.04) ... Selecting previously unselected package libpython-stdlib:amd64. Preparing to unpack .../libpython-stdlib_2.7.11-1_amd64.deb ... Unpacking libpython-stdlib:amd64 (2.7.11-1) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for mime-support (3.59ubuntu1) ... Setting up python2.7-minimal (2.7.12-1~16.04) ... Linking and byte-compiling packages for runtime python2.7... Setting up python-minimal (2.7.11-1) ... Selecting previously unselected package python. (Reading database ... 128837 files and directories currently installed.) Preparing to unpack .../python_2.7.11-1_amd64.deb ... Unpacking python (2.7.11-1) ... Preparing to unpack .../libuutil1linux_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking libuutil1linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Preparing to unpack .../libzpool2linux_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking libzpool2linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Preparing to unpack .../libzfs2linux_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking libzfs2linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Preparing to unpack .../zfs-zed_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking zfs-zed (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Preparing to unpack .../zfsutils-linux_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking zfsutils-linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... dpkg: error processing archive /var/cache/apt/archives/zfsutils-linux_0.6.5.6-0ubuntu12_amd64.deb (--unpack): trying to overwrite '/usr/sbin/zed', which is also in package zfs-zed 0.6.5.6-0ubuntu12 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) zfs-import-cache.service is a disabled or a static unit, not starting it. zfs-import-scan.service is a disabled or a static unit, not starting it. zfs-mount.service is a disabled or a static unit, not starting it. Preparing to unpack .../libnvpair1linux_0.6.5.6-0ubuntu12_amd64.deb ... Unpacking libnvpair1linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Preparing to unpack .../zfs-doc_0.6.5.6-0ubuntu12_all.deb ... Unpacking zfs-doc (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for initramfs-tools (0.122ubuntu8.1) ... update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic Processing triggers for systemd (229-4ubuntu7) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/zfsutils-linux_0.6.5.6-0ubuntu12_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) king@ubuntu:~$ I think the problem is the change to the path: override_dh_auto_configure: @# Build the userland, but don't build the kernel modules. dh_auto_configure -- \ - --bindir=/bin \ + --bindir=/usr/sbin \ --sbindir=/sbin \ --libdir=/lib \ ..which is causing the zed issues. It's heading to 9pm UK time, so I'm running out of time to rebuild and test this hypothesis.