Bug 1278196
| Summary: | dnf installs weak deps on update | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | nucleo <alekcejk> | ||||||
| Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> | ||||||
| Status: | CLOSED DEFERRED | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 24 | CC: | alekcejk, fedora, fweimer, jmracek, mluscon, packaging-team-maint, pnemade, rdieter, samuel-rhbugs, ville.skytta, vmukhame, vondruch | ||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2017-04-18 13:50:34 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: | |||||||||
| Attachments: |
|
||||||||
Can you attach the debugdata [1] (one for `dnf upgrade plasma-workspace --assumeno` and another for `dnf upgrade plasma-workspace --assumeno --setopt=install_weak_deps=0`, please? [1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#dependency-resolution-problem I will attach it with next plasma-workspace update. Created attachment 1093415 [details]
debugdata
# rpm -q libsolv hawkey dnf
libsolv-0.6.14-2.fc24.i686
hawkey-0.6.2-1.fc24.i686
dnf-1.1.3-1.fc24.noarch
# dnf upgrade plasma-workspace --assumeno --debugsolver
cachedir: /var/cache/dnf
Loaded plugins: needs-restarting, playground, config-manager, download, debuginfo-install, generate_completion_cache, noroot, protected_packages, copr, Query, reposync, builddep
DNF version: 1.1.3
repo: using cache for: rawhide
not found updateinfo for: Fedora - Rawhide - Developmental packages for the next Fedora release
repo: using cache for: adobe-linux-i386
not found deltainfo for: Adobe Systems Incorporated
not found updateinfo for: Adobe Systems Incorporated
repo: using cache for: russianfedora-free-rawhide
not found deltainfo for: Russian Fedora for Fedora Rawhide - Free
not found updateinfo for: Russian Fedora for Fedora Rawhide - Free
repo: using cache for: rpmfusion-free-rawhide
not found deltainfo for: RPM Fusion for Fedora Rawhide - Free
not found updateinfo for: RPM Fusion for Fedora Rawhide - Free
rawhide: using metadata from Thu Nov 12 09:12:34 2015.
adobe-linux-i386: using metadata from Tue Nov 3 21:05:52 2015.
russianfedora-free-rawhide: using metadata from Thu Nov 12 11:40:34 2015.
rpmfusion-free-rawhide: using metadata from Mon Jul 6 17:04:24 2015.
Last metadata expiration check performed 0:10:35 ago on Thu Nov 12 19:21:07 2015.
--> Starting dependency resolution
---> Package plasma-workspace-geolocation.i686 5.4.3-2.fc24 will be installed
---> Package kf5-networkmanager-qt.i686 5.16.0-1.fc24 will be installed
---> Package plasma-workspace-geolocation-libs.i686 5.4.3-2.fc24 will be installed
---> Package NetworkManager.i686 1:1.2.0-0.3.20151023gite01c175.fc24 will be installed
---> Package libndp.i686 1.5-2.fc23 will be installed
---> Package NetworkManager-libnm.i686 1:1.2.0-0.3.20151023gite01c175.fc24 will be installed
---> Package plasma-workspace.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace.i686 5.4.3-2.fc24 will be an upgrade
---> Package libkworkspace5.i686 5.4.3-1.fc24 will be upgraded
---> Package libkworkspace5.i686 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-common.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-common.i686 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-libs.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-libs.i686 5.4.3-2.fc24 will be an upgrade
---> Package sddm-breeze.noarch 5.4.3-1.fc24 will be upgraded
---> Package sddm-breeze.noarch 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-drkonqi.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-drkonqi.i686 5.4.3-2.fc24 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
=======================================================================================================
Package Arch Version Repository
Size
=======================================================================================================
Installing:
NetworkManager i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 2.4 M
NetworkManager-libnm i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 509 k
kf5-networkmanager-qt i686 5.16.0-1.fc24 rawhide 353 k
libndp i686 1.5-2.fc23 rawhide 35 k
plasma-workspace-geolocation i686 5.4.3-2.fc24 rawhide 59 k
plasma-workspace-geolocation-libs i686 5.4.3-2.fc24 rawhide 29 k
Upgrading:
libkworkspace5 i686 5.4.3-2.fc24 rawhide 89 k
plasma-workspace i686 5.4.3-2.fc24 rawhide 10 M
plasma-workspace-common i686 5.4.3-2.fc24 rawhide 29 k
plasma-workspace-drkonqi i686 5.4.3-2.fc24 rawhide 818 k
plasma-workspace-libs i686 5.4.3-2.fc24 rawhide 280 k
sddm-breeze noarch 5.4.3-2.fc24 rawhide 2.4 M
Transaction Summary
=======================================================================================================
Install 6 Packages
Upgrade 6 Packages
Total download size: 17 M
Operation aborted.
Created attachment 1093416 [details]
debugdata
# dnf upgrade plasma-workspace --assumeno --setopt=install_weak_deps=0 --debugsolver
cachedir: /var/cache/dnf
Loaded plugins: needs-restarting, noroot, playground, config-manager, protected_packages, reposync, download, generate_completion_cache, copr, Query, debuginfo-install, builddep
DNF version: 1.1.3
repo: using cache for: adobe-linux-i386
not found deltainfo for: Adobe Systems Incorporated
not found updateinfo for: Adobe Systems Incorporated
repo: using cache for: rpmfusion-free-rawhide
not found deltainfo for: RPM Fusion for Fedora Rawhide - Free
not found updateinfo for: RPM Fusion for Fedora Rawhide - Free
repo: using cache for: russianfedora-free-rawhide
not found deltainfo for: Russian Fedora for Fedora Rawhide - Free
not found updateinfo for: Russian Fedora for Fedora Rawhide - Free
repo: using cache for: rawhide
not found updateinfo for: Fedora - Rawhide - Developmental packages for the next Fedora release
adobe-linux-i386: using metadata from Tue Nov 3 21:05:52 2015.
rpmfusion-free-rawhide: using metadata from Mon Jul 6 17:04:24 2015.
russianfedora-free-rawhide: using metadata from Thu Nov 12 11:40:34 2015.
rawhide: using metadata from Thu Nov 12 09:12:34 2015.
Last metadata expiration check performed 0:23:02 ago on Thu Nov 12 19:21:07 2015.
--> Starting dependency resolution
---> Package plasma-workspace.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace.i686 5.4.3-2.fc24 will be an upgrade
---> Package libkworkspace5.i686 5.4.3-1.fc24 will be upgraded
---> Package libkworkspace5.i686 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-common.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-common.i686 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-libs.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-libs.i686 5.4.3-2.fc24 will be an upgrade
---> Package sddm-breeze.noarch 5.4.3-1.fc24 will be upgraded
---> Package sddm-breeze.noarch 5.4.3-2.fc24 will be an upgrade
---> Package plasma-workspace-drkonqi.i686 5.4.3-1.fc24 will be upgraded
---> Package plasma-workspace-drkonqi.i686 5.4.3-2.fc24 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
=======================================================================================================
Package Arch Version Repository
Size
=======================================================================================================
Upgrading:
libkworkspace5 i686 5.4.3-2.fc24 rawhide 89 k
plasma-workspace i686 5.4.3-2.fc24 rawhide 10 M
plasma-workspace-common i686 5.4.3-2.fc24 rawhide 29 k
plasma-workspace-drkonqi i686 5.4.3-2.fc24 rawhide 818 k
plasma-workspace-libs i686 5.4.3-2.fc24 rawhide 280 k
sddm-breeze noarch 5.4.3-2.fc24 rawhide 2.4 M
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
NetworkManager i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 2.4 M
NetworkManager-libnm i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 509 k
kf5-networkmanager-qt i686 5.16.0-1.fc24 rawhide 353 k
libndp i686 1.5-2.fc23 rawhide 35 k
plasma-workspace-geolocation i686 5.4.3-2.fc24 rawhide 59 k
plasma-workspace-geolocation-libs i686 5.4.3-2.fc24 rawhide 29 k
Transaction Summary
=======================================================================================================
Upgrade 6 Packages
Total download size: 14 M
Operation aborted.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Is it still reproducible? (In reply to Igor Gnatenko from comment #7) > Is it still reproducible? Yes, I just got it with a setup where I had gnutls-3.4.15-1.fc24.x86_64 and its trousers* weak dep NOT installed. # rpm -q dnf dnf-1.1.10-1.fc24.noarch # rpm -qa "trousers*" (nothing) Problem 1; debatable, I suppose): pulls in weak deps on upgrade: # dnf upgrade ======================================================================== Package Arch Version Repository Size ======================================================================== Installing: trousers x86_64 0.3.13-6.fc24 fedora 150 k trousers-lib x86_64 0.3.13-6.fc24 fedora 157 k Upgrading: ca-certificates noarch 2016.2.10-1.0.fc24 updates 425 k gnutls x86_64 3.4.16-1.fc24 updates 660 k Problem 2; clearly a wrong message about conflicts: # dnf --setopt install_weak_deps=False upgrade ======================================================================== Package Arch Version Repository Size ======================================================================== Upgrading: ca-certificates noarch 2016.2.10-1.0.fc24 updates 425 k gnutls x86_64 3.4.16-1.fc24 updates 660 k Skipping packages with conflicts: (add '--best --allowerasing' to command line to force their upgrade): trousers x86_64 0.3.13-6.fc24 fedora 150 k trousers-lib x86_64 0.3.13-6.fc24 fedora 157 k *** Bug 1346681 has been marked as a duplicate of this bug. *** The question why we install weak-deps for install command by default? We can do, that for upgrade command we will ignore install_weak_deps. I created a patch that should help: https://github.com/rpm-software-management/dnf/pull/774 The issue from Comment 8 is still valid (in commad "dnf --setopt install_weak_deps=False upgrade"), but it is reported in another bug report. I have tried to fix the issue, but during discussion it appears that proper solution will be too difficult to implement according to requirement of selective handling of weak-deps. Therefore I have to to close it as deferred, therefore in future we can reopen it when we will have a possibility to solve such a complex tasks. |
Description of problem: dnf installs weak deps of package when it updates. Version-Release number of selected component (if applicable): dnf-1.1.3-1.fc24 How reproducible: On every update. Steps to Reproduce: 1. uninstall weak dependency of some package 2. update this package 3. Actual results: After update weak dependencies again installed. Expected results: Weak dependencies should not be installed. Additional info: After uninstallation of NetworkManager and update plasma-workspace dnf tries to install it Size ============================================================================================================================================================= Installing: NetworkManager i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 2.4 M NetworkManager-libnm i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 509 k kf5-networkmanager-qt i686 5.15.0-1.fc24 rawhide 353 k libndp i686 1.5-2.fc23 rawhide 35 k plasma-workspace-geolocation i686 5.4.2-8.fc24 rawhide 59 k plasma-workspace-geolocation-libs i686 5.4.2-8.fc24 rawhide 28 k Upgrading: libkworkspace5 i686 5.4.2-8.fc24 rawhide 88 k plasma-workspace i686 5.4.2-8.fc24 rawhide 8.3 M plasma-workspace-common i686 5.4.2-8.fc24 rawhide 28 k plasma-workspace-drkonqi i686 5.4.2-8.fc24 rawhide 818 k plasma-workspace-libs i686 5.4.2-8.fc24 rawhide 279 k sddm-breeze noarch 5.4.2-8.fc24 rawhide 773 k Transaction Summary ============================================================================================================================================================= If install_weak_deps=false NetworkManager not installed with weird message about conflicts: Dependencies resolved. ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Upgrading: libkworkspace5 i686 5.4.2-8.fc24 rawhide 88 k plasma-workspace i686 5.4.2-8.fc24 rawhide 8.3 M plasma-workspace-common i686 5.4.2-8.fc24 rawhide 28 k plasma-workspace-drkonqi i686 5.4.2-8.fc24 rawhide 818 k plasma-workspace-libs i686 5.4.2-8.fc24 rawhide 279 k sddm-breeze noarch 5.4.2-8.fc24 rawhide 773 k Skipping packages with conflicts: (add '--best --allowerasing' to command line to force their upgrade): NetworkManager i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 2.4 M NetworkManager-libnm i686 1:1.2.0-0.3.20151023gite01c175.fc24 rawhide 509 k kf5-networkmanager-qt i686 5.15.0-1.fc24 rawhide 353 k libndp i686 1.5-2.fc23 rawhide 35 k plasma-workspace-geolocation i686 5.4.2-8.fc24 rawhide 59 k plasma-workspace-geolocation-libs i686 5.4.2-8.fc24 rawhide 28 k Transaction Summary =============================================================================================================================================================