Failed to prepare Transaction - Removing electron26 breaks dependency

Went to do an update today (all previous updates were perfect) and received this error message.

-Removing electron26 breaks dependency ‘electron26’ required by caprine.

Can anyone assist in resolving this error so I can complete this update?

Bob

Welcome to the forum! :vulcan_salute:

Remove caprine and reinstall it after the update. It should pull in electron29 as a dependency. :point_down:

sudo pacman -R caprine && sudo pacman-mirrors -f && sudo pacman -Syu && pamac update --aur --devel && pamac build caprine

Be sure to let it finish and do not interrupt the update.

remove caprine as well as electron26
update using pacman
or using
pamac without AUR

and afterwards tend to installing caprine again

1 Like

This is peculiar because the caprine AUR pkgbuild never depended on electron26 but electron and later electron29

If you need to install an older Electron version from the AUR choose the -bin ones as building these from source isn’t very pleasant

1 Like

:no_entry: No need.

:white_check_mark: Indeed. Always update repo packages first, then deal with AUR packages after.

:information_source: Remember, The AUR is neither officially supported by Arch nor Manjaro. The user is responsible for what they install from the AUR.

…and electron26 will be an orphan package. Remove it.

Sure it did. At one point electron26 was the newest version and the electron package depended on it. :wink:

It’ll need to be rebuilt anyway, so removing it should allow for the removal of electron26, which something in the OP’s update attempt is trying to do but fails because of the dependency. :man_shrugging:

No, it will need to be updated. Since he has an older version of caprine that depended on electron26, when he updates his AUR packages after updating repo packages, the updated version will pull in electron29.

No, it’s not. :wink:

yes - update using pacman would have (should have) worked without removing anything AUR
electron.xyz or caprine

It was a fairly sure way to resolve the issue.
No?
Yes?

could have been suggested to be done in a slightly different way

… I don’t care … as long as it works and achieves the goal and is not completely wrong

Right. That’s what I was saying.

By the way, I did couple ninja edits. Sorry if there was any confusion.

It was in the repos earlier this year. You replied right before I made an edit. :stuck_out_tongue:

1 Like

I think that did it! Below is what I got at the end of the script running:
:: Starting full system upgrade…
:: Replace dbus-python with extra/python-dbus? [Y/n] y
resolving dependencies…
looking for conflicting packages…
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (75.1-1) breaks dependency ‘libicui18n.so=74-64’ required by electron26
:: installing icu (75.1-1) breaks dependency ‘libicuuc.so=74-64’ required by electron26
:: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavcodec.so=60-64’ required by electron26
:: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavcodec.so=60-64’ required by electron26
:: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavformat.so=60-64’ required by electron26
:: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavutil.so=58-64’ required by electron26
:: installing jsoncpp (1.9.6-3) breaks dependency ‘libjsoncpp.so=25-64’ required by electron26

After I rebooted, checked for updates and during install got this:

Update warning
Warning: installing icu (75.1-1) breaks dependency ‘libicui18n.so=74-64’ required by electron26
Add electron26 to remove
Warning: installing icu (75.1-1) breaks dependency ‘libicuuc.so=74-64’ required by electron26
Add electron26 to remove
Warning: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavcodec.so=60-64’ required by electron26
dd electron26 to remove
Warning: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavformat.so=60-64’ required by electron26
Add electron26 to remove
Warning: installing ffmpeg (2:7.0.2-2) breaks dependency ‘libavutil.so=58-64’ required by electron26
Add electron26 to remove
Warning: installing jsoncpp (1.9.6-3) breaks dependency ‘libjsoncpp.so=25-64’ required by electron26
Add electron26 to remove

pacman -R electron26