Hi, I’m working on a yum repository with CentOS 7 and encountered interoperation issue with some packages as below. My setup contain one Yum(hosted) repository, and i upload just only one package. However, when a CentOS 7 client point to this repository to start “yum install”, that package appear have conflicts even the required version has been met already. Afterwards, I put the “conflicted” rpm file on local disk and install it manually using yum. No conflict was found at all.
[root@localhost test]# yum clean all
Cleaning repos: Remote-Yum-Test
Other repos take up 230 M of disk space (use --verbose for details)
[root@localhost test]# yum install bash-completion
Remote-Yum-Test | 1.4 kB 00:00:00
Remote-Yum-Test/primary | 814 B 00:00:00
Remote-Yum-Test 1/1
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:2.1-6.el7 will be installed
--> Processing Conflict: util-linux-2.23.2-59.el7.x86_64 conflicts bash-completion < 1:2.1-1
--> Finished Dependency Resolution
**Error: util-linux conflicts with 1:bash-completion-2.1-6.el7.noarch**
** You could try using --skip-broken to work around the problem**
** You could try running: rpm -Va --nofiles --nodigest**
[root@localhost test]# yum install /packages/test/bash-completion-2.1-6.el7.noarch.rpm
Examining /packages/test/bash-completion-2.1-6.el7.noarch.rpm: 1:bash-completion-2.1-6.el7.noarch
Marking /packages/test/bash-completion-2.1-6.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:2.1-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
bash-completion noarch 1:2.1-6.el7 /bash-completion-2.1-6.el7.noarch 259 k
Transaction Summary
===================================================================================================================================================================================
Install 1 Package
Total size: 259 k
Installed size: 259 k
Is this ok [y/d/N]:
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2019-02-01.22-47.07MHjr.yumtx
[root@localhost test]#
I’m wondering if the architecture has some how been listed wrong inside the metadata in NXRM. Could you paste the xml block for bash-completion from primary.xml which you can browse to in NXRM?
The code that builds the metadata inside NXRM is similar to the createrepo tool so another thing to try would be to manually setup a local Yum repository using the createrepo tool with just that one RPM to see if you get the same issue. You could also then compare the metadata from that to the metadata that NXRM is generating to see if there is a difference.
Hmm I’m honestly not sure why the direct install is working but it doesn’t look like an NXRM3 issue to me because the metadata is effectively the same.
To investigate further you could try pointing your yum configuration to your local repository by setting configuration similar to
Where baseurl is the location of your local repository and then run “yum install bash-completion”. If that works then there must be something different about the NXRM metadata that I’m not seeing. If it fails then it suggests that installing the RPM directly has a different behaviour.
I tried the same way you are mentioned, the local repo appear no problem for installing that rpm. Further tested by uploading the local repomd.xml+gz metadata to the NXRM yum repository/repodata to replace the NXRM one. yum install will be successful. Btw, after few mins, the repomd on NXRM will be regenerated and fail again. At the moment i just workaround to setup as RAW repository instead of Yum.
Could you file a bug at https://issues.sonatype.org and include a support zip and a copy of the RPM that you are having trouble with and a copy of all metadata files from your NXRM repository.
did you fix this problem? i have a similar problem in nexus host,(version is 3.31.1) that nexus can not parse the /etc/crypto-policies/back-ends/krb5.config of crypto-policies.rpm, krb5-libs depend on this file that can not be installed