LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 04-17-2019, 01:26 PM   #1
kneutron
LQ Newbie
 
Registered: Apr 2019
Posts: 6

Rep: Reputation: Disabled
ZFS backports does not install on latest deepin


I get an error message trying to install ZFS from backports. Anyone else dealing with or have a fix for this? On other distros I've had to go back to an older kernel.
 
Old 04-17-2019, 02:35 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by kneutron View Post
I get an error message trying to install ZFS from backports. Anyone else dealing with or have a fix for this? On other distros I've had to go back to an older kernel.
-:::-You might want to post the error message that you are getting so others can help you.-:::-

The current version of ZFS is 0.7.13-

https://zfsonlinux.org/
 
1 members found this post helpful.
Old 04-17-2019, 02:37 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
https://wiki.ubuntu.com/ZFS
 
Old 04-17-2019, 02:41 PM   #4
kneutron
LQ Newbie
 
Registered: Apr 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Angry

Well now it's not booting at all, I get error message "cannot open access to console, the root account is locked." Press Enter to continue -- and it just loops after hitting Enter.
 
Old 04-17-2019, 02:51 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Did you edit and change your /etc/fstab file?
 
1 members found this post helpful.
Old 04-17-2019, 03:27 PM   #6
kneutron
LQ Newbie
 
Registered: Apr 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Ztcoracat View Post
Did you edit and change your /etc/fstab file?
I did, turns out there was an external disk that wasn't powered on. But this is only one of the reasons I hate systemD with the power of 1,000 burning suns.

After finally getting it to boot in single-user mode (and powering on the disk):

2019.0416 + installed latest zfs pkg 0.7.12 by adding /etc/apt/sources.list.d/stretch-backports.list
REF: https://github.com/zfsonlinux/zfs/wiki/Debian

ZFS 0.7.12-1~bpo9+1

# apt-get install zfs-dkms zfsutils-linux
The following additional packages will be installed:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms zfs-zed
Suggested packages:
nfs-kernel-server zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms zfs-dkms zfs-zed zfsutils-linux
0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 2,481 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]y

