blend-os / blendOS

A seamless blend of all Linux distributions.
GNU General Public License v3.0
772 stars 22 forks source link

[Bhatura V3] `Failed to commit transaction (conflicting files)` upon installing package via `system`-command #95

Closed Charging1948 closed 9 months ago

Charging1948 commented 10 months ago

I have been trying to install a few packages like shells and terminal emulators to my system directly. But when installing wezterm and applying the overlay, i cannot install any packages anymore, because of a conflicting files-error. I could of course remove the file (i guess), but then i would have to do the same every time i want to install a package directly to my system.

This problem is also not limited to the wezterm-package, happens with other packages as well. As long as they try to put files inside of the /etc or the /opt directories.

Is there any recommended way to prevent this from happening?

Steps to reproduce

  1. Install wezterm with sudo system install wezterm
  2. Reboot to apply the overlay
  3. Install any package with sudo system install [package]
  4. Error message

Error message of sudo system install zsh fish:

error: failed to commit transaction (conflicting files)
wezterm-shell-integration: /etc/profile.d/wezterm.sh exists in filesystem
Errors occurred, no packages were upgraded.

Container blendrw failed with error code 1.
>> e: error occurred during installation, abandoning changes

Full Output of sudo system install zsh fish:

>> i: attempting to acquire system lock
>> i: this operation will replace the current overlay on the next boot

Spawning container blendrw on /.blendrw.
Press Ctrl-] three times within 1s to kill container.
Host and machine ids are equal (95d0ea7260664d2e97387cc27f52b995): refusing to link journals
:: Synchronizing package databases...
 core is up to date
 extra is up to date
resolving dependencies...
looking for conflicting packages...

Packages (13) kitty-shell-integration-0.28.1-2  kitty-terminfo-0.28.1-2  librsync-1:2.3.4-1  ttf-roboto-2.138-4  wezterm-shell-integration-20230408.112425.69ae8472-2
              wezterm-terminfo-20230408.112425.69ae8472-2  xcb-util-image-0.4.1-2  xcb-util-keysyms-0.4.1-4  xcb-util-wm-0.4.2-1  fish-3.6.1-1  kitty-0.28.1-2
              wezterm-20230408.112425.69ae8472-2  zsh-5.9-3

Total Download Size:     4.67 MiB
Total Installed Size:  159.68 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 fish-3.6.1-1-x86_64                                                                     2.4 MiB  3.70 MiB/s 00:01 [--------------------------------------------------------------------] 100%
 zsh-5.9-3-x86_64                                                                        2.2 MiB  2.34 MiB/s 00:01 [--------------------------------------------------------------------] 100%
 Total (2/2)                                                                             4.7 MiB  4.76 MiB/s 00:01 [--------------------------------------------------------------------] 100%
(13/13) checking keys in keyring                                                                                   [--------------------------------------------------------------------] 100%
(13/13) checking package integrity                                                                                 [--------------------------------------------------------------------] 100%
(13/13) loading package files                                                                                      [--------------------------------------------------------------------] 100%
(13/13) checking for file conflicts                                                                                [--------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
wezterm-shell-integration: /etc/profile.d/wezterm.sh exists in filesystem
Errors occurred, no packages were upgraded.

Container blendrw failed with error code 1.
>> e: error occurred during installation, abandoning changes
Charging1948 commented 10 months ago

After removing the /etc/profile.d/wezterm.sh-file with sudo rm /etc/profile.d/wezterm.sh the command no longer fails. But as soon as the overlay has been applied again, i am getting the same error, when installing any package with the system-utility.

Ast3risk-ops commented 9 months ago

You might not be able to use wezterm, it seems it has some kind of shell or pacman hook that you need to disable.

Charging1948 commented 9 months ago

Ok, thank you! That explains the problem.