Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1774617

Summary: mpv reported as package to be installed and skipped at the same time
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: dnfAssignee: Pavla Kratochvilova <pkratoch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.2.21-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-01 04:04:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vít Ondruch 2019-11-20 14:51:59 UTC
Description of problem:

This is very confusing output:

~~~
$ sudo dnf update -x kernel\* -x libtomcrypt -x python3-paste 
Last metadata expiration check: 0:09:38 ago on Wed Nov 20 15:36:43 2019.
Dependencies resolved.

 Problem 1: package mpv-0.30.0-1.fc32.x86_64 requires libdvdread.so.4()(64bit), but none of the providers can be installed
  - cannot install both libdvdread-6.0.2-2.fc32.x86_64 and libdvdread-6.0.1-2.fc31.x86_64
  - cannot install the best update candidate for package mpv-0.29.1-18.20191011.gita85fa2d.fc32.x86_64
  - cannot install the best update candidate for package libdvdread-6.0.1-2.fc31.x86_64
 Problem 2: problem with installed package mpv-0.29.1-18.20191011.gita85fa2d.fc32.x86_64
  - package mpv-0.29.1-18.20191011.gita85fa2d.fc32.x86_64 requires libdvdread.so.4()(64bit), but none of the providers can be installed
  - package mpv-0.30.0-1.fc32.x86_64 requires libdvdread.so.4()(64bit), but none of the providers can be installed
  - cannot install both libdvdread-6.0.2-2.fc32.x86_64 and libdvdread-6.0.1-2.fc31.x86_64
  - package gnome-disk-utility-3.34.0-2.fc32.x86_64 requires libdvdread.so.7()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package gnome-disk-utility-3.34.0-1.fc32.x86_64
================================================================================
 Package                           Arch   Version                 Repo     Size
================================================================================
Upgrading:

... snip ...

 mpv                               x86_64 0.30.0-1.fc32           rpmfusion-free-rawhide
                                                                          1.3 M

... snip ...

Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 libdvdread                        x86_64 6.0.2-2.fc32            rawhide  70 k
Skipping packages with broken dependencies:
 gnome-disk-utility                x86_64 3.34.0-2.fc32           rawhide 1.1 M
 mpv                               x86_64 0.30.0-1.fc32           rpmfusion-free-rawhide
                                                                          1.3 M

... snip ...
~~~

I wonder how it is possible that 'mpv' is reported to be updated and at the same time reported as being skipped due to broken dependencies. What will be the result?

It is probably updatable:

~~~
$ LC_ALL=C.UTF-8 sudo dnf update -x kernel\* -x libtomcrypt -x python3-paste mpv
Last metadata expiration check: 0:13:00 ago on Wed Nov 20 15:36:43 2019.
Dependencies resolved.
================================================================================
 Package   Architecture Version              Repository                    Size
================================================================================
Upgrading:
 mpv       x86_64       0.30.0-1.fc32        rpmfusion-free-rawhide       1.3 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 1.3 M
Is this ok [y/N]: 
~~~


Version-Release number of selected component (if applicable):


How reproducible:
$ rpm -q dnf libsolv
dnf-4.2.15-2.fc32.noarch
libsolv-0.7.8-1.fc32.x86_64

Steps to Reproduce:
1.
2.
3.

Actual results:
It is not clear if mpv is going to be updated or not.

Expected results:
It is clear if mpv is going to be udpated or not.


Additional info:
$ rpm -q libdvdread mpv
libdvdread-6.0.1-2.fc31.x86_64
mpv-0.29.1-18.20191011.gita85fa2d.fc32.x86_64

Comment 1 Pavla Kratochvilova 2020-01-29 12:27:58 UTC
The package is incorrectly reported as skipped (both in the transaction table and in the post-transaction summary). The dependency problems reported before the transaction table are probably expected, since these should be problems in installing the best candidates before falling back to non-best ones.

PR: https://github.com/rpm-software-management/dnf/pull/1581
Test: https://github.com/rpm-software-management/ci-dnf-stack/pull/778

Comment 2 Ben Cotton 2020-02-11 17:23:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 3 Fedora Update System 2020-04-09 10:56:43 UTC
FEDORA-2020-68aa5586ed has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-68aa5586ed

Comment 4 Fedora Update System 2020-04-09 18:40:13 UTC
FEDORA-2020-68aa5586ed has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-68aa5586ed`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-68aa5586ed

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-05-01 04:04:38 UTC
FEDORA-2020-68aa5586ed has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.