Can't Upgrade due to openmediavault-zfs dependency

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Can't Upgrade due to openmediavault-zfs dependency

      I'm on OMV 3.0.88
      I wasn't able to update because of errors with the openmediavault-zfs package. So I removed it and did the upgrade. Now I cannot re-install the plugin because of mismatched dependencies


      Source Code

      1. apt install openmediavault-zfs
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. openmediavault-zfs is already the newest version.
      6. You might want to run 'apt-get -f install' to correct these:
      7. The following packages have unmet dependencies:
      8. openmediavault-zfs : Depends: zfs-zed but it is not going to be installed
      9. E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



      so then I try apt-get -f install as suggested

      Source Code

      1. apt-get -f install
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. Correcting dependencies... Done
      6. The following extra packages will be installed:
      7. libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
      8. Suggested packages:
      9. zfs-initramfs zfs-dracut
      10. The following NEW packages will be installed:
      11. libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
      12. 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
      13. 1 not fully installed or removed.
      14. Need to get 0 B/1,008 kB of archives.
      15. After this operation, 5,270 kB of additional disk space will be used.
      16. Do you want to continue? [Y/n]
      17. (Reading database ... 82395 files and directories currently installed.)
      18. Preparing to unpack .../libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
      19. Unpacking libuutil1linux (0.6.5.9-2~bpo8+1) ...
      20. dpkg: error processing archive /var/cache/apt/archives/libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      21. trying to overwrite '/lib/libuutil.so.1.0.1', which is also in package libuutil1 0.6.5.7-8-jessie
      22. Preparing to unpack .../libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
      23. Unpacking libnvpair1linux (0.6.5.9-2~bpo8+1) ...
      24. dpkg: error processing archive /var/cache/apt/archives/libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      25. trying to overwrite '/lib/libnvpair.so.1.0.1', which is also in package libnvpair1 0.6.5.7-8-jessie
      26. Preparing to unpack .../libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
      27. Unpacking libzpool2linux (0.6.5.9-2~bpo8+1) ...
      28. dpkg: error processing archive /var/cache/apt/archives/libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      29. trying to overwrite '/lib/libzpool.so.2.0.0', which is also in package libzpool2 0.6.5.7-8-jessie
      30. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
      31. Preparing to unpack .../libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
      32. Unpacking libzfs2linux (0.6.5.9-2~bpo8+1) ...
      33. dpkg: error processing archive /var/cache/apt/archives/libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      34. trying to overwrite '/lib/libzfs.so.2.0.0', which is also in package libzfs2 0.6.5.7-8-jessie
      35. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
      36. Preparing to unpack .../zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb ...
      37. Unpacking zfsutils-linux (0.6.5.9-2~bpo8+1) ...
      38. dpkg: error processing archive /var/cache/apt/archives/zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      39. trying to overwrite '/sbin/mount.zfs', which is also in package zfsutils 0.6.5.7-8-jessie
      40. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
      41. Preparing to unpack .../zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb ...
      42. Unpacking zfs-zed (0.6.5.9-2~bpo8+1) ...
      43. dpkg: error processing archive /var/cache/apt/archives/zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
      44. trying to overwrite '/lib/systemd/system/zfs-zed.service', which is also in package zfsutils 0.6.5.7-8-jessie
      45. Errors were encountered while processing:
      46. /var/cache/apt/archives/libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb
      47. /var/cache/apt/archives/libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb
      48. /var/cache/apt/archives/libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb
      49. /var/cache/apt/archives/libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb
      50. /var/cache/apt/archives/zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb
      51. /var/cache/apt/archives/zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb
      52. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
      Now I'm desperate and think to myself, just an update. Remove old packages and let apt install new dependency packages


      Source Code

      1. apt remove libzpool2 libzfs2 zfsutils
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. You might want to run 'apt-get -f install' to correct these:
      6. The following packages have unmet dependencies:
      7. debian-zfs : Depends: zfsutils
      8. grub-common : Depends: libzfs2 but it is not going to be installed
      9. grub-pc-bin : Depends: libzfs2 but it is not going to be installed
      10. grub2-common : Depends: libzfs2 but it is not going to be installed
      11. openmediavault-zfs : Depends: zfsutils-linux but it is not going to be installed or
      12. zfsutils
      13. Depends: zfs-zed but it is not going to be installed
      14. E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
      Display All

      I don't feel confident in removing grub to install openmediavault-zfs.

      Now I don't have zfs in my web-admin view of my OMV server and I don't feel confident enough to reboot to find out if my zfs pool is there anymore :-/
    • Uh, the zfs plugin hasn't been ported to 4.x. Nothing you can do to fix that until it is ported. I planned on looking at it this weekend but I can't promise anything.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • When I read your first few sentences, I thought you were trying to update to OMV 4.x. What is the output of: dpkg -l | grep -E "zfs|openm"
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Source Code

      1. dpkg -l | grep -E "zfs|openm"
      2. ii debian-zfs 7~jessie amd64 Native ZFS filesystem metapackage for Debian.
      3. ii libzfs2 0.6.5.7-8-jessie amd64 Native ZFS filesystem library for Linux
      4. ii openmediavault 3.0.88 all Open network attached storage solution
      5. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      6. ii openmediavault-omvextrasorg 3.4.28 all OMV-Extras.org Package Repositories for OpenMediaVault
      7. ii openmediavault-syncthing 3.10 all Syncthing plugin for OpenMediaVault.
      8. ii openmediavault-transmissionbt 3.0.9 all OpenMediaVault Transmission (BitTorrent client) plugin.
      9. rc openmediavault-zfs 3.0.18 amd64 OpenMediaVault plugin for ZFS
      10. ii zfs-dkms 0.6.5.9-2~bpo8+1 all OpenZFS filesystem kernel modules for Linux
      11. ii zfsutils 0.6.5.7-8-jessie amd64 command-line tools to manage ZFS filesystems
      Display All





      no upgrade to OMV4, just problems with regular OMV3 updates. Specifically with the openmediavault-zfs plugin. This could be because I started with OMV3+ZFS when it was still required to use the OMV-ZFS testing repositories

      maybe my sources.list files can help solve this problem

      Source Code

      1. cat /etc/apt/sources.list
      2. #
      3. # deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160919-19:37]/ jessie contrib main non-free
      4. #deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160919-19:37]/ jessie contrib main non-free
      5. deb http://ftp.at.debian.org/debian/ jessie main non-free contrib
      6. deb-src http://ftp.at.debian.org/debian/ jessie main non-free contrib
      7. deb http://security.debian.org/ jessie/updates main contrib non-free
      8. deb-src http://security.debian.org/ jessie/updates main contrib non-free
      9. # jessie-updates, previously known as 'volatile'
      10. deb http://ftp.at.debian.org/debian/ jessie-updates main contrib non-free
      11. deb-src http://ftp.at.debian.org/debian/ jessie-updates main contrib non-free
      Display All

      Source Code

      1. cat /etc/apt/sources.list.d/omv-extras-org.list
      2. # This is file is generated.
      3. # OMV-Extras repos
      4. #
      5. # OMV-Extras.org
      6. deb https://dl.bintray.com/openmediavault-plugin-developers/erasmus jessie main
      7. # Sync
      8. deb https://dl.bintray.com/openmediavault-plugin-developers/erasmus-sync jessie main
      9. deb http://apt.syncthing.net/ syncthing release

      Source Code

      1. cat /etc/apt/sources.list.d/openmediavault-kernel-backports.list
      2. deb http://httpredir.debian.org/debian jessie-backports main contrib non-free

      Source Code

      1. cat /etc/apt/sources.list.d/openmediavault.list
      2. deb http://packages.openmediavault.org/public/ erasmus main
      3. deb https://openmediavault.github.io/packages/ erasmus main
      4. # deb http://downloads.sourceforge.net/project/openmediavault/packages/ erasmus main

      Source Code

      1. cat /etc/apt/sources.list.d/openmediavault-local.list
      2. deb file:/var/cache/openmediavault/archives /
    • Nothing wrong with your repos but you have a mix of zfs packages from two repos. I would run omv-aptclean and then post the output of: apt-cache policy linux-headers-amd64 zfs-dkms zfsutils-linux zfs-zed
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Cleared without errors and here the apt-cache output

      Source Code

      1. apt-cache policy linux-headers-amd64 zfs-dkms zfsutils-linux zfs-zed
      2. linux-headers-amd64:
      3. Installed: 4.9+80~bpo8+1
      4. Candidate: 4.9+80~bpo8+1
      5. Package pin: 4.9+80~bpo8+1
      6. Version table:
      7. *** 4.9+80~bpo8+1 500
      8. 100 http://httpredir.debian.org/debian/ jessie-backports/main amd64 Packages
      9. 100 /var/lib/dpkg/status
      10. 3.16+63 500
      11. 500 http://ftp.at.debian.org/debian/ jessie/main amd64 Packages
      12. zfs-dkms:
      13. Installed: 0.6.5.9-2~bpo8+1
      14. Candidate: 0.6.5.9-2~bpo8+1
      15. Version table:
      16. *** 0.6.5.9-2~bpo8+1 0
      17. 100 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
      18. 100 /var/lib/dpkg/status
      19. zfsutils-linux:
      20. Installed: (none)
      21. Candidate: 0.6.5.9-2~bpo8+1
      22. Version table:
      23. 0.6.5.9-2~bpo8+1 0
      24. 100 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
      25. zfs-zed:
      26. Installed: (none)
      27. Candidate: 0.6.5.9-2~bpo8+1
      28. Version table:
      29. 0.6.5.9-2~bpo8+1 0
      30. 100 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
      Display All


      Edit: also the info about the misbehaving plugin for zfs

      Source Code

      1. apt-cache policy openmediavault-zfs
      2. openmediavault-zfs:
      3. Installed: (none)
      4. Candidate: 3.0.18
      5. Version table:
      6. 3.0.18 0
      7. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      8. 100 /var/lib/dpkg/status
      9. 3.0.17 0
      10. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      11. 3.0.16 0
      12. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      13. 3.0.15 0
      14. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      15. 3.0.14 0
      16. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      17. 3.0.13 0
      18. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      19. 3.0.12 0
      20. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      21. 3.0.11 0
      22. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      23. 3.0.10 0
      24. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      25. 3.0.9 0
      26. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      27. 3.0.8 0
      28. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      29. 3.0.7 0
      30. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      31. 3.0.6 0
      32. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      33. 3.0.5 0
      34. 500 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main amd64 Packages
      Display All

      Source Code

      1. apt-cache show openmediavault-zfs
      2. Package: openmediavault-zfs
      3. Version: 3.0.18
      4. Architecture: amd64
      5. Maintainer: OpenMediaVault Plugin Developers <plugins@omv-extras.org>
      6. Installed-Size: 314
      7. Depends: linux-headers-amd64 | pve-headers | linux-headers-3.16.0-4-all, openmediavault (>= 3.0.74), openmediavault-omvextrasorg (>= 3.4.24), zfs-dkms, zfsutils-linux | zfsutils, zfs-zed
      8. Section: net
      9. Priority: optional
      10. Homepage: http://omv-extras.org/
      11. Description: OpenMediaVault plugin for ZFS
      12. ZFS is a combined file system and logical volume manager designed
      13. by Sun Microsystems. The features of ZFS include protection against
      14. data corruption, support for high storage capacities, efficient data
      15. compression, integration of the concepts of filesystem and volume
      16. management, snapshots and copy-on-write clones, continuous integrity
      17. checking and automatic repair, RAID-Z and native NFSv4 ACLs.
      18. .
      19. The native Linux kernel port of the ZFS filesystem.
      20. Description-md5: bcdfafd5d08fafcda0947332b7a89e32
      21. Plugin-Section: filesystems
      22. Filename: pool/main/o/openmediavault-zfs/openmediavault-zfs_3.0.18_amd64.deb
      23. SHA1: fc6148fe3f75653b98e35c0688dc1f47aa75787c
      24. SHA256: dc52786441d367be3ecce841758f49808b6864d0646ed29ef980058554b4cda3
      25. Size: 48596
      Display All
    • ryecoaaron wrote:

      Uh, the zfs plugin hasn't been ported to 4.x. Nothing you can do to fix that until it is ported. I planned on looking at it this weekend but I can't promise anything.
      ZFS hasn't been ported to 4.X ... What...??? 8o

      Just kidding. :D
      (I'm slow to upgrade/adopt in any case. M$ taught me to be that way and old habits die hard.)

      Thanks for the work you're doing. I'm amazed that you can find the time.
      Good backup takes the "drama" out of computing
      ____________________________________
      OMV 3.0.90 Erasmus
      ThinkServer TS140, 12GB ECC / 32GB USB3.0
      4TB SG+4TB TS ZFS mirror/ 3TB TS

      OMV 3.0.81 Erasmus - Rsync'ed Backup Server
      R-PI 2 $29 / 16GB SD Card $8 / Real Time Clock $1.86
      4TB WD My Passport $119
    • I think I found my problem and the solution for it

      I somehow earlier got a grub version installed on my system depending on the earlier mentioned zfs packages conflicting with the upstream zfs packages

      Source Code

      1. apt-cache policy grub-common
      2. grub-common:
      3. Installed: 2.02-beta2.9-ZOL11-7aa9f6
      4. Candidate: 2.02-beta2.9-ZOL11-7aa9f6
      5. Version table:
      6. *** 2.02-beta2.9-ZOL11-7aa9f6 0
      7. 100 /var/lib/dpkg/status
      8. 2.02~beta2-22+deb8u1 0
      9. 500 http://ftp.at.debian.org/debian/ jessie/main amd64 Packages
      10. 500 http://security.debian.org/ jessie/updates/main amd64 Packages

      Downgraded grub to the debian version, removed to funny zfs packages and installed the omv-zfs plugin

      Source Code

      1. sudo apt install grub-common=2.02~beta2-22+deb8u1 grub-pc-bin=2.02~beta2-22+deb8u1 grub2-common=2.02~beta2-22+deb8u1 grub-pc=2.02~beta2-22+deb8u1
      2. sudo apt remove libuutil1 libnvpair1 libzpool2 libzfs2 zfsutils
      3. sudo apt install openmediavault-zfs