Zfsutils-linux install fails in fresh lmde4 install

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
decuser
Level 1
Level 1
Posts: 14
Joined: Wed Nov 01, 2017 10:56 am

Zfsutils-linux install fails in fresh lmde4 install

Post by decuser »

Hi,

When I try to:

Code: Select all

sudo apt install zfsutils-linux
It fails building Dkms code (module won’t load) and cannot be removed or fixed using:

Code: Select all

sudo apt remove zfsutils-linux
Or

Code: Select all

sudo apt install -f
Thoughts on tracking down the issue?
jlukescott
Level 1
Level 1
Posts: 3
Joined: Wed Sep 16, 2020 11:53 am

Re: Zfsutils-linux install fails in fresh lmde4 install

Post by jlukescott »

I'm also having this problem - I tried both with the plain vanilla kernel (4.0.8) and the current one after running

Code: Select all

sudo apt full-upgrade
. This is a real pain, my main backup set is unavailable until I get this working :|
jlukescott
Level 1
Level 1
Posts: 3
Joined: Wed Sep 16, 2020 11:53 am

Re: Zfsutils-linux install fails in fresh lmde4 install

Post by jlukescott »

Sorry, my previous post was incomplete. Here's an extract from config.log, which shows a GCC parameter compatibility problem:

Code: Select all

...

Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6) 
configure:3607: $? = 0
configure:3596: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3607: $? = 1
configure:3596: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.

...
jlukescott
Level 1
Level 1
Posts: 3
Joined: Wed Sep 16, 2020 11:53 am

Re: Zfsutils-linux install fails in fresh lmde4 install

Post by jlukescott »

I was able to find the problem.

In /usr/src/zfs-0.7.12/dkms.conf there's an if() condition that sets a source directory:

Code: Select all

  --with-linux=$(
    case `lsb_release -is` in
      (Debian|Devuan)
But since lsb_release in LMDE returns "Linuxmint", the if() condition is not met. The fix is to edit /usr/src/zfs-0.7.12/dkms.conf to add "Linuxmint" to the if():

Code: Select all

  --with-linux=$(
    case `lsb_release -is` in
      (Debian|Devuan|Linuxmint)
After doing that, just do an apt upgrade to finish the install, and definitely restart your computer before modifying/mounting anything. Your service will have been put into an unknown state by the above process.
antikythera
Level 6
Level 6
Posts: 1436
Joined: Thu Jul 02, 2020 12:52 pm
Contact:

Re: Zfsutils-linux install fails in fresh lmde4 install

Post by antikythera »

:D Nicely done
Don't take life so seriously, nobody gets out alive anyway!
AMSTRAD CPC6128 - 128KB RAM, 3" Hitachi Floppy Diskette Drive, External Sony Cassette Recorder, Locomotive BASIC 1.1, CTM-644 Monitor
Post Reply

Return to “Software & Applications”