Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to install deb native package #15948

Closed
clhedrick opened this issue Feb 29, 2024 · 3 comments
Closed

unable to install deb native package #15948

clhedrick opened this issue Feb 29, 2024 · 3 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@clhedrick
Copy link

clhedrick commented Feb 29, 2024

System information

Type | Version/Name
Ubuntu | 22.04
Distribution Name | Ubuntu
Distribution Version | 22.04
Kernel Version | 6.5.0-21-generic #21~22.04.1-Ubuntu
Architecture | x64
OpenZFS Version | 2.2.3

Describe the problem you're observing

I followed the instructions to build native packages.

   44	20:20	git clone https://github.com/openzfs/zfs.git
    45	20:20	cd zfs
    46	20:20	git checkout zfs-2.2.3

    48	20:21	./autogen.sh
    49	20:22	./configure
    50	20:23	make native-deb-utils native-deb-kmod
    51	20:28	rm ../openzfs-zfs-dkms_*.deb
   
    58	20:32	apt-get install --fix-missing ../*.deb

Describe how to reproduce the problem

Include any warning/errors/backtraces from the system logs

apt-get install --fix-missing ../*.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'openzfs-libnvpair3' instead of '../openzfs-libnvpair3_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libpam-zfs' instead of '../openzfs-libpam-zfs_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libuutil3' instead of '../openzfs-libuutil3_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libzfs4' instead of '../openzfs-libzfs4_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libzfsbootenv1' instead of '../openzfs-libzfsbootenv1_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libzfs-dev' instead of '../openzfs-libzfs-dev_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-libzpool5' instead of '../openzfs-libzpool5_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-python3-pyzfs' instead of '../openzfs-python3-pyzfs_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-pyzfs-doc' instead of '../openzfs-pyzfs-doc_2.2.3-1_all.deb'
Note, selecting 'openzfs-zfs-dracut' instead of '../openzfs-zfs-dracut_2.2.3-1_all.deb'
Note, selecting 'openzfs-zfs-initramfs' instead of '../openzfs-zfs-initramfs_2.2.3-1_all.deb'
Note, selecting 'openzfs-zfs-modules-6.5.0-21-generic' instead of '../openzfs-zfs-modules-6.5.0-21-generic_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-zfs-test' instead of '../openzfs-zfs-test_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-zfsutils' instead of '../openzfs-zfsutils_2.2.3-1_amd64.deb'
Note, selecting 'openzfs-zfs-zed' instead of '../openzfs-zfs-zed_2.2.3-1_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dracut : Conflicts: initramfs-tools but 0.140ubuntu13.2 is to be installed
 initramfs-tools : Conflicts: linux-initramfs-tool
E: Unable to correct problems, you have held broken packages.
@clhedrick clhedrick added the Type: Defect Incorrect behavior (e.g. crash, hang) label Feb 29, 2024
@rincebrain
Copy link
Contributor

You tried to install both the dracut and initramfs helpers, but the two different initrd generators Conflict with each other, so those instructions were always wrong.

Really, it's almost never the case that you want dracut on Debian or Ubuntu systems, so it should probably default to assuming that, with a note on what to change if that's not the case. I'll go try to work something saner up in the documentation.

In the interim, delete the openzfs-zfs-dracut package and try installing again.

@clhedrick
Copy link
Author

clhedrick commented Feb 29, 2024

Thanks. The install worked. Seems OK.

I now have two versions of zfs.ko

./6.5.0-21-generic/kernel/zfs/zfs.ko
./6.5.0-21-generic/extra/zcommon/zfs.ko

Is that OK?

@gmelikov
Copy link
Member

gmelikov commented Mar 2, 2024

I now have two versions of zfs.ko

./6.5.0-21-generic/kernel/zfs/zfs.ko
./6.5.0-21-generic/extra/zcommon/zfs.ko

Is that OK?

Yes, kernel is the one from Ubuntu.

I've added some info about dracut in doc, so I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

3 participants