-
Notifications
You must be signed in to change notification settings - Fork 291
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
Building deb package fails on ubuntu 24.04 #921
Comments
Interestingly, if I build the exact same sanoid release (2.2.0) on ubuntu 22.04, and scp the .deb file to the ubuntu 24.04 machine, I can install it. So the issue is something specific to the .deb built on 24.04. I diff'ed the two debs and the main difference seems to be the deb built on 24.04 is putting sanoid.service in /usr/lib/systemd/system/ and the deb built on 22.04 is putting sanoid.timer in /lib/systemd/system Full Diff
Edit: https://salsa.debian.org/debian/sanoid/-/commit/8284d3d0e822bfd7797c6f252bb8c80fb64ea242 |
A note: any Debian packaging you find here is welcome, but not properly "supported." As far as I know, whoever maintains the Debian package itself does their own private packaging; either way, I'm not a Debian packaging expert and I can't help much. If you want to install the latest version from master, you don't necessarily need to build a package at all; you can literally just copy sanoid and syncoid into /usr/local/bin, copy sanoid.defaults.conf into /etc/sanoid, and craft yourself an /etc/sanoid/sanoid.conf file to define what you want it to do with your stuff. There are a couple of Perl (CPAN) dependencies which can be satisfied either directly from Perl's CPAN repos, or from your distribution's repositories (which is the way I generally do it, as well as the way any distro repository packaging will be doing it). Off the top of my head, on Debian or Ubuntu those dependencies should be satisfied with |
Thanks @n0099 but you can see from my logs I had already tried to build in /temp and the issue still occurred. I need to diff the build files here with the Debian official package but haven't found time yet. |
I spun up a clean 24.04 ubuntu VM and an ubuntu 22.04 VM to do back to back testing. I followed the directions to build the deb package from here: https://github.com/jimsalterjrs/sanoid/blob/master/INSTALL.md
When building on ubuntu 24.04 I get the following error when the deb is unpacked. I believe the issue is related to the "sanoid.timer.dpkg-new" line, not the warning below that. The permission denied warning is present on 22.04 and 24.04.
The text was updated successfully, but these errors were encountered: