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

[Error] dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus) #1389

Open
xensurve opened this issue May 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xensurve
Copy link

xensurve commented May 11, 2024

SYSTEM : Arch
DE : Plasma
DISTROBOX : 1.7.2-1
IMAGE : archlinux:latest

when you use the below , error occurs when you do distrobox enter test, becuase its missing the --overwrite flag with pacman


distrobox create -i archlinux:latest --init --additional-packages "systemd" -n test

there is nothing to do
+ '[' '!' -e /usr/share/zoneinfo/UTC ']'
+ '[' -n ' systemd' ']'
+ pacman -S --needed --noconfirm systemd
resolving dependencies...
:: There are 2 providers available for dbus-units:
:: Repository core
1) dbus-broker-units  2) dbus-daemon-units

Enter a number (default=1):
looking for conflicting packages...

Package (4)             Old Version  New Version  Net Change

core/dbus-broker                     36-2           0.35 MiB
core/dbus-broker-units               36-2           0.00 MiB
core/systemd-libs       255.2-1      255.6-1       -0.06 MiB
core/systemd            255.2-1      255.6-1       -0.31 MiB

Total Installed Size:  34.01 MiB
Net Upgrade Size:      -0.02 MiB

:: Proceed with installation? [Y/n]
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus)
dbus-broker-units: /usr/lib/systemd/user/dbus.service exists in filesystem (owned by dbus)
@xensurve xensurve added the bug Something isn't working label May 11, 2024
@xensurve
Copy link
Author

to fix this the overwrite switch needs to be added


pacman -Syu --noconfirm --overwrite="*" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant