Cannot build AUR apps through pamac anymore "target not found: libadwaita-shortwave"

Just updated my system after a month, then I uninstalled java 8 jdk/jre, cause I thought I needed to remove old versions of Java to get minecraft working (turns out I didn’t)

But now whenever I try to build/upgrade and AUR app, I get the error in the title.

Trying to build the package by itself gives the same error.

Welcome here, @WaldoTheRanger :wave:

First thing I would try is to update your mirrorlist and then to update again:

sudo pacman-mirrors -f && sudo pacman -Syyu
pamac upgrade -a

Yeah already tried that through gui last night, and the command line isn’t working either.

what other details do you guys need?

Can you try installing a very small AUR package to see if the issue is with this package or all AUR packages?

You can try to remove all cache related in /var/cache/pacman/pkg of this package and try again.
That helped me with installing wps office

I have already tried this. even something as small as xmrig or unetbootin fails.

There is no cache related to this package.
I also tried clearing all caches last night.

Welcome to the forum :wave:

Please post a full build log when attempting to build an AUR package. The only package that requires libadwaita-shortwave is shortwave and would not affect any other AUR package.

Good to know.
I guess shortwave must be a dependency for something then?
How do I find this log?

No, it’s an internet radio player.

Please post the output of:

pamac build package-name

That… worked.
So I guess I’ll just build them all individually through the terminal.

Here’s the log in case it’s still useful to someone:

> Warning: Building packages as root
> Warning: Setting build directory to /var/cache/pamac
> Preparing...
> Cloning jdk build files...
> Running as unit: run-u136.service
> Finished with result: success
> Main processes terminated with: code=exited/status=0
> Service runtime: 1.060s
> CPU time consumed: 120ms
> Checking jre dependencies...
> Resolving dependencies...
> Checking inter-conflicts...
> 
> To build (1):
>   jre  16.0.1-1  (13.0.2-1)  AUR
> 
> 
> Edit build files : [e] 
> Apply transaction ? [e/y/N] y
> 
> 
> Building jdk...
> Running as unit: run-u137.service
> Press ^] three times within 1s to disconnect TTY.
> ==> Making package: jdk 16.0.1-1 (Sat 10 Jul 2021 03:42:14 PM CDT)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving sources...
>   -> Downloading jdk-16.0.1_linux-x64_bin.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
> 100   549  100   549    0     0    413      0  0:00:01  0:00:01 --:--:--   413
> 100  170M  100  170M    0     0  1312k      0  0:02:12  0:02:12 --:--:-- 1336k
>   -> Found java.desktop
>   -> Found jconsole.desktop
>   -> Found jshell.desktop
>   -> Found java_16.png
>   -> Found java_48.png
> ==> Validating source files with sha256sums...
> jdk-16.0.1_linux-x64_bin.tar.gz ... Passed
> java.desktop ... Passed
> jconsole.desktop ... Passed
> jshell.desktop ... Passed
> java_16.png ... Passed
> java_48.png ... Passed
> ==> Removing existing $srcdir/ directory...
> ==> Extracting sources...
>   -> Extracting jdk-16.0.1_linux-x64_bin.tar.gz with bsdtar
> ==> Entering fakeroot environment...
> ==> Starting package_jre()...
> ==> Tidying install...
>   -> Removing libtool files...
>   -> Purging unwanted files...
>   -> Removing static library files...
>   -> Stripping unneeded symbols from binaries and libraries...
>   -> Compressing man and info pages...
> ==> Checking for packaging issues...
> ==> Creating package "jre"...
>   -> Generating .PKGINFO file...
>   -> Generating .BUILDINFO file...
>   -> Adding install file...
>   -> Generating .MTREE file...
>   -> Compressing package...
> ==> Starting package_jdk()...
> ==> Tidying install...
>   -> Removing libtool files...
>   -> Purging unwanted files...
>   -> Removing static library files...
>   -> Stripping unneeded symbols from binaries and libraries...
>   -> Compressing man and info pages...
> ==> Checking for packaging issues...
> ==> Creating package "jdk"...
>   -> Generating .PKGINFO file...
>   -> Generating .BUILDINFO file...
>   -> Adding install file...
>   -> Generating .MTREE file...
>   -> Compressing package...
> ==> Leaving fakeroot environment.
> ==> Finished making: jdk 16.0.1-1 (Sat 10 Jul 2021 03:44:52 PM CDT)
> ==> Cleaning up...
> Finished with result: success
> Main processes terminated with: code=exited/status=0
> Service runtime: 2min 44.518s
> CPU time consumed: 40.977s
> Running as unit: run-u138.service
> Finished with result: success
> Main processes terminated with: code=exited/status=0
> Service runtime: 6.098s
> CPU time consumed: 6.882s
> 
> Checking keyring...                                                        [1/1]
> Checking integrity...                                                      [1/1]
> Loading packages files...                                                  [1/1]
> Checking file conflicts...                                                 [1/1]
> Checking available disk space...                                           [1/1]
> Upgrading jre (13.0.2-1 -> 16.0.1-1)...                                    [1/1]
> Transaction successfully finished.

…as opposed to? What did you do before when you received the error?

Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    text
    ```

  • Use HTML:

    <pre><code>
    text
    </pre></code>

Please edit your post accordingly.

I used the upgrade through the gui version of pamac, which failed both when upgrading multiple packages at once, upgrading one at a time, or even removing packages.

I also used pamac upgrade -a

so the question still remains, why is it trying to build libadwaita when I don’t have it installed or scheduled for upgrade, and then why can it not find it?

What’s the output of:

pamac search --installed shortwave

it doesn’t give one.
Output is totally blank.

I assumed you meant to enter in the command exactly as written?

Yes. If there was no output then there were no results.

How about the output of:

pamac update --aur --devel

Practically Identical to pamac upgrade -a. Also fails.

Preparing...
Cloning python37 build files...
Checking python37 dependencies...
Cloning openjpeg build files...
Checking openjpeg dependencies...
Cloning minecraft-launcher build files...
Checking minecraft-launcher dependencies...
Cloning notejot build files...
Checking notejot dependencies...
Cloning gcc8 build files...
Checking gcc8-libs dependencies...
Cloning multiload-ng-common build files...
Checking multiload-ng-common dependencies...
Cloning qt4 build files...
Checking qt4 dependencies...
Cloning kappa-launcher-git build files...
Checking kappa-launcher-git dependencies...
Cloning unetbootin build files...
Checking unetbootin dependencies...
Cloning xdg-su build files...
Checking xdg-su dependencies...
Cloning protontricks build files...
Checking protontricks dependencies...
Cloning multimc5 build files...
Checking multimc5 dependencies...
Cloning streamlink-git build files...
Checking streamlink-git dependencies...
Cloning xmrig-donateless build files...
Checking xmrig-donateless dependencies...
Cloning libadwaita-git build files...
Checking libadwaita-git dependencies...
Cloning libadwaita-shortwave build files...
Checking libadwaita-shortwave dependencies...
Synchronizing package databases...
Choose a provider for libadwaita:
1:  libadwaita-git        1:r1560.4f6e828-2  AUR
2:  libadwaita-shortwave  1:r1937.afee036-2  AUR

Enter a number (default=1): 1

Resolving dependencies...
Checking inter-conflicts...

To install (10):
  expect               5.45.4-2               (Required By: gcc8)            extra      192.5 kB
  dejagnu              1.6.2-2                (Required By: gcc8)            extra      148.1 kB
  gtk4                 1:4.2.1-2              (Required By: libadwaita-git)  extra      9.1 MB
  libsass              3.6.5-1                (Required By: libadwaita-git)  community  737.8 kB
  sassc                3.6.2-2                (Required By: libadwaita-git)  community  8.2 kB
  postgresql-libs      13.3-3                 (Required By: qt4)             extra      1.4 MB
  mariadb-libs         10.5.10-1              (Required By: qt4)             extra      5.9 MB
  unixodbc             2.3.9-1                (Required By: qt4)             core       252.3 kB
  libfbclient          3.0.7.33374-1          (Required By: qt4)             extra      743.1 kB
  lynx                 2.8.9-3                (Required By: xdg-su)          extra      1.3 MB
To build (16):
  gcc8-libs            8.4.0-2                (8.4.0-1)                      AUR
  gcc8                 8.4.0-2                (8.4.0-1)                      AUR
  streamlink-git       2.1.1.r16.g034173da-2  (1.5.0.r9.gbf1460c8-1)         AUR
  kappa-launcher-git   r89.49b9d8e-1          (r54.76b757a-1)                AUR
  minecraft-launcher   921-1                  (2.1.13509-1)                  AUR
  multiload-ng-common  1.5.2-4                (1.5.2-3)                      AUR
  multimc5             0.6.12-2               (0.6.11-1)                     AUR
  libadwaita-git       1:r1560.4f6e828-2                                     AUR
  notejot              3.0.4-2                (1.5.8-1)                      AUR
  openjpeg             1.5.2-3                (1.5.2-2)                      AUR
  protontricks         1.5.2-1                (1.5.1-1)                      AUR
  python37             3.7.11-1               (3.7.6-1)                      AUR
  qt4                  4.8.7-34               (4.8.7-29.1)                   AUR
  unetbootin           702-1                  (661-1)                        AUR
  xdg-su               1.2.3-2                (1.2.3-1)                      AUR
  xmrig-donateless     6.13.1-1               (6.7.2-1)                      AUR

Total download size: 19.8 MB
Total installed size: 97.4 MB

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

Error: Failed to prepare transaction: target not found: libadwaita-git

Also of note, python37 failed to build by itself:

Looks like a different issue though. pgp signature failed to verify.

Warning: Building packages as root
Warning: Setting build directory to /var/cache/pamac
Preparing...
Cloning python37 build files...
Running as unit: run-u183.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 703ms
CPU time consumed: 79ms
Running as unit: run-u184.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 32ms
CPU time consumed: 32ms
Checking python37 dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  python37  3.7.11-1  (3.7.6-1)  AUR


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


Building python37...
Running as unit: run-u186.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: python37 3.7.11-1 (Sat 10 Jul 2021 05:35:47 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Python-3.7.11.tar.xz
  -> Found Python-3.7.11.tar.xz.asc
  -> Found dont-make-libpython-readonly.patch
  -> Found 0002-smaller-pgo-test-suite.patch
  -> Found 0003-enable-building-with-libmpdec.patch
==> Validating source files with sha512sums...
    Python-3.7.11.tar.xz ... Passed
    Python-3.7.11.tar.xz.asc ... Skipped
    dont-make-libpython-readonly.patch ... Passed
    0002-smaller-pgo-test-suite.patch ... Passed
    0003-enable-building-with-libmpdec.patch ... Passed
==> Verifying source file signatures with gpg...
    Python-3.7.11.tar.xz ... 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: 3.203s
CPU time consumed: 3.585s
Error: Failed to build python37

Hey,

was also looking for a solution today, had the same problem for over more than a month. And I found the solution!

I am using the software manager under KDE (GUI for pamac). I searched for libadwaita and there are three packages. Only adwaita-qt was installed, the other two not.

  1. Deinstall adwaita-qt
  2. Install libadwaita-git
  3. Install adwaita-qt again
  4. Reboot your pc
  5. Have fun and install all other applications without problems :wink:

PS: I run “sudo pacman-mirrors -f && sudo pacman -Syyu” and cleaned the cache before doing the 5 steps above. I don’t know if that helps, but if you encounter any errors, maybe do that before it.

I hope I could help you.

2 Likes

Choose libadwaita-git. As I said, the only package that requires libadwaita-shortwave is shortwave. It’s a custom version using a specific commit to work with shortwave.

See the latest comment on the python37 AUR page.