Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: RPM package conflict with other electron apps #3524

Open
curtisbelt opened this issue Sep 14, 2022 · 5 comments
Open

Bug: RPM package conflict with other electron apps #3524

curtisbelt opened this issue Sep 14, 2022 · 5 comments
Labels
bug desktop Desktop Application

Comments

@curtisbelt
Copy link

Steps To Reproduce

First, install insomnia-2022.5.1-1.x86_64 as this is a known conflict. Note this bug is related to Electron and is not specific to Insomnia. It's just an example app that I have confirmed causes the conflict.

sudo dnf install ./Insomnia.Core-2022.5.1.rpm 
sudo dnf install ./Bitwarden-2022.9.0-x86_64.rpm

Expected Result

Bitwarden should install/upgrade without an issue.

Actual Result

======================================================================================================================================================================================
 Package                                    Architecture                            Version                                       Repository                                     Size
======================================================================================================================================================================================
Upgrading:
 bitwarden                                  x86_64                                  2022.9.0-1                                    @commandline                                   62 M

Transaction Summary
======================================================================================================================================================================================
Upgrade  1 Package

Total size: 62 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/lib/.build-id/a2/562c52725bb7caa27cd0de814ec368b8c45e7f from install of bitwarden-2022.9.0-1.x86_64 conflicts with file from package insomnia-2022.5.1-1.x86_64

Screenshots or Videos

No response

Additional Context

This is the same issue as ferdium/ferdium-app#416. The issue author @UriMtzF did a wonderful job on research:

To prevent this from conflicting with other Electron based apps, it's necessary to omit all the symlinks, to achieve this, Electron-builder uses fpm to have an easier way to build linux apps.

The solution is to tell Electron-builder to have some flags on fpm while building the rpm to prevent creating those symlinks.

According to Electron-builder documentation and fpm documentation this option is --rpm-rpmbuild-define "_build_id_links none", this should be changed on the electron-builder.yml file at the root of the project

Please refer to the following links to find the proper way to do this:

Some sources:

Operating System

Linux

Operating System Version

Fedora 36 (this bug probably affects any rpm-based Linux distribution)

Installation method

Direct Download (from bitwarden.com)

Build Version

I'm on 2022.8.1 but the bug is when installing Bitwarden-2022.9.0-x86_64.rpm

@curtisbelt curtisbelt added bug desktop Desktop Application labels Sep 14, 2022
@tangowithfoxtrot
Copy link
Contributor

@curtisbelt, thanks for reporting this! I have reproduced this on my end, and will update the status of this in our internal tracking system.

@shreyas-segu
Copy link

Facing the exact same issue when installing Insomnia after Bitwarden

@curtisbelt
Copy link
Author

Looks like Slack is a conflict now as well.

Tried installing the latest bitwarden-2023.1.1-1.x86_64.

Error: Transaction test error:
  file /usr/lib/.build-id/0d/9fad3f21b1e381cc66b5efcae8f3910ae0edc1 from install of bitwarden-2023.1.1-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/76/9d0269491ca2313fcd15d63059bac67bd8b1b3 from install of bitwarden-2023.1.1-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/c2/dcac7cb6a727685d10d4161a0d14988f12a0fa from install of bitwarden-2023.1.1-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/cb/dc9db5fec0e6129bddcb0c282be98be4c6966e from install of bitwarden-2023.1.1-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64

In the meantime, I work around this by manually downloading the rpm file and install via rpm directly, with --force flag:

sudo rpm -iU --force ./Bitwarden-2023.1.1-x86_64.rpm

@djfjeff
Copy link

djfjeff commented Jan 27, 2023

I have the same issue on my end with Slack.

@acazan
Copy link

acazan commented Feb 18, 2023

Same issue with: Bitwarden-2023.2.0-x86_64.rpm

Error: Transaction test error:
file /usr/lib/.build-id/0d/9fad3f21b1e381cc66b5efcae8f3910ae0edc1 from install of bitwarden-2023.2.0-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
file /usr/lib/.build-id/76/9d0269491ca2313fcd15d63059bac67bd8b1b3 from install of bitwarden-2023.2.0-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
file /usr/lib/.build-id/c2/dcac7cb6a727685d10d4161a0d14988f12a0fa from install of bitwarden-2023.2.0-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
file /usr/lib/.build-id/cb/dc9db5fec0e6129bddcb0c282be98be4c6966e from install of bitwarden-2023.2.0-1.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug desktop Desktop Application
Projects
None yet
Development

No branches or pull requests

5 participants