The leapp preupgrade fails with error: file XXX from install of python2-idna-XXX.noarch conflicts with file from package python-idna-YYY.el7.noarch

Solution Verified - Updated -

Issue

  • The leapp preupgrade fails with error: file XXX from install of python2-idna-XXX.noarch conflicts with file from package python-idna-YYY.el7.noarch

    Risk Factor: high (error)
    Title: DNF execution failed with non zero exit code.
    Summary: {"hint": "If there was a problem reaching remote content (see stderr output) and proxy is configured in the YUM/DNF configuration file, the proxy configuration is likely causing this error. Make sure the proxy is properly configured in /etc/dnf/dnf.conf. It's als
    o possible the proxy settings in the DNF configuration file are incompatible with the target system. A compatible configuration can be placed in /etc/leapp/files/dnf.conf which, if present, it will be used during some parts of the upgrade instead of original /etc/dnf/dnf.
    conf. In such case the configuration will also be applied to the target system. Note that /etc/dnf/dnf.conf needs to be still configured correctly for your current system to pass the early phases of the upgrade process.", "STDERR": "Failed to create directory /var/lib/lea
    pp/el8userspace//sys/fs/selinux: Read-only file system
    Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
    Warning: Package marked by Leapp to install not found in repositories metadata: uom-lib-javadoc si-units-javadoc pcp-parfait-agent unit-api-javadoc parfait-javadoc uom-systems-javadoc uom-se-javadoc log4j12 parfait-examples
    Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp-upgrade-el7toel8 leapp python2-leapp
    RPM: warning: Generating 6 missing index(es), please wait...
    Error: Transaction test error:
    file /usr/lib/python2.7/site-packages/idna/__init__.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna
    -2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/__init__.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/codec.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/codec.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/compat.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/compat.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/core.py from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/core.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/core.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/idnadata.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/idnadata.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/intranges.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/intranges.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/uts46data.pyc from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    file /usr/lib/python2.7/site-packages/idna/uts46data.pyo from install of python2-idna-2.5-7.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content