Bug 1178248 - [depsolve] DNF should provide more useful error messages when there is a depsolving issue
Summary: [depsolve] DNF should provide more useful error messages when there is a deps...
Keywords:
Status: CLOSED DUPLICATE of bug 1148627
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-03 07:25 UTC by Hedayat Vatankhah
Modified: 2015-01-13 22:48 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 22:48:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Hedayat Vatankhah 2015-01-03 07:25:02 UTC
Description of problem:
I have akmod-nvidia installed, and I'd like to try to install akmod-nvidia-304xx pacakge. See what happens:

-------------------------------------------------
1) DNF normal output

[root@hedayat plugins]# dnf install akmod-nvidia-304xx
Error: package kmod-nvidia-3.17.7-300.fc21.x86_64-1:331.113-1.fc21.x86_64 requires nvidia-kmod-common >= 1:331.113, but none of the providers can be installed

-------------------------------------------------
2) DNF verbose output (doesn't add anything to the error message!)

[root@hedayat plugins]# dnf -v install akmod-nvidia-304xx
cachedir: /var/cache/dnf/x86_64/21
Loaded plugins: needs-restarting, kickstart, generate_completion_cache, reposync, protected_packages, copr, playground, builddep, download, debuginfo-install, Query, noroot
DNF version: 0.6.3
repo: using cache for: _local
not found deltainfo for: Automatic local repo. (manged by the "local" yum plugin).
not found updateinfo for: Automatic local repo. (manged by the "local" yum plugin).
repo: using cache for: fedora
not found deltainfo for: Fedora 21 - x86_64
not found updateinfo for: Fedora 21 - x86_64
repo: using cache for: fedora-yum-fast-downloader
not found deltainfo for: A fast downloader plugin for yum
not found updateinfo for: A fast downloader plugin for yum
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 21 - Free - Updates
not found updateinfo for: RPM Fusion for Fedora 21 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 21 - Nonfree - Updates
not found updateinfo for: RPM Fusion for Fedora 21 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 21 - Free
not found updateinfo for: RPM Fusion for Fedora 21 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 21 - Nonfree
not found updateinfo for: RPM Fusion for Fedora 21 - Nonfree
--> Starting dependency resolution
--> Finished dependency resolution
Error: package kmod-nvidia-3.17.7-300.fc21.x86_64-1:331.113-1.fc21.x86_64 requires nvidia-kmod-common >= 1:331.113, but none of the providers can be installed

-------------------------------------------------
3) Yum output (the useful error output DNF should also provide):
[root@hedayat plugins]# yum install akmod-nvidia-304xx
Loaded plugins: langpacks, local, yum-fast-downloader
Resolving Dependencies
--> Running transaction check
---> Package akmod-nvidia-304xx.x86_64 0:304.125-1.fc21.1 will be installed
--> Processing Dependency: nvidia-304xx-kmod-common >= 304.125 for package: akmod-nvidia-304xx-304.125-1.fc21.1.x86_64
--> Running transaction check
---> Package xorg-x11-drv-nvidia-304xx.x86_64 0:304.125-1.fc21 will be installed
--> Processing Dependency: xorg-x11-drv-nvidia-304xx-libs(x86-64) = 304.125-1.fc21 for package: xorg-x11-drv-nvidia-304xx-304.125-1.fc21.x86_64
--> Running transaction check
---> Package xorg-x11-drv-nvidia-304xx-libs.x86_64 0:304.125-1.fc21 will be installed
--> Processing Conflict: 1:xorg-x11-drv-nvidia-331.113-1.fc20.x86_64 conflicts xorg-x11-drv-nvidia-304xx
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package xorg-x11-drv-nvidia.x86_64 1:331.113-1.fc20 will be updated
--> Processing Dependency: xorg-x11-drv-nvidia = 1:331.113-1.fc20 for package: 1:xorg-x11-drv-nvidia-libs-331.113-1.fc20.i686
--> Processing Dependency: xorg-x11-drv-nvidia = 1:331.113-1.fc20 for package: 1:xorg-x11-drv-nvidia-libs-331.113-1.fc20.x86_64
---> Package xorg-x11-drv-nvidia.x86_64 1:343.36-1.fc21 will be an update
--> Processing Dependency: nvidia-kmod >= 1:343.36 for package: 1:xorg-x11-drv-nvidia-343.36-1.fc21.x86_64
--> Running transaction check
---> Package akmod-nvidia.x86_64 1:331.113-1.fc20 will be updated
---> Package akmod-nvidia.x86_64 1:343.36-1.fc21.1 will be an update
--> Processing Dependency: xorg-x11-drv-nvidia-kmodsrc >= 1:343.36 for package: 1:akmod-nvidia-343.36-1.fc21.1.x86_64
---> Package xorg-x11-drv-nvidia-libs.i686 1:331.113-1.fc20 will be updated
---> Package xorg-x11-drv-nvidia-libs.x86_64 1:331.113-1.fc20 will be updated
---> Package xorg-x11-drv-nvidia-libs.i686 1:343.36-1.fc21 will be an update
---> Package xorg-x11-drv-nvidia-libs.x86_64 1:343.36-1.fc21 will be an update
--> Running transaction check
---> Package xorg-x11-drv-nvidia-kmodsrc.x86_64 1:343.36-1.fc21 will be installed
--> Processing Conflict: 1:xorg-x11-drv-nvidia-343.36-1.fc21.x86_64 conflicts xorg-x11-drv-nvidia-304xx
--> Finished Dependency Resolution
Error: xorg-x11-drv-nvidia conflicts with xorg-x11-drv-nvidia-304xx-304.125-1.fc21.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
-------------------------------------------------

The most important part of Yum output is this line, which clearly shows what is the problem:

Error: xorg-x11-drv-nvidia conflicts with xorg-x11-drv-nvidia-304xx-304.125-1.fc21.x86_64

DNF error message is completely useless. There should be no such vague error messages in DNF output. Yum output helps user to fix the problem. 

Also, DNF verbose output is surprisingly outputting lots of nearly useless output, but doesn't tell anything about depsolving process! I was expecting an output similar to yum's when verbose output is selected.

Version-Release number of selected component (if applicable):
dnf-0.6.3-2.fc21.noarch

How reproducible:
100%

Comment 1 Honza Silhan 2015-01-13 22:48:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.