Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#78805 - [code] installing electron (25.1.1-2) breaks dependency 'electron22' required by code
Attached to Project:
Arch Linux
Opened by Florian Stascheck (levu) - Friday, 16 June 2023, 08:21 GMT
Last edited by Caleb Maclennan (alerque) - Friday, 16 June 2023, 12:51 GMT
Opened by Florian Stascheck (levu) - Friday, 16 June 2023, 08:21 GMT
Last edited by Caleb Maclennan (alerque) - Friday, 16 June 2023, 12:51 GMT
|
DetailsDescription:
When I try to run `pacman -Syu`, I get the error message "installing electron (25.1.1-2) breaks dependency 'electron22' required by code". Additional info: * Current code version: 1.79.1-1 * Current electron version: 22.3.12-1 * Version of electron it tries to install: 25.1.1-2 |
This task depends upon
However, "code" does seem to install fine from a fresh start. This may be a workaround i.e. remove code, electron, etc. Reinstall. But obviously it would be better if it "just worked".
10:51 alerque | gromit: Being discussed in TU right now. This has been the status-quo upgrade breakage for a long time with electron, we're discussing ways to fix it. I'm working on a demo to verify or disprove the suggestion(s) for changing it.
10:51 | In the mean time manually install electron22, then Syu as usual.
This! Thanks guys.
$ sudo pacman -S electron22
resolving dependencies...
looking for conflicting packages...
:: electron22 and electron are in conflict. Remove electron? [y/N] y
Packages (2) electron-22.3.13-1 [removal] electron22-22.3.13-2
$ sudo pacman --remove --nodeps --nodeps electron
$ sudo pacman --sync --asdeps electron22
https://bbs.archlinux.org/viewtopic.php?id=278618
This issue happens when the specified electron dependency ("electron22" in code's current version) is an alias to "electron" (as in "electron" provides "electron22") but later on "electron" is upgraded to a new major version and a new concrete package "electron22" is added to the repos.
I am not aware of a way to avoid this issue other than changing how electron itself is packaged.
I guess upgrading electron should be done with a rebuild of all its dependents in the future.
In the mean time we've pkgrel bumped all the dependencies so you don't have to manually install electron22. We've also switched `electron` to be a meta package. This will resolve the issue the next time around for Electron updates, at the expense of a side effect: as apps get updated and eventually nothing depends on old versions of Electron they will end up as orphans or you system. The status quo was having to manually install then to satisfy deps (as in this bug report) AND remove them later when eventually unused. Now just the later issue remains, just slightly expanded from the cases where it will need manual installation.
Eventually when pacman handles this properly we'll switch to virtual provides with a runtime level.