Bug 1295559 - dnf remove deletes wrong packages due to dependencies
Summary: dnf remove deletes wrong packages due to dependencies
Keywords:
Status: CLOSED DUPLICATE of bug 1259865
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-04 20:55 UTC by Christian Ziemski
Modified: 2016-02-10 16:21 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-10 16:21:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
debugging info from "dnf remove blinken --debugsolver" (2.08 MB, application/zip)
2016-01-11 14:42 UTC, Christian Ziemski
no flags Details
/var/lib/dnf/yumdb/ (738.96 KB, application/x-gzip)
2016-01-19 19:13 UTC, Christian Ziemski
no flags Details
/var/lib/yum/yumdb/ (533.36 KB, application/x-gzip)
2016-01-19 19:14 UTC, Christian Ziemski
no flags Details

Description Christian Ziemski 2016-01-04 20:55:45 UTC
Description of problem:

Trying out some software packages (means: install - try - remove) led to a strange problem with dnf (dnf-0:1.1.5-1.fc23.noarch).


dnf remove deleted wrong packages due to faulty dependencies (I think).

Here the recipe (shortened a bit):

Install blinken (a small game):

[root@ln1 ~]# dnf install blinken
Installed:
  blinken.x86_64 15.04.2-2.fc23                  
  sj-fonts-common.noarch 2.0.2-13.fc23                  
  sj-stevehand-fonts.noarch 2.0.2-13.fc23

Then remove it again:

[[root@ln1 ~]# dnf remove blinken
Remove:
 blinken                                   x86_64    15.04.2-2.fc23
 mesa-dri-drivers                          x86_64    11.1.0-1.20151218.fc23
 mesa-filesystem                           x86_64    11.1.0-1.20151218.fc23
 sj-fonts-common                           noarch    2.0.2-13.fc23
 sj-stevehand-fonts                        noarch    2.0.2-13.fc23

Note the two additional lines compared to the "dnf install" list above!
If one (like me in this case) doesn't notice the additionally (to be) removed mesa-drivers the system is no longer GUI-like usable (without those graphics drivers...).


I did several tests then with installing and removing blinken, sj-fonts-common and sj-stevehand-fonts, together and in several combinations.

But I'm not able to see why the mesa-drivers get removed automatically.
This is reproducable.

Of course, removing blinken without the dependencies is working fine:

[root@ln1 ~]# dnf --setopt=clean_requirements_on_remove=False remove blinken sj-stevehand-fonts sj-fonts-common


So I suspect a wrong (hidden) dependency somewhere in those three packages or a bug in dnf itself.

Comment 1 Honza Silhan 2016-01-11 12:37:23 UTC
Was the mesa-dri-driver installed by package Kit?. Can you attach debugdata [1], please?

[1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#dependency-resolution-problem

Comment 2 Christian Ziemski 2016-01-11 14:42:00 UTC
Created attachment 1113621 [details]
debugging info from "dnf remove blinken --debugsolver"

Comment 3 Christian Ziemski 2016-01-11 14:42:59 UTC
How can I find that out? I'm not a packagekit expert.

I didn't install the mesa* parts manually. 
It is an almost fresh install, so I assume that they came in during installation.

The debugdata is attached above.

Comment 4 Christian Ziemski 2016-01-11 15:15:52 UTC
rpm -q libsolv hawkey dnf

libsolv-0.6.14-7.fc23.x86_64
hawkey-0.6.2-3.fc23.x86_64
dnf-1.1.5-1.fc23.noarch

Comment 5 Honza Silhan 2016-01-19 13:58:27 UTC
hmm...Can you please attach compressed `/var/lib/yum/yumdb` (if any) and `/var/lib/dnf/yumdb` directories?

Comment 6 Christian Ziemski 2016-01-19 19:13:53 UTC
Created attachment 1116322 [details]
/var/lib/dnf/yumdb/

Comment 7 Christian Ziemski 2016-01-19 19:14:40 UTC
Created attachment 1116323 [details]
/var/lib/yum/yumdb/

Comment 8 Honza Silhan 2016-01-25 12:18:11 UTC
thanks

Comment 9 Honza Silhan 2016-02-10 16:21:21 UTC

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


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