Cybersecurity
DevOps Cloud
IT Operations Cloud
Open Enterprise Server 2018 Support Pack 1 (OES 2018 SP1) Linux
Open Enterprise Server 2018 Support Pack 2 (OES 2018 SP2) Linux
While patching OES 2018 SP1 and OES 2018 SP2, the following error occurs:
“
File /usr/bin/gem
from install of
ruby2.1-2.1.9-19.3.2.x86_64 (SLES-mirror)
conflicts with file from package
rubygems-1.8.15-0.12.18.x86_64 (@System)
File conflicts happen when two packages attempt to install files with the same name but different contents. If you continue, conflicting files will be replaced losing the previous content.
“
Solution 1:
Please choose “Continue” to proceed installation of the patch when this conflict occurs, so that the rubygems-1.8.15-0.12.18 version of /usr/bin/gem gets replaced by the latest ruby2.1 version available.
Solution 2:
Before proceeding with patch, remove rubygems (rubygems-1.8.15-0.12.18) package using rpm -e rubygems-1.8.15-0.12.18.
The file conflict only occurs when patching OES 2018 SP1 and OES 2018 SP2 on servers where an older version of OES with rubygems has been upgraded to OES 2018 SP1 or SP2. The conflict occurs, because rubygems has not been removed during the upgrade to OES 2018 SP1 or SP2. The conflict does not occur on fresh OES 2018 SP1 or OES 2018 SP2 installations. On OES 2018 or later ruby2.1 supersedes rubygems.