Error: Failed to build atool

When I run pamac update I get this:

Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                               
Cloning atool build files...                                                    
Running as unit: run-u178.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: 4ms
CPU time consumed: 4ms
Running as unit: run-u179.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 4ms
CPU time consumed: 4ms
Running as unit: run-u180.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 6.385s
CPU time consumed: 47ms
Generating atool information...
Running as unit: run-u181.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 769ms
CPU time consumed: 855ms
Checking atool dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  atool  0.39.0-7  (0.39.0-1)  AUR


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


Building atool...
Running as unit: run-u182.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: atool 0.39.0-7 (Fri 18 Mar 2022 10:08:43 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading atool-0.39.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   373  100   373    0     0     60      0  0:00:06  0:00:06 --:--:--    89
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0
100  116k  100  116k    0     0   6963      0  0:00:17  0:00:17 --:--:-- 28929
  -> Downloading atool-0.39.0.tar.gz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   377  100   377    0     0     62      0  0:00:06  0:00:06 --:--:--    90
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0
100    72  100    72    0     0      4      0  0:00:18  0:00:16  0:00:02    17
==> Validating source files with sha256sums...
    atool-0.39.0.tar.gz ... Passed
    atool-0.39.0.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
    atool-0.39.0.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: 34.958s
CPU time consumed: 1.065s
Error: Failed to build atool

What is atool and why is it failing to build?

See description:

$ LANG=C pamac info atool --no-aur
Name                  : atool
Version               : 0.39.0-1
Description           : A script for managing file archives of various types
URL                   : https://www.nongnu.org/atool/
Licenses              : GPL3
Repository            : community
Installed Size        : 85.8 kB
Groups                : --
Depends On            : file perl
Optional Dependencies : bzip2: for using atool with bzip2 compressed archives [Installed]
                        cpio: for using atool with cpio archives
                        gzip: for using atool with gzip compressed archives [Installed]
                        lha: for using atool with lha, lharc and similar archives
                        xz: for using atool with lzma compressed archives [Installed]
                        lzop: for using atool with lzop compressed archives
                        p7zip: for using atool with 7z archives [Installed]
                        tar: for using atool with tar archives [Installed]
                        unace: for using atool with ace archives
                        unrar: for using atool with rar archives
                        zip: for using atool for creating zip archives [Installed]
                        unzip: for using atool for unpacking archives [Installed]
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Bernhard Landauer <oberon@manjaro.org>
Build Date            : Mon Mar 14 13:57:40 2022
Validated By          : MD5 Sum  SHA-256 Sum  Signature

There is package at the official repo, why do you need the AUR version? If you don’t need it, then remove it.

It’s a tool for managing various types of archive files.

It’s in the repositories, so it wouldn’t need to be built. The error suggests that you have installed that package from the AUR instead, possibly as a dependency for another AUR package.

ERROR: One or more PGP signatures could not be verified!

… is why it failed to build. The solution is to uninstall the version of atool you have installed and to install the one from the repository instead. :arrow_down:

sudo pacman -R atool && sudo pacman -S atool

Not anymore. It was dropped to the AUR recently as it’s no longer maintained upstream and has a few glaring issues.

It was an optional dependency for manjaro-ranger-settings, so that’s possibly why it was installed.

So, should I just remove it?

If it’s not required by anything, yes.

Ok thanks!