A
A
akimdi2021-04-11 23:52:18
linux
akimdi, 2021-04-11 23:52:18

What to do if it gives an error installing packages in Archlinux?

I wanted to install Archlinux on a new computer. I installed a minimal system without X and already wanted to install additional packages for work, but this error pops up

error: failed to commit transaction (conflicting files)
/usr/share/man/man5/gemfile.5.gz exists in both 'ruby' and 'ruby-bundler'
Errors occurred, no packages were upgraded.


I install these packages , but ruby ​​is not there at all (apparently in dependencies they are somehow pumped up, I don’t know)

by googling, I found a ruby-bundler file conflict with ruby ​​package bug in the description for the bug, they suggest deleting this file for a temporary solution.

I tried to do this, but as you can see in the screenshot, such a file does not exist. Obviously I do not understand something, please help me to understand the situation.

h29sR.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2021-04-12
@akimdi

I tried to do this, but as you can see in the screenshot, such a file does not exist. Obviously I do not understand something, please help me to understand the situation.

naturally, the /usr/share/man/man5/gemfile.5.gz file does not exist for you, since the ruby ​​and ruby-bundler packages to which this file belongs have not yet been installed, and the conflict was detected before they were installed at the stage of checking dependencies
. here in the ruby-bundler package (it seems that the problem has not been fixed yet)
just add the --overwrite option during installation with the file that needs to be overwritten in case of a conflict "/usr/share/man/man5/gemfile.5.gz"
as an example:
$ sudo pacman -S --overwrite "/usr/share/man/man5/gemfile.5.gz" ruby-bundler

or how do you put it there
$ sudo pacman -S --overwrite "/usr/share/man/man5/gemfile.5.gz" СПИСОК_ПАКЕТОВ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question