Verifying source file signatures with gpg... zfs-2.1.5.tar.gz ... cat: write error: Broken pipe

After an update my zfs is shot. I try to install the zfs-dmks/zfs-utils packages again with pamac, but it fails verifying the source code for some reason.

==> Verifying source file signatures with gpg...
    zfs-2.1.5.tar.gz ... cat: write error: Broken pipe

I checked /var/cache/private/pamac/zfs-dkms/PKGBUILD and imported the signature keys manually with gpg --recv-key which succeeded, but install still did fail the same way.

Any idea whats wrong?

Full log

root@mypi4  zfs-utils >>> pamac  build zfs-dkms                                                                                                                                                                                                                                             
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Cloning zfs-dkms build files...
Running as unit: run-u64.service
fatal: not a git repository (or any parent up to mount point /var/cache/private)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 26ms
CPU time consumed: 23ms
Running as unit: run-u65.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 32ms
CPU time consumed: 28ms
Running as unit: run-u66.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 523ms
CPU time consumed: 160ms
Generating zfs-dkms information...
Running as unit: run-u67.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 3.896s
CPU time consumed: 4.557s
Checking zfs-dkms dependencies...
Cloning zfs-utils build files...
Running as unit: run-u68.service
fatal: not a git repository (or any parent up to mount point /var/cache/private)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 32ms
CPU time consumed: 28ms
Running as unit: run-u69.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 52ms
CPU time consumed: 48ms
Running as unit: run-u70.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 508ms
CPU time consumed: 164ms
Generating zfs-utils information...
Running as unit: run-u71.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 9.063s
CPU time consumed: 10.693s
Checking zfs-utils dependencies...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Resolving dependencies...
Checking inter-conflicts...

To build (2):
  zfs-utils  2.1.5-1  (2.0.0-1)  AUR
  zfs-dkms   2.1.5-1  (2.0.0-1)  AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Building zfs-utils...
Running as unit: run-u72.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: zfs-utils 2.1.5-1 (Sun 25 Sep 2022 10:27:45 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading zfs-2.1.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 33.3M  100 33.3M    0     0  2534k      0  0:00:13  0:00:13 --:--:-- 2897k
  -> Downloading zfs-2.1.5.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   836  100   836    0     0   1178      0 --:--:-- --:--:-- --:--:--     0
  -> Found zfs.initcpio.install
  -> Found zfs.initcpio.hook
==> Validating source files with sha256sums...
    zfs-2.1.5.tar.gz ... Passed
    zfs-2.1.5.tar.gz.asc ... Skipped
    zfs.initcpio.install ... Passed
    zfs.initcpio.hook ... Passed
==> Validating source files with b2sums...
    zfs-2.1.5.tar.gz ... Passed
    zfs-2.1.5.tar.gz.asc ... Skipped
    zfs.initcpio.install ... Passed
    zfs.initcpio.hook ... Passed
==> Verifying source file signatures with gpg...
    zfs-2.1.5.tar.gz ... cat: write error: Broken pipe
FAILED
==> ERROR: One or more PGP signatures could not be verified!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 22.964s
CPU time consumed: 15.706s
Error: Failed to build zfs-utils

Finally running the command as a sudoer instead of root, did work.

Only thing I changed since last try that I can remember is that I executed:


git config --global --add safe.directory /var/cache/private/pamac/zfs-utils 
git config --global --add safe.directory /var/cache/private/pamac/zfs-dkms

Because I got this warning when going into that directory and trying git status

fatal: detected dubious ownership in repository at '/var/cache/private/pamac/zfs-dkms'
To add an exception for this directory, call:

	git config --global --add safe.directory /var/cache/private/pamac/zfs-dkms

Currently it is still building

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.