Updating fails with "failed to prepare transaction" with unchecked package update when an "Upgrade" button is unchecked
To reproduce:
- View the "Updates" tab while more than 1 update is available.
- Uncheck one of the packages. By "uncheck", I mean to click the "Upgrade" button until the checkmark icon is absent.
- Click "Apply".
Current behavior:
Updating fails with "failed to prepare transaction" with unchecked package update when an update is unchecked. The rationale Pamac gives is that the unchecked package as a target was not found. Namely, it says "target not found: [package name]". This makes no sense, since the unchecked package should have been ignored.
Expected behavior:
Updating is expected to proceed normally, with the unchecked package not upgraded.
Additional information:
When this was discovered, the unchecked package was not a dependency for any other package, and not upgrading it did not prevent other packages from updating. How I know this is that a workaround by using yay -Syyu
instead and ignoring the same package there worked correctly without failing to prepare the transaction.
Also, when this was discovered, the package "Upgrade" button that was unchecked was wine-staging-git
and I unchecked it because I didn't have time to wait 25 minutes for it to be built at that time. I wanted to build everything else and build wine-staging-git
later.
Also, this has happened to me with multiple different packages since it was discovered. It was not only wine-staging-git
.