Building initial module for 4.15.0-30deepin-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: 4.15.0-30deepin-generic (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.

# cat /var/lib/dkms/zfs/0.6.5.9/build/make.log
DKMS make.log for zfs-0.6.5.9 for kernel 4.15.0-30deepin-generic (x86_64)
Tue Apr 16 13:45:50 CDT 2019
make: *** No targets specified and no makefile found. Stop.

--I have:

# cat /etc/apt/sources.list.d/stretch-backports.list
deb http://deb.debian.org/debian stretch-backports main contrib
deb-src http://deb.debian.org/debian stretch-backports main contrib


# apt-cache show zfs-dkms
Package: zfs-dkms
Source: zfs-linux
Version: 0.6.5.9-5
Installed-Size: 7961
Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>
Architecture: all
Provides: zfs-modules
Depends: dkms (>> 2.1.1.2-5), lsb-release, debconf (>= 0.5) | debconf-2.0
Pre-Depends: spl-dkms (>= 0.6.5.9)

--This is bizarre, before I installed apt-cache was showing the later bpo package.

# deldeb libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms zfs-dkms zfs-zed zfsutils-linux
The following packages will be REMOVED:
libnvpair1linux* libuutil1linux* libzfs2linux* libzpool2linux* spl* spl-dkms* zfs-dkms* zfs-zed* zfsutils-linux*
0 upgraded, 0 newly installed, 9 to remove and 2 not upgraded.
After this operation, 14.6 MB disk space will be freed.
Do you want to continue? [Y/n] Y

# apt update

# apt-cache show zfsutils-linux
Package: zfsutils-linux
Source: zfs-linux
Version: 0.7.12-1~bpo9+1
Installed-Size: 1041
Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>
Architecture: amd64
Provides: zfsutils
Depends: python3, init-system-helpers (>= 1.18~), python3:any, libblkid1 (>= 2.16), libc6 (>= 2.17), libnvpair1linux (>= 0.7.12), libuuid1 (>= 2.16), libuutil1linux (>= 0.7.12), libzfs2linux (>= 0.7.12), libzpool2linux (>= 0.7.12), zlib1g (>= 1:1.1.4)
Recommends: lsb-base, zfs-modules | zfs-dkms, zfs-zed
Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs | zfs-dracut
Conflicts: zfs, zfs-fuse
Breaks: zfs-dkms (>> 0.7.12-1~bpo9+1), zfs-dkms (<< 0.7.12-1~bpo9+1)

# apt-cache show zfs-dkms
Package: zfs-dkms
Source: zfs-linux
Version: 0.7.12-1~bpo9+1
Installed-Size: 10564
Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>
Architecture: all
Provides: zfs-modules
Depends: dkms (>> 2.1.1.2-5), lsb-release, debconf (>= 0.5) | debconf-2.0
Pre-Depends: spl-dkms (<< 0.7.12.), spl-dkms (>= 0.7.12)
Recommends: zfs-zed, zfsutils-linux (>= 0.7.12-1~bpo9+1), linux-libc-dev (<< 4.20~)

--When I ' apt install zfsutils-linux zfs-dkms ' it starts installing 0.6.5.9:
Unpacking spl-dkms (0.6.5.9-1) ...

--I have been using Linux since 1997 and never had this kind of problem with apt, it's always pulled the packages I expected to install before...
 
Old 04-17-2019, 03:42 PM   #7
kneutron
LQ Newbie
 
Registered: Apr 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
--I got it sorted; thanks for replying, sometimes you just need a sounding board to help you think.

FIX REF: https://askubuntu.com/questions/2736...fic-repository

TL,DR: For those in the same predicament:

FIX: # apt-get install -t stretch-backports zfs-dkms zfsutils-linux

# modinfo zfs|head
filename: /lib/modules/4.15.0-30deepin-generic/extra/zfs/zfs/zfs.ko
version: 0.7.12-1~bpo9+1

# zpool status -v
 
Old 04-17-2019, 03:57 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
But this is only one of the reasons I hate systemD with the power of 1,000 burning suns.
I'm not fond of systemd either. This is why I run Slackware.

The error that you have says to look in the log.

Code:
Error! Bad return status for module build on kernel: 4.15.0-30deepin-generic (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.
There is also a conflict and a break of some pkg's.

Code:
Conflicts: zfs, zfs-fuse
Breaks: zfs-dkms (>> 0.7.12-1~bpo9+1), zfs-dkms (<< 0.7.12-1~bpo9+1)
------------------------------------------------------------------------------------------------------------------------------------

Quote:
-I have been using Linux since 1997 and never had this kind of problem with apt, it's always pulled the packages I expected to install before...
Agreed APT has always done a great job at dependency resolution.

Code:
 No targets specified and no makefile found
This happens mostly because there is no file "makefile" in that directory.
Make sure you are in the correct directory before you execute ./configure.

I think you are going to need someone that is very good with compiling:-
It looks to me that you are missing dependencies along with pkg's that are suggested. Also, I've never seen that configure error before and I'm not familiar with spl objects.

Code:
 Please make sure the kmod spl devel <kernel> package for your
*** distribution is installed then try again.
 
Old 04-17-2019, 03:59 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by kneutron View Post
--I got it sorted; thanks for replying, sometimes you just need a sounding board to help you think.

FIX REF: https://askubuntu.com/questions/2736...fic-repository

TL,DR: For those in the same predicament:

FIX: # apt-get install -t stretch-backports zfs-dkms zfsutils-linux

# modinfo zfs|head
filename: /lib/modules/4.15.0-30deepin-generic/extra/zfs/zfs/zfs.ko
version: 0.7.12-1~bpo9+1

# zpool status -v

So ZFS is now installed and working correctly?
 
1 members found this post helpful.
Old 04-17-2019, 04:26 PM   #10
kneutron
LQ Newbie
 
Registered: Apr 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by Ztcoracat View Post
So ZFS is now installed and working correctly?
--Yep. It's all good now.

--FYI: I needed the latest ZFS available cuz of dual booting Deepin on a 2011 iMac (with reFind installed on both sides) and 10.13 High Sierra + ZFS 1.8.2.
The Mac side has newer ' zpool upgrade ' options that required making a pool with constrained capabilities if you wanted to use it in both OSes, which I am now going to test to see if that's still needed with the newer ZFS packages:


# HTH if anyone needs it
# Run this on the Mac side and chmod +x it -- useful if you are running say, ubuntu 18.04 / older zfs version on linux side

BEGIN zpool-create-dual-boot-compatible.sh
Code:
#!/bin/bash

# create ZFS pool that should be cross-boot compatible and import OK

# REF: https://www.reddit.com/r/zfs/comments/b092at/cant_import_pool_from_zol_to_bsd/
# REF: https://zgrep.org/zfs.html  # zfs by-OS compat. chart
# REF ' man zpool-features ' - large_blocks needed for recordsize=1024k

# EDITME!
zp=zmac320
diskk=/dev/disk0s8 # Linux - use /dev/disk/by-id

zpool create -f -d \
 -o feature@async_destroy=enabled \
 -o feature@bookmarks=enabled \
 -o feature@embedded_data=enabled \
 -o feature@empty_bpobj=enabled \
 -o feature@enabled_txg=enabled \
 -o feature@spacemap_histogram=enabled \
 -o feature@filesystem_limits=enabled \
 -o feature@lz4_compress=enabled \
 -o feature@large_blocks=enabled \
 -o ashift=12 -o autoexpand=off \
 -O atime=off -O compression=lz4 $zp "$diskk"
--Took a while to make that all work, so posting for posterity
 
1 members found this post helpful.
Old 04-17-2019, 06:16 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Glad to hear all is good now.

Thanks for the update and the details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Latest Deepin 2014 RC update disabled Deepin SW Center Nieuwkoop-75 Linux Deepin 13 01-04-2015 10:51 PM
Deepin 2014 Alpha – Be ready to embrace the New Deepin cxbii Linux Deepin 6 11-17-2014 08:06 PM
LXer: Linux Deepin needs your help with the Deepin Localization Project LXer Syndicated Linux News 0 12-02-2013 10:41 PM
[SOLVED] stable-backports distribution spec not known to backports.debian.org jhwilliams Debian 7 05-31-2012 05:31 AM
LXer: Use Linux Deepin Screenshot Tool "Deepin Scrot" In Other Linux Distributions LXer Syndicated Linux News 0 03-13-2012 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration