FS#73975 - [bitwarden] Cannot update because of electron version conflict

Attached to Project: Community Packages
Opened by Aaron (Captain-Athelas) - Sunday, 27 February 2022, 15:22 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Monday, 28 February 2022, 20:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander Epaneshnikov (alex19EP)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

I wanted to do a full system update today (with Bitwarden already installed) and the following error appeared:

$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing electron (17.1.0-1) breaks dependency 'electron16' required by bitwarden

I don't use electron for any other application. Trying to remove it resulted the following, expected, error:

$ sudo pacman -Rsu electron
checking dependencies...
warning: removing electron from target list
warning: removing c-ares from target list
there is nothing to do

$ sudo pacman -Rs electron
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing electron breaks dependency 'electron16' required by bitwarden

I couldn't get this working except for removing and installing Bitwarden again (`sudo pacman -Rsu bitwarden` and `sudo pacman -Syu bitwarden`).
This task depends upon

Closed by  Alexander Epaneshnikov (alex19EP)
Monday, 28 February 2022, 20:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  bitwarden-1.31.3-2
Comment by Aaron (Captain-Athelas) - Sunday, 27 February 2022, 15:24 GMT
Additionally here is the uninstall log:

$ sudo pacman -Rsu bitwarden
checking dependencies...

Packages (4) c-ares-1.18.1-1 electron-16.0.8-2 libnss_nis-3.1-3 bitwarden-1.31.3-1

Total Removed Size: 202,16 MiB

:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/4) removing bitwarden [#####################################################################################] 100%
(2/4) removing libnss_nis [#####################################################################################] 100%
(3/4) removing electron [#####################################################################################] 100%
(4/4) removing c-ares [#####################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...

And the following install logs:

$ sudo pacman -Syu bitwarden
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) c-ares-1.18.1-1 electron16-16.0.10-1 libnss_nis-3.1-3 bitwarden-1.31.3-1

Total Download Size: 54,39 MiB
Total Installed Size: 202,18 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
electron16-16.0.10-1-x86_64 54,4 MiB 5,20 MiB/s 00:10 [#####################################################################################] 100%
(4/4) checking keys in keyring [#####################################################################################] 100%
(4/4) checking package integrity [#####################################################################################] 100%
(4/4) loading package files [#####################################################################################] 100%
(4/4) checking for file conflicts [#####################################################################################] 100%
(4/4) checking available disk space [#####################################################################################] 100%
:: Processing package changes...
(1/4) installing c-ares [#####################################################################################] 100%
(2/4) installing electron16 [#####################################################################################] 100%
Optional dependencies for electron16
kde-cli-tools: file deletion support (kioclient5)
libappindicator-gtk3: StatusNotifierItem support [installed]
pipewire: WebRTC desktop sharing under Wayland [installed]
trash-cli: file deletion support (trash-put) [installed]
xdg-utils: open URLs with desktop's default (xdg-email, xdg-open) [installed]
(3/4) installing libnss_nis [#####################################################################################] 100%
(4/4) installing bitwarden [#####################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
Comment by Doug Newgard (Scimmia) - Sunday, 27 February 2022, 15:32 GMT
This one sounds like a pacman bug. electron no longer provides electron16, but pacman doesn't look for something that does.
Comment by Sam (a-random-nerd) - Sunday, 27 February 2022, 17:28 GMT
I can confirm this.
Comment by zeroconf (zeroconf) - Sunday, 27 February 2022, 18:26 GMT
I also confirm it.

Loading...