Bug 1326049

Summary: Cannot update Fedora with DNF, online solutions have not worked.
Product: [Fedora] Fedora Reporter: DTCalx <hc_hdez>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jsilhan, mluscon, mmraka, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-18 12:37:46 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:

Description DTCalx 2016-04-11 16:12:14 UTC
Description of problem:


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


How reproducible: Everytime


Steps to Reproduce:
1. dnf -y update
2. 
3.

Actual results:
Basically the whole output is this: 
[SKIPPED] xorg-x11-server-Xwayland-1.18.3-1.fc23.x86_64.rpm: Already downloaded                                                                                                                 
[SKIPPED] zvbi-0.2.35-1.fc23.x86_64.rpm: Already downloaded                                                                                                                                     
[SKIPPED] sqlite-3.11.0-3.fc23.x86_64.rpm: Already downloaded                                                                                                                                   
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  file /usr/share/doc/p11-kit/NEWS from install of p11-kit-0.23.2-1.fc23.i686 conflicts with file from package p11-kit-0.23.1-4.fc23.x86_64
  file /usr/share/man/man1/trust.1.gz from install of p11-kit-0.23.2-1.fc23.i686 conflicts with file from package p11-kit-0.23.1-4.fc23.x86_64
  file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.23.2-1.fc23.i686 conflicts with file from package p11-kit-0.23.1-4.fc23.x86_64
  file /usr/share/man/man8/p11-kit.8.gz from install of p11-kit-0.23.2-1.fc23.i686 conflicts with file from package p11-kit-0.23.1-4.fc23.x86_64


Expected results:
Succesful update.


Additional info:
Based on online research and an answer from another post I've already tried:
# dnf -y remove $(dnf repoquery --duplicated --latest-limit -1 -q)

Output is:
*Resume of all the duplicates and...*
Installed size: 1.6 G
Running transaction check
Error: transaction check vs depsolve:
kde-runtime = 15.12.1-1.fc23 is needed by (installed) kde-runtime-flags-15.12.1-1.fc23.noarch
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.

Comment 1 DTCalx 2016-04-11 16:16:14 UTC
About the last message of the console when I tried:
# rpm --rebuilddb

and tried again: 
# dnf -y update

Didn't work.


And for:
# rpm -Va --nofiles --nodigest

Out put is:
Unsatisfied dependencies for python-matplotlib-tk-1.4.3-6.fc23.x86_64:
	python-matplotlib-tk < 1.4.3-11.fc23 is obsoleted by (installed) python2-matplotlib-tk-1.4.3-11.fc23.x86_64
Unsatisfied dependencies for python-matplotlib-1.4.3-6.fc23.x86_64:
	python-matplotlib < 1.4.3-11.fc23 is obsoleted by (installed) python2-matplotlib-1.4.3-11.fc23.x86_64
Unsatisfied dependencies for python2-matplotlib-tk-1.4.3-11.fc23.x86_64:
	python-matplotlib-tk < 1.4.3-11.fc23 is obsoleted by (installed) python2-matplotlib-tk-1.4.3-11.fc23.x86_64
Unsatisfied dependencies for python2-matplotlib-1.4.3-11.fc23.x86_64:
	python-matplotlib < 1.4.3-11.fc23 is obsoleted by (installed) python2-matplotlib-1.4.3-11.fc23.x86_64
Unsatisfied dependencies for wps-office-9.1.0.4751-1.a15.i686:
	libmng.so.1 is needed by (installed) wps-office-9.1.0.4751-1.a15.i686
Unsatisfied dependencies for kde-runtime-flags-15.12.1-1.fc23.noarch:
	kde-runtime = 15.12.1-1.fc23 is needed by (installed) kde-runtime-flags-15.12.1-1.fc23.noarch

Comment 2 Parag Nemade 2016-04-12 04:16:02 UTC
This looks like simple multilib issue. I think p11-kit package need to be fixed.

Comment 3 DTCalx 2016-04-12 06:24:47 UTC
(In reply to Parag Nemade from comment #2)
> This looks like simple multilib issue. I think p11-kit package need to be
> fixed.

But how do i do that?

Comment 4 Parag Nemade 2016-04-12 06:55:56 UTC
Ah on a closer look, I see it can be issue with your installation. See its not using same version for i686 and x86_64 packages. you should be having same name-version-release of p11-kit package on your system before updating your system. you can check it using "rpm -qa | grep p11-kit"

Comment 5 DTCalx 2016-04-12 07:00:25 UTC
(In reply to Parag Nemade from comment #4)
> Ah on a closer look, I see it can be issue with your installation. See its
> not using same version for i686 and x86_64 packages. you should be having
> same name-version-release of p11-kit package on your system before updating
> your system. you can check it using "rpm -qa | grep p11-kit"

This is the output:

p11-kit-0.23.1-4.fc23.x86_64
p11-kit-0.23.1-4.fc23.i686
p11-kit-0.23.2-1.fc23.x86_64
p11-kit-trust-0.23.2-1.fc23.x86_64
p11-kit-trust-0.23.1-4.fc23.x86_64


Should I "dnf remove" the one with i685 arch?

Comment 6 Parag Nemade 2016-04-12 07:04:44 UTC
so the problem I see is this you have duplicate packages
p11-kit-0.23.1-4.fc23.x86_64
p11-kit-0.23.2-1.fc23.x86_64
and
p11-kit-trust-0.23.2-1.fc23.x86_64
p11-kit-trust-0.23.1-4.fc23.x86_64

You may want to try this command to remove duplicate packages on your system
dnf remove $(dnf repoquery --duplicated --latest-limit -1 -q)

Comment 7 Michael Mráka 2016-04-12 07:17:21 UTC
* First of all fix unsatisfied dependencies:

> Unsatisfied dependencies for python-matplotlib-tk-1.4.3-6.fc23.x86_64:
> 	python-matplotlib-tk < 1.4.3-11.fc23 is obsoleted by (installed)
> python2-matplotlib-tk-1.4.3-11.fc23.x86_64
> Unsatisfied dependencies for python-matplotlib-1.4.3-6.fc23.x86_64:
> 	python-matplotlib < 1.4.3-11.fc23 is obsoleted by (installed)
> python2-matplotlib-1.4.3-11.fc23.x86_64
> Unsatisfied dependencies for python2-matplotlib-tk-1.4.3-11.fc23.x86_64:
> 	python-matplotlib-tk < 1.4.3-11.fc23 is obsoleted by (installed)
> python2-matplotlib-tk-1.4.3-11.fc23.x86_64
> Unsatisfied dependencies for python2-matplotlib-1.4.3-11.fc23.x86_64:
> 	python-matplotlib < 1.4.3-11.fc23 is obsoleted by (installed)
> python2-matplotlib-1.4.3-11.fc23.x86_64
> Unsatisfied dependencies for wps-office-9.1.0.4751-1.a15.i686:
> 	libmng.so.1 is needed by (installed) wps-office-9.1.0.4751-1.a15.i686
> Unsatisfied dependencies for kde-runtime-flags-15.12.1-1.fc23.noarch:
> 	kde-runtime = 15.12.1-1.fc23 is needed by (installed)
> kde-runtime-flags-15.12.1-1.fc23.noarch

dnf install python2-matplotlib-tk libmng kde-runtime

* then try to fix duplicated packages:

dnf remove $(dnf repoquery --duplicated --lates the above failst-limit -1 -q)

* if the above fails remove at least duplicated p11-kit packages

dnf remove p11-kit-0.23.2-1.fc23.x86_64 p11-kit-trust-0.23.1-4.fc23.x86_64

* then retry update

dnf update

Comment 8 Michael Mráka 2016-04-18 12:37:46 UTC
Seems to be dependency issue. Closing.

If the update does not work after cleaning dependency issues feel free to reopen the bug.