kopia / kopia

Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.
https://kopia.io
Apache License 2.0
8.07k stars 402 forks source link

dnf install kopia-ui 0.13.0-1 fails due to file conflicts with slack 4.32.122-0 #3054

Open burritts opened 1 year ago

burritts commented 1 year ago

Output from dnf install follows. It says files installed in folders like /usr/lib/.build-id/xx/someid conflict with an already installed slack package. I wonder if these files need to be installed at all - perhaps both kopia-ui and slack have packaged them in error? That's just a guess, I have no expertise in this area.

The install is from the yum repository setup according to: https://kopia.io/docs/installation/#linux-installation-using-rpm-redhat-centos-fedora, eg: baseurl=http://packages.kopia.io/rpm/stable/\$basearch/

sudo dnf install kopia kopia-ui
Last metadata expiration check: 0:57:06 ago on Fri 02 Jun 2023 12:12:50 PM.
resolving
Dependencies resolved.
======================================================================================================================================================
 Package                              Architecture                       Version                              Repository                         Size
======================================================================================================================================================
Installing:
 kopia                                x86_64                             0.13.0-1                             Kopia                              12 M
 kopia-ui                             x86_64                             0.13.0-1                             Kopia                              74 M

Transaction Summary
======================================================================================================================================================
Install  2 Packages

Total download size: 86 M
Installed size: 308 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kopia-0.13.0.x86_64.rpm                                                                                        586 kB/s |  12 MB     00:21    
(2/2): kopia-ui-0.13.0.x86_64.rpm                                                                                     823 kB/s |  74 MB     01:31    
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                 959 kB/s |  86 MB     01:31     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/.build-id/0d/26926182c322d82267af2501cc8b44df5fa139 from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/44/8a07f59b13491266431a3ae922b2975406231d from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/53/19d04906b8dc63f0d57ca901895daa22bc9e6f from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/71/e167daae4e18dbd6162a7293c04fc99e7ca1aa from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/a0/5fa5879372db74e11a96eab790863c25271949 from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/b7/fc1a44ebdfd56bdb264d9027d2b3de4ed20436 from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/d6/e4f7b4e0e9b3f8f6c1c4ac372e4c32e5afe5df from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
  file /usr/lib/.build-id/f8/d73cc14ed682ca59c2beeeac3ac79f59a3d016 from install of kopia-ui-0.13.0-1.x86_64 conflicts with file from package slack-4.32.122-0.1.el8.x86_64
`
OperKH commented 1 year ago

Have the same issue.

lupusA commented 1 year ago

Hi @burritts,

Is it solved with version 0.14.1?

Cheers

burritts commented 1 year ago

Yes, appears to be resolved by 0.14.1. dnf install completed without error, and kopia appears to work. I did very little testing, just ran the UI and kopia binary and verified the version was 0.14.1

lupusA commented 1 year ago

I will close it and the issue seems to be resolved.

Cheers,

jorgenman commented 1 year ago

I'm still seeing this issue:

~ took 5s ❯ sudo dnf upgrade
Last metadata expiration check: 2:16:23 ago on Wed 27 Sep 2023 07:04:45 AM MDT.
Dependencies resolved.
=================================================================================================================================================================================
 Package                                Architecture                            Version                                             Repository                              Size
=================================================================================================================================================================================
Upgrading:
 slack                                  x86_64                                  4.34.120-0.1.el8                                    slack                                   83 M

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

Total size: 83 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] slack-4.34.120-0.1.el8.x86_64.rpm: Already downloaded                                                                                                                 
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/.build-id/3a/3ac62ceeacc1b5a5e83c8ba27b39aeb7d644dd from install of slack-4.34.120-0.1.el8.x86_64 conflicts with file from package kopia-ui-0.14.1-1.x86_64

It sounds like it may be the same issue as https://github.com/ferdium/ferdium-app/issues/416:

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

...

lupusA commented 1 year ago

Reopen, as the issue still occurs.

Sebastiaan76 commented 6 months ago

+1. I'm seeing this as well.