sanoid icon indicating copy to clipboard operation
sanoid copied to clipboard

Building deb package fails on ubuntu 24.04

Open borgmanJeremy opened this issue 9 months ago • 7 comments

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.

Unpacking sanoid (2.2.0) ...
dpkg: error processing archive /tmp/apt-dpkg-install-sXtixa/6-sanoid_2.2.0_all.deb (--unpack):
 unable to open '/usr/lib/systemd/system/sanoid.timer.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Errors were encountered while processing:
 /tmp/apt-dpkg-install-sXtixa/6-sanoid_2.2.0_all.deb
needrestart is being skipped since dpkg has failed
N: Download is performed unsandboxed as root as file '/home/jeremy/sanoid_2.2.0_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)

borgmanJeremy avatar Apr 30 '24 19:04 borgmanJeremy