Red hat / Fedora / CentOS Yum Repo is Listed More Than Once

Q. Why does my yum command fail with an error that a repo is listed more than once under Fedora / RHEL / CentOS Linux? This error occurs when I type yum clean command

Loading “rhnplugin” plugin
Loading “security” plugin

Repository xen-repo is listed more than once in the configuration

How do I fix this problem?


A. The above error is caused by a known bug in version 0.5.3-6.el5_2.6 of the package yum-rhn-plugin. The bug is triggered when third party (non-RHN) repositories are configured with Yum.

The recommended workaround is to downgrade the yum-rhn-plugin package to a previous version. To do this, download the old version of the package from the Internet, and then run:
# rpm -Uvh --oldpackage yum-rhn-plugin-0.5.2-3.el5.noarch.rpm


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • vinod Aug 17, 2014 @ 17:32

    it is showing error

    [root@server rhn]# yum-rhn-plugin package.
    -bash: yum-rhn-plugin: command not found
    [root@server rhn]# yum install yum-rhn-plugin
    Loading "security" plugin
    Loading "installonlyn" plugin
    Loading "rhnplugin" plugin
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum-cli/yummain.py", line 85, in main
        base.getOptionsConfig(args)
      File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
        errorlevel=opts.errorlevel)
      File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 134, in doConfigSetup
        self.plugins.run('init')
      File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run
        func(conduitcls(self, self.base, conf, **kwargs))
      File "/usr/lib/yum-plugins/rhnplugin.py", line 76, in init_hook
        login_info = up2dateAuth.getLoginInfo()
      File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 139, in getLoginInfo
        login()
      File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 80, in login
        server = rhnserver.RhnServer()
      File "/usr/share/rhn/up2date_client/rhnserver.py", line 147, in __init__
        self._server = rpcServer.getServer()
      File "/usr/share/rhn/up2date_client/rpcServer.py", line 168, in getServer
        raise up2dateErrors.SSLCertificateFileNotFound(msg)
    up2date_client.up2dateErrors.SSLCertificateFileNotFound: ERROR: can not find RHNS CA file: /usr/share/rhn/RHNS-CORP-CA-CERT
    [root@server rhn]# rpm -Uvh --oldpackage yum-rhn-plugin-0.5.2-3.el5.noarch.rpm
    error: open of yum-rhn-plugin-0.5.2-3.el5.noarch.rpm failed: No such file or directory
    
  • bimlesh Sep 26, 2014 @ 11:49

    Just change the name of section inside the *.repo file. It is colliding with some other repo file.

    for example:
    [ xen-repo-1]
    [dependency- xen-repo-1]

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum