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

deepin v23(kernel 6.1.32) add-apt-repository ppa error #15621

Closed
httaotao opened this issue Dec 1, 2023 · 5 comments
Closed

deepin v23(kernel 6.1.32) add-apt-repository ppa error #15621

httaotao opened this issue Dec 1, 2023 · 5 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@httaotao
Copy link

httaotao commented Dec 1, 2023

hi, when I install openzfs in my latop, it showed:

zfs$ sudo add-apt-repository ppa:jonathonf/zfs
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/beige

os-release:

$ sudo cat /etc/os-release 
PRETTY_NAME="Deepin 23"
NAME="Deepin"
VERSION_ID="23"
VERSION="23"
ID=Deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org"
VERSION_CODENAME=beige

kernel:

$ sudo uname -a 
Linux hilton-PC 6.1.32-amd64-desktop-hwe #23.01.00.20 SMP PREEMPT_DYNAMIC Mon Sep 11 14:16:03 CST 2023 x86_64 GNU/Linux

thanks

@httaotao httaotao added the Type: Defect Incorrect behavior (e.g. crash, hang) label Dec 1, 2023
@AllKind
Copy link
Contributor

AllKind commented Dec 1, 2023

The jonathonf PPA isn't maintained for a long time.
Also this wouldn't be the right place to report problems with it.
You'd need to compile the packages yourself.
https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html
A user just made a script to automate the installation for v.2.2.2:
#15586 (comment)

@FL140
Copy link

FL140 commented Dec 1, 2023

A user just made a script to automate the installation for v.2.2.2: #15586 (comment)

Being the author of one of the two scripts over there, please read the comments around the scripts carefully prior applying. The official documentation is a bit outdated and the building is a bit rocky for now. I will clean up the script but focus is right now on fixing a pool panic.

So also please read the comments in the script, these explain why which decision has been made so you get an understanding of what you are doing.

@FL140
Copy link

FL140 commented Dec 1, 2023

I cleaned up the script for deb builds, hope it helps. See: #15586 (comment)

@httaotao
Copy link
Author

httaotao commented Dec 2, 2023

I cleaned up the script for deb builds, hope it helps. See: #15586 (comment)

that work better.

However, it runs with some info here

make[2]: Entering directory '/tmp/zfs-2.2.2/zfs-2.2.2'
dh_gencontrol -- -Vlinux:Recommends="linux-libc-dev (<< 6.7~), linux-libc-dev (>= 3.10~),"
dpkg-gencontrol: warning: package openzfs-pyzfs-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined
make[2]: Leaving directory '/tmp/zfs-2.2.2/zfs-2.2.2'
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'openzfs-libnvpair3' in '../openzfs-libnvpair3_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libpam-zfs' in '../openzfs-libpam-zfs_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libuutil3' in '../openzfs-libuutil3_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzfs-dev' in '../openzfs-libzfs-dev_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzfs4-dbgsym' in '../openzfs-libzfs4-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzfsbootenv1-dbgsym' in '../openzfs-libzfsbootenv1-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzpool5-dbgsym' in '../openzfs-libzpool5-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-pyzfs-doc' in '../openzfs-pyzfs-doc_2.2.2-1_all.deb'.
dpkg-deb: building package 'openzfs-zfs-initramfs' in '../openzfs-zfs-initramfs_2.2.2-1_all.deb'.
dpkg-deb: building package 'openzfs-zfsutils' in '../openzfs-zfsutils_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-zed' in '../openzfs-zfs-zed_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-test' in '../openzfs-zfs-test_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzpool5' in '../openzfs-libzpool5_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-dracut' in '../openzfs-zfs-dracut_2.2.2-1_all.deb'.
dpkg-deb: building package 'openzfs-libpam-zfs-dbgsym' in '../openzfs-libpam-zfs-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libuutil3-dbgsym' in '../openzfs-libuutil3-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libnvpair3-dbgsym' in '../openzfs-libnvpair3-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-zed-dbgsym' in '../openzfs-zfs-zed-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-dkms' in '../openzfs-zfs-dkms_2.2.2-1_all.deb'.
dpkg-deb: building package 'openzfs-libzfsbootenv1' in '../openzfs-libzfsbootenv1_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfsutils-dbgsym' in '../openzfs-zfsutils-dbgsym_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-python3-pyzfs' in '../openzfs-python3-pyzfs_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-libzfs4' in '../openzfs-libzfs4_2.2.2-1_amd64.deb'.
dpkg-deb: building package 'openzfs-zfs-test-dbgsym' in '../openzfs-zfs-test-dbgsym_2.2.2-1_amd64.deb'.
make[1]: Leaving directory '/tmp/zfs-2.2.2/zfs-2.2.2'
 dpkg-genbuildinfo --build=binary -O../openzfs-linux_2.2.2-1_amd64.buildinfo
 dpkg-genchanges --build=binary -O../openzfs-linux_2.2.2-1_amd64.changes                                                      
dpkg-genchanges: info: binary-only upload (no source code included)                                                           
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)                                                              

Reading package lists... Done
E: Unsupported file ./openzfs-lib*_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-py*_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-zfs-dkms_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-zfsutils_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-zfs-zed_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-zfs-test_2.2.2*.deb given on commandline
E: Unsupported file ./openzfs-zfs-initramfs_2.2.2*.deb given on commandline

Maybe we don't need to rm all the deb packages

@httaotao httaotao closed this as completed Dec 5, 2023
@httaotao
Copy link
Author

httaotao commented Dec 5, 2023

I cleaned up the script for deb builds, hope it helps. See: #15586 (comment)

perfect! it works! thanks

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