pamac-manager: "target not found" when trying to install optional AUR dependency
Pamac --version
Pamac 10.4.3-1 - libpamac 11.4.1-1
Variant in use
GUI (pamac-manager
)
Distribution
Manjaro
Desktop environment
KDE/Plasma
What's not working
Error when trying to install optional AUR dependency.
How to reproduce?
Preparations:
- Make sure you have an up-to-date system.
- Install the Canon drivers for CUPS: cnrdrvcups-lb (from AUR)
- cnrdrvcups-lb-bin may also trigger this bug, but I haven't tested. (I wanted to get a sheet of paper printed, I didn't want to test different scenarios.)
- After that is finished, feel free to close
pamac-manager
, configure the printer, wait some days, whatever. (Well, in practice, just close thepamac-manager
.) - Launch
pamac-manager
. - Search for
cnrdrvcups-lb
. - Click on it to open the details page.
- Click on the Dependencies tab.
- Observe it lists two packages as optional dependencies:
libjbig-shared
(from AUR) andlibjpeg6-turbo
(from main repositories). If you followed the steps until now, these packages are not installed yet, and you will see little down-arrow buttons besides them.
How to reproduce:
- Select the first package. Or select the second package. Or select both together.
- It may be worth trying to reproduce this bug in these three scenarios.
- Now, the selected package(s) are marked for installation. (And you can even see that at the bottom status bar, and also at the "Pending" section from the main navigation.)
- Click Apply.
- Type your password if requested.
- ERROR: a window shows up with the unhelpful message "target not found".
More information (optional)
It seems that if you navigate to the specific package page and try to install/build it from there, it works fine. (But it also marks as manually installed.) The bug happens if you mark them for installation from the optional dependencies.
It took me quite some debugging time to figure out why printing wasn't working, and then even more time to figure out why I couldn't install the dependencies that seemed to fix the issue. So I'm posting this bug report hoping people can reproduce the issue and can find the bug with pamac(-manager).