Bug 1278196 - dnf installs weak deps on update
Summary: dnf installs weak deps on update
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1346681 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-04 22:18 UTC by nucleo
Modified: 2019-06-05 17:54 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-18 13:50:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
debugdata (4.92 MB, application/zip)
2015-11-12 17:32 UTC, nucleo
no flags Details
debugdata (4.92 MB, application/zip)
2015-11-12 17:35 UTC, nucleo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1437884 0 unspecified CLOSED [RFE] Selectively ignore weak dependency when recommended by specific package 2021-02-22 00:41:40 UTC

Internal Links: 1437884

Description nucleo 2015-11-04 22:18:10 UTC
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

=============================================================================================================================================================

Comment 1 Honza Silhan 2015-11-09 12:56:11 UTC
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

Comment 2 nucleo 2015-11-09 17:16:26 UTC
I will attach it with next plasma-workspace update.

Comment 3 nucleo 2015-11-12 17:32:43 UTC
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.

Comment 4 nucleo 2015-11-12 17:35:58 UTC
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.

Comment 5 Jan Kurik 2016-02-24 13:54:35 UTC
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

Comment 6 Fedora Admin XMLRPC Client 2016-07-08 09:31:15 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Igor Gnatenko 2016-07-21 13:25:04 UTC
Is it still reproducible?

Comment 8 Ville Skyttä 2016-10-12 09:27:19 UTC
(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

Comment 9 Igor Gnatenko 2016-10-31 15:05:53 UTC
*** Bug 1346681 has been marked as a duplicate of this bug. ***

Comment 10 Jaroslav Mracek 2017-03-30 12:16:47 UTC
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.

Comment 11 Jaroslav Mracek 2017-03-30 14:14:42 UTC
I created a patch that should help: https://github.com/rpm-software-management/dnf/pull/774

Comment 12 Jaroslav Mracek 2017-03-30 14:16:59 UTC
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.

Comment 13 Jaroslav Mracek 2017-04-18 13:50:34 UTC
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.


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