For some reason I’m unable to install or remove any packages. All I get is the target not found error.
In this particular case there seems to be some problem with libpdfium-nojs, and this error popped up when I tried to install yacreader after a previous uninstall a couple days ago. Now it happens for any package, whether it’s from the repository or AUR.
Edit1: I’m using the XFCE desktop and pamac.
Edit2: using the pamac build yacreader command in terminal yielded the same result.
You might need to update everything first. The AUR support for pamac was changed a bit.
If it also happens for official packages, your databases are outdated or missing.
The Add/Remove Software app fails the same way as the terminal command, and I’m given to understand that dependencies are automatically installed first anyway.
$ pamac build yacreader
Preparing...
Checking yacreader dependencies...
Checking libunarr dependencies...
Checking pdfium-binaries-v8 dependencies...
Checking pdfium-binaries dependencies...
Checking libpdfium-nojs dependencies...
Choose a provider for libpdfium:
1: libpdfium-nojs 4692.r1.41be7e25df-1 AUR
2: pdfium-binaries 4835-1 AUR
3: pdfium-binaries-v8 4835-1 AUR
Enter a number (default=1): 1
Resolving dependencies...
Checking inter-conflicts...
To install (2):
qt5-quickcontrols 5.15.2-1 (Required By: yacreader) extra 954.5 kB
qt5-graphicaleffects 5.15.2-1 (Required By: yacreader) extra 74.8 kB
To build (3):
libunarr 1.0.1-1 AUR
libpdfium-nojs 4692.r1.41be7e25df-1 AUR
yacreader 9.8.2-1 AUR
Total download size: 1.0 MB
Total installed size: 5.5 MB
Edit build files : [e]
Apply transaction ? [e/y/N] y
Error: Failed to prepare transaction: target not found: libpdfium-nojs
Note: I got a “404 Page Not Found” when I clicked “Git Clone URL:”
A couple of observations:
I got different results between yesterday and today. When I first tried pamac yesterday I got the same output as OP (pamac --version shows 10.3.0-4 - libpamac 11.2.0).
The difference between yay and pamac seems to be that pacmac looks for the exact name, while yay looks for packages that begin with the name. So yay recognized there was libunarr and libunarr-git (thus a prompt), and that only libpdfium-nojs exists, even though the build calls for libpdfium (just used it). I liked the pamac way of doing things.
I didn’t think I was taxing the AUR limit (I try to be careful), but I evidently did Or did I… yay came back with a “response decoding failed: invalid character” but pamac had no problem.