Bug 2365231

Summary: dnf-automatic breaks dnf5
Product: [Fedora] Fedora Reporter: Frank Büttner <bugzilla>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 41CC: daniel.mach, jmracek, jrohel, mblaha, packaging-team-maint, pkratoch, ppisar, rpm-software-management
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-09 10:50:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Büttner 2025-05-09 06:08:22 UTC
When dnf-automatic are installed, dnf are broken.

Reproducible: Always

Steps to Reproduce:
1. dnf install dnf-automatic
2. dnf update

Actual Results:
Problem 2: package dnf5-plugin-automatic-5.2.13.1-1.fc41.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed
  - installed package libcurl-minimal-8.9.1-3.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-3.fc41.x86_64 from updates
  - installed package libcurl-minimal-8.9.1-3.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora
  - cannot install the best update candidate for package libcurl-minimal-8.9.1-3.fc41.x86_64
  - cannot install the best update candidate for package dnf-automatic-4.21.1-1.fc41.noarch
Problem 4: installed package curl-8.9.1-3.fc41.x86_64 requires libcurl(x86-64) >= 8.9.1-3.fc41, but none of the providers can be installed
  - installed package libcurl-minimal-8.9.1-3.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora
  - package libcurl-minimal-8.9.1-3.fc41.x86_64 from updates conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora
  - package dnf5-plugin-automatic-5.2.13.1-1.fc41.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed
  - problem with installed package
  - installed package libcurl-minimal-8.9.1-3.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-3.fc41.x86_64 from updates
  - package libcurl-minimal-8.9.1-3.fc41.x86_64 from updates conflicts with libcurl(x86-64) provided by libcurl-8.9.1-3.fc41.x86_64 from updates
  - package libcurl-minimal-8.9.1-2.fc41.x86_64 from fedora conflicts with libcurl(x86-64) provided by libcurl-8.9.1-3.fc41.x86_64 from updates
  - problem with installed package
  - installed package dnf-automatic-4.21.1-1.fc41.noarch requires python3-dnf = 4.21.1-1.fc41, but none of the providers can be installed
  - package dnf-automatic-4.21.1-1.fc41.noarch from fedora requires python3-dnf = 4.21.1-1.fc41, but none of the providers can be installed
  - package dnf5-plugin-automatic-5.2.6.2-1.fc41.x86_64 from fedora requires dnf5(x86-64) = 5.2.6.2-1.fc41, but none of the providers can be installed
  - cannot install both python3-dnf-4.23.0-1.fc41.noarch from updates and python3-dnf-4.21.1-1.fc41.noarch from @System
  - cannot install both python3-dnf-4.21.1-1.fc41.noarch from fedora and python3-dnf-4.23.0-1.fc41.noarch from updates
  - cannot install both dnf5-5.2.6.2-1.fc41.x86_64 from fedora and dnf5-5.2.13.1-1.fc41.x86_64 from @System
  - cannot install the best update candidate for package python3-dnf-4.21.1-1.fc41.noarch
  - cannot install the best update candidate for package dnf5-5.2.13.1-1.fc41.x86_64
  - cannot install the best update candidate for package curl-8.9.1-3.fc41.x86_64


Expected Results:
working dnf

Comment 1 Pavla Kratochvilova 2025-05-09 10:50:32 UTC
Hi, it seems you have libcurl-minimal installed, but dnf5-plugin-automatic requires libcurl-full, which is provided only by libcurl, which conflicts with libcurl-minimal. When you installed dnf-automatic, you likely installed the obsoleted dnf-automatic (for dnf4), but not the dnf5-plugin-automatic. And now during upgrade, dnf correctly complains that it cannot replace the obsoleted package (because of the libcurl conflicts).

To fix this, you can run:
1. dnf swap libcurl-minimal libcurl
2. dnf upgrade

Closing this as there is no bug in dnf.

Comment 2 Petr Pisar 2025-05-09 11:22:05 UTC

*** This bug has been marked as a duplicate of bug 2322918 ***