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: failed to commit transaction (conflicting files) #1

Open
sp4d1n0 opened this issue Sep 2, 2021 · 0 comments
Open

error: failed to commit transaction (conflicting files) #1

sp4d1n0 opened this issue Sep 2, 2021 · 0 comments
Assignees
Labels
tips Good for newcomers

Comments

@sp4d1n0
Copy link
Owner

sp4d1n0 commented Sep 2, 2021

Sometimes, due to inconsistencies in the initial rootfs or in the packages selection during the migration process (especially because a WSL2 image do not need the same amount of packages of a live setup), it can happen to see the following error messages during install:

... checking for file conflicts                  [###########################] 100%
error: failed to commit transaction (conflicting files)
runit: /usr/bin/halt exists in filesystem (owned by systemd-sysvcompat)
runit: /usr/bin/poweroff exists in filesystem (owned by systemd-sysvcompat)
runit: /usr/bin/reboot exists in filesystem (owned by systemd-sysvcompat)
runit: /usr/bin/shutdown exists in filesystem (owned by systemd-sysvcompat)
base: /usr/bin/init exists in filesystem (owned by systemd-sysvcompat)
Errors occurred, no packages were upgraded.

It's quite simple to solve!

Just issue the following command should be enough:

rm /usr/bin/{halt,poweroff,reboot,shutdown,init}
@sp4d1n0 sp4d1n0 self-assigned this Sep 2, 2021
@sp4d1n0 sp4d1n0 added the tips Good for newcomers label Sep 2, 2021
@sp4d1n0 sp4d1n0 closed this as completed Sep 2, 2021
@sp4d1n0 sp4d1n0 reopened this Sep 2, 2021
@sp4d1n0 sp4d1n0 pinned this issue Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tips Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant