Bug 1750560

Summary: the dnf package control program is not working with distro-sync
Product: [Fedora] Fedora Reporter: Robert Weir <robweir>
Component: dnfAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 30CC: dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Other   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-27 05:58:36 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:

Description Robert Weir 2019-09-09 21:25:11 UTC
Description of problem:
  When I run  'dnf distro-sync' it creates an unresolvable Error.


Version-Release number of selected component (if applicable):
dnf.noarch                                     4.2.8-1.fc30
Linux LENOVA-WIRED 5.2.9-200.fc30.x86_64 #1 SMP Fri Aug 16 21:37:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


How reproducible: Everytime.


Steps to Reproduce:
1.have a working F30 with multiple versions of 'protected' components.
2.run 'dnf distro-sync' as root
3.Presents an Error and no way to resolve it.

Actual results:
[root@LENOVA-WIRED ~]# dnf distro-sync
Get Error: 
 Problem: The operation would result in removing the following protected packages: systemd
(try to add '--skip-broken' to skip uninstallable packages)
[root@LENOVA-WIRED ~]# 

Expected results:
[root@LENOVA-WIRED ~]# dnf distro-sync
Last metadata expiration check: 1:08:02 ago on Mon 09 Sep 2019 12:54:40 PM PDT.
Dependencies resolved.
Nothing to do.
Complete!
[root@LENOVA-WIRED ~]# 


Additional info:
 I cannot get rid of these duplicate components (I understand they are protected but they are still duplicates) when I want to 'syncronize' my system

Comment 1 Jaroslav Mracek 2019-09-10 12:02:40 UTC
Normally I would recommend to try "dnf remove --duplicates". But at the present time the command is not fully functional. It requires https://github.com/rpm-software-management/dnf/pull/1478.

What works: 
Get NAMES of duplicates from "dnf repoquery --duplicates"
or "rpm -q <package name like systemd>"

remove older version of package:

"rpm -e <full name like systemd-241-12.git1e19bcd.fc30.x86_64>"

To ensure dependencies reinstall the remaining package version:
"dnf reinstall <package name like systemd>"

Comment 2 Robert Weir 2019-09-17 20:01:36 UTC
I tried what you set out above.
             ------->
root@LENOVO-WIFI ~]# dnf repoquery --duplicates
Last metadata expiration check: 0:53:49 ago on Tue 17 Sep 2019 11:51:43 AM PDT.
     among others I have not listed  --->
systemd-pam-0:241-10.git511646b.fc30.x86_64
systemd-pam-0:241-12.git1e19bcd.fc30.x86_64
systemd-rpm-macros-0:241-10.git511646b.fc30.noarch
systemd-rpm-macros-0:241-12.git1e19bcd.fc30.noarch
[root@LENOVO-WIFI ~]# rpm -e systemd-rpm-macros-0:241-10.git511646b.fc30.noarch
error: Failed dependencies:
	systemd-rpm-macros = 241-10.git511646b.fc30 is needed by (installed) systemd-241-10.git511646b.fc30.x86_64
[root@LENOVO-WIFI ~]# 

The above output shows that the approach doesn't actually solve the problem.  --force cannot be used with -e under 'dnf'

Comment 3 Jaroslav Mracek 2019-09-18 06:41:36 UTC
To help you I create a copr repository with upstream dnf + patch required to resolve your case (https://github.com/rpm-software-management/dnf/pull/1478). To enable it just run as a root `dnf copr enable jmracek/remove`.

After installing of dnf-4.2.11-1.git.8938.b92b807.fc30 run `dnf remove --duplicates` or in case that it doesn't help use `dnf shell` with dnf-shell commands `remove --duplicates`, `upgrade`, `run`.

Did it help?

Comment 4 Robert Weir 2019-09-23 03:21:44 UTC
Did anyone receive my Email, whereby I provided the necessary answer to the above comment.  Maybe I was supposed to post my reply here?  Please advise.

Comment 5 Jaroslav Mracek 2019-09-23 19:11:38 UTC
Sorry, I did not receive any information by email. Please could you post yuor reply here?

Comment 6 Robert Weir 2019-09-23 19:28:30 UTC
OK.  I will post it here as follows, the Email itself first:  ---->

OK.  I managed to get my unit 'backed up' so I will show you what happened when I used your ' dnf ' version.  I attached is a  ' run time log '.  Because 'systemd' was affected by the command it stopped the process near or at the last line in the ' log ' file.  I cannot proceed as every time I attempt to run it it reboots the unit and does not allow me to proceed. Sorry for the length of the file but it is what it is...
Hope this helps...
Robert 

       <-----
               

I set out the ' dnf.log ' below:

       ----->

[me@LENOVO-WIFI 283 ~]
$ su -
Password: 
[root@LENOVO-WIFI ~]# dnf copr enable jmracek/remove

You are about to enable a Copr repository. Please note that this
repository is not part of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/jmracek/remove? [y/N]: y
Repository successfully enabled.
[root@LENOVO-WIFI ~]# 

[root@LENOVO-WIFI ~]# dnf install dnf-4.2.11-1.git.8938.b92b807.fc30
Copr repo for remove owned by jmracek                                     35 kB/s |  14 kB     00:00    
Fedora 30 openh264 (From Cisco) - x86_64                                 1.0 kB/s | 542  B     00:00    
Fedora Modular 30 - x86_64                                                32 kB/s |  16 kB     00:00    
Fedora Modular 30 - x86_64 - Updates                                      48 kB/s |  16 kB     00:00    
Fedora 30 - x86_64 - Updates                                              61 kB/s |  15 kB     00:00    
Fedora 30 - x86_64                                                        52 kB/s |  17 kB     00:00    
RPM Fusion for Fedora 30 - Free - Updates                                4.5 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 30 - Free                                          3.8 kB/s | 2.5 kB     00:00    
RPM Fusion for Fedora 30 - Nonfree - Updates                             4.5 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 30 - Nonfree                                       8.0 kB/s | 2.5 kB     00:00    
Dependencies resolved.
=========================================================================================================
 Package       Arch   Version                        Repository                                     Size
=========================================================================================================
Upgrading:
 dnf           noarch 4.2.11-1.git.8938.b92b807.fc30 copr:copr.fedorainfracloud.org:jmracek:remove 404 k
 dnf-data      noarch 4.2.11-1.git.8938.b92b807.fc30 copr:copr.fedorainfracloud.org:jmracek:remove  44 k
 dnf-yum       noarch 4.2.11-1.git.8938.b92b807.fc30 copr:copr.fedorainfracloud.org:jmracek:remove  41 k
 libdnf        x86_64 0.35.5-1.git.2665.ba30b66.fc30 copr:copr.fedorainfracloud.org:jmracek:remove 591 k
 python3-dnf   noarch 4.2.11-1.git.8938.b92b807.fc30 copr:copr.fedorainfracloud.org:jmracek:remove 413 k
 python3-hawkey
               x86_64 0.35.5-1.git.2665.ba30b66.fc30 copr:copr.fedorainfracloud.org:jmracek:remove  83 k
 python3-libdnf
               x86_64 0.35.5-1.git.2665.ba30b66.fc30 copr:copr.fedorainfracloud.org:jmracek:remove 697 k

Transaction Summary
=========================================================================================================
Upgrade  7 Packages

Total download size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): dnf-data-4.2.11-1.git.8938.b92b807.fc30.noarch.rpm                109 kB/s |  44 kB     00:00    
(2/7): dnf-yum-4.2.11-1.git.8938.b92b807.fc30.noarch.rpm                  98 kB/s |  41 kB     00:00    
(3/7): libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64.rpm                  1.7 MB/s | 591 kB     00:00    
(4/7): python3-hawkey-0.35.5-1.git.2665.ba30b66.fc30.x86_64.rpm          1.2 MB/s |  83 kB     00:00    
(5/7): python3-dnf-4.2.11-1.git.8938.b92b807.fc30.noarch.rpm             1.0 MB/s | 413 kB     00:00    
(6/7): dnf-4.2.11-1.git.8938.b92b807.fc30.noarch.rpm                     414 kB/s | 404 kB     00:00    
(7/7): python3-libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64.rpm          2.0 MB/s | 697 kB     00:00    
---------------------------------------------------------------------------------------------------------
Total                                                                    1.9 MB/s | 2.2 MB     00:01     
warning: /var/cache/dnf/copr:copr.fedorainfracloud.org:jmracek:remove-94b5672a7c09e37f/packages/dnf-4.2.11-1.git.8938.b92b807.fc30.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID a58cc4c5: NOKEY
Copr repo for remove owned by jmracek                                    4.9 kB/s | 998  B     00:00    
Importing GPG key 0xA58CC4C5:
 Userid     : "jmracek_remove (None) <jmracek#remove.org>"
 Fingerprint: CD3C 49E2 7020 92BA 8921 D37D 5DB4 14DB A58C C4C5
 From       : https://copr-be.cloud.fedoraproject.org/results/jmracek/remove/pubkey.gpg
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                 1/1 
  Running scriptlet: libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                    1/1 
  Upgrading        : libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                   1/14 
  Upgrading        : python3-libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                           2/14 
  Upgrading        : python3-hawkey-0.35.5-1.git.2665.ba30b66.fc30.x86_64                           3/14 
  Upgrading        : dnf-data-4.2.11-1.git.8938.b92b807.fc30.noarch                                 4/14 
  Upgrading        : python3-dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                              5/14 
  Upgrading        : dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                                      6/14 
  Running scriptlet: dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                                      6/14 
  Upgrading        : dnf-yum-4.2.11-1.git.8938.b92b807.fc30.noarch                                  7/14 
  Cleanup          : dnf-yum-4.2.8-2.fc30.noarch                                                    8/14 
  Running scriptlet: dnf-4.2.8-2.fc30.noarch                                                        9/14 
  Cleanup          : dnf-4.2.8-2.fc30.noarch                                                        9/14 
  Running scriptlet: dnf-4.2.8-2.fc30.noarch                                                        9/14 
  Cleanup          : python3-dnf-4.2.8-2.fc30.noarch                                               10/14 
  Cleanup          : python3-hawkey-0.35.2-3.fc30.x86_64                                           11/14 
  Cleanup          : dnf-data-4.2.8-2.fc30.noarch                                                  12/14 
  Cleanup          : python3-libdnf-0.35.2-3.fc30.x86_64                                           13/14 
  Cleanup          : libdnf-0.35.2-3.fc30.x86_64                                                   14/14 
  Running scriptlet: libdnf-0.35.2-3.fc30.x86_64                                                   14/14 
  Verifying        : dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                                      1/14 
  Verifying        : dnf-4.2.8-2.fc30.noarch                                                        2/14 
  Verifying        : dnf-data-4.2.11-1.git.8938.b92b807.fc30.noarch                                 3/14 
  Verifying        : dnf-data-4.2.8-2.fc30.noarch                                                   4/14 
  Verifying        : dnf-yum-4.2.11-1.git.8938.b92b807.fc30.noarch                                  5/14 
  Verifying        : dnf-yum-4.2.8-2.fc30.noarch                                                    6/14 
  Verifying        : libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                   7/14 
  Verifying        : libdnf-0.35.2-3.fc30.x86_64                                                    8/14 
  Verifying        : python3-dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                              9/14 
  Verifying        : python3-dnf-4.2.8-2.fc30.noarch                                               10/14 
  Verifying        : python3-hawkey-0.35.5-1.git.2665.ba30b66.fc30.x86_64                          11/14 
  Verifying        : python3-hawkey-0.35.2-3.fc30.x86_64                                           12/14 
  Verifying        : python3-libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                          13/14 
  Verifying        : python3-libdnf-0.35.2-3.fc30.x86_64                                           14/14 

Upgraded:
  dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                                                              
  dnf-data-4.2.11-1.git.8938.b92b807.fc30.noarch                                                         
  dnf-yum-4.2.11-1.git.8938.b92b807.fc30.noarch                                                          
  libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                                           
  python3-dnf-4.2.11-1.git.8938.b92b807.fc30.noarch                                                      
  python3-hawkey-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                                   
  python3-libdnf-0.35.5-1.git.2665.ba30b66.fc30.x86_64                                                   

Complete!
[root@LENOVO-WIFI ~]# dnf remove --duplicates
Copr repo for remove owned by jmracek           5.6 kB/s | 3.3 kB     00:00    
Fedora 30 openh264 (From Cisco) - x86_64        605  B/s | 542  B     00:00    
Fedora Modular 30 - x86_64                       54 kB/s |  16 kB     00:00    
Fedora Modular 30 - x86_64 - Updates            163 kB/s |  16 kB     00:00    
Fedora 30 - x86_64 - Updates                     53 kB/s |  15 kB     00:00    
Fedora 30 - x86_64                               48 kB/s |  17 kB     00:00    
RPM Fusion for Fedora 30 - Free - Updates       3.2 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 30 - Free                 3.8 kB/s | 2.5 kB     00:00    
RPM Fusion for Fedora 30 - Nonfree - Updates    4.6 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 30 - Nonfree              8.1 kB/s | 2.5 kB     00:00    
Dependencies resolved.
================================================================================
 Package                    Arch   Version                       Repo      Size
================================================================================
Reinstalling:
 glibc                      x86_64 2.29-22.fc30                  updates  4.0 M
     replacing  glibc.x86_64 2.29-15.fc30
     replacing  glibc.x86_64 2.29-22.fc30
 glibc-common               x86_64 2.29-22.fc30                  updates  838 k
     replacing  glibc-common.x86_64 2.29-15.fc30
     replacing  glibc-common.x86_64 2.29-22.fc30
 glibc-langpack-en          x86_64 2.29-22.fc30                  updates  818 k
     replacing  glibc-langpack-en.x86_64 2.29-15.fc30
     replacing  glibc-langpack-en.x86_64 2.29-22.fc30
 ibus                       x86_64 1.5.20-4.fc30                 updates  6.8 M
     replacing  ibus.x86_64 1.5.20-1.fc30
     replacing  ibus.x86_64 1.5.20-4.fc30
 ibus-gtk2                  x86_64 1.5.20-4.fc30                 updates   26 k
     replacing  ibus-gtk2.x86_64 1.5.20-1.fc30
     replacing  ibus-gtk2.x86_64 1.5.20-4.fc30
 ibus-gtk3                  x86_64 1.5.20-4.fc30                 updates   26 k
     replacing  ibus-gtk3.x86_64 1.5.20-1.fc30
     replacing  ibus-gtk3.x86_64 1.5.20-4.fc30
 ibus-libs                  x86_64 1.5.20-4.fc30                 updates  227 k
     replacing  ibus-libs.x86_64 1.5.20-1.fc30
     replacing  ibus-libs.x86_64 1.5.20-4.fc30
 ibus-setup                 noarch 1.5.20-4.fc30                 updates   62 k
     replacing  ibus-setup.noarch 1.5.20-1.fc30
     replacing  ibus-setup.noarch 1.5.20-4.fc30
 kmod                       x86_64 26-3.fc30                     updates  115 k
     replacing  kmod.x86_64 25-5.fc30
 kmod-libs                  x86_64 26-3.fc30                     updates   58 k
     replacing  kmod-libs.x86_64 25-5.fc30
     replacing  kmod-libs.x86_64 26-3.fc30
 krb5-libs                  x86_64 1.17-14.fc30                  updates  707 k
     replacing  krb5-libs.x86_64 1.17-4.fc30
 libXt                      x86_64 1.1.5-11.20190424gitba4ec9376.fc30
                                                                 updates  169 k
     replacing  libXt.x86_64 1.1.5-10.fc30
 libblkid                   x86_64 2.33.2-2.fc30                 updates  144 k
     replacing  libblkid.x86_64 2.33.2-1.fc30
     replacing  libblkid.x86_64 2.33.2-2.fc30
 libdazzle                  x86_64 3.32.3-1.fc30                 updates  395 k
     replacing  libdazzle.x86_64 3.32.1-2.fc30
 libedit                    x86_64 3.1-27.20190324cvs.fc30       updates   94 k
     replacing  libedit.x86_64 3.1-26.20181209cvs.fc30
     replacing  libedit.x86_64 3.1-27.20190324cvs.fc30
 liberation-fonts-common    noarch 1:2.00.5-3.fc30               updates   15 k
     replacing  liberation-fonts-common.noarch 1:2.00.5-1.fc30
     replacing  liberation-fonts-common.noarch 1:2.00.5-3.fc30
 liberation-mono-fonts      noarch 1:2.00.5-3.fc30               updates  494 k
     replacing  liberation-mono-fonts.noarch 1:2.00.5-1.fc30
 liberation-sans-fonts      noarch 1:2.00.5-3.fc30               updates  598 k
     replacing  liberation-sans-fonts.noarch 1:2.00.5-1.fc30
 liberation-serif-fonts     noarch 1:2.00.5-3.fc30               updates  597 k
     replacing  liberation-serif-fonts.noarch 1:2.00.5-1.fc30
 libfbclient2               x86_64 3.0.4.33054-3.fc30            updates  550 k
     replacing  libfbclient2.x86_64 3.0.4.33054-2.fc30
 libgcc                     x86_64 9.2.1-1.fc30                  updates   91 k
     replacing  libgcc.x86_64 9.0.1-0.10.fc30
     replacing  libgcc.x86_64 9.2.1-1.fc30
 libgcrypt                  x86_64 1.8.5-1.fc30                  updates  450 k
     replacing  libgcrypt.x86_64 1.8.4-3.fc30
     replacing  libgcrypt.x86_64 1.8.5-1.fc30
 libgomp                    x86_64 9.2.1-1.fc30                  updates  220 k
     replacing  libgomp.x86_64 9.0.1-0.10.fc30
 libicu                     x86_64 63.2-2.fc30                   updates  9.0 M
     replacing  libicu.x86_64 63.1-2.fc30
 libiptcdata                x86_64 1.0.5-1.fc30                  updates   57 k
     replacing  libiptcdata.x86_64 1.0.4-20.fc28
 libmount                   x86_64 2.33.2-2.fc30                 updates  167 k
     replacing  libmount.x86_64 2.33.2-1.fc30
     replacing  libmount.x86_64 2.33.2-2.fc30
 libmwaw                    x86_64 0.3.15-1.fc30                 updates  2.5 M
     replacing  libmwaw.x86_64 0.3.14-3.fc30
 libseccomp                 x86_64 2.4.1-0.fc30                  updates   61 k
     replacing  libseccomp.x86_64 2.4.0-0.fc30
     replacing  libseccomp.x86_64 2.4.1-0.fc30
 libsmartcols               x86_64 2.33.2-2.fc30                 updates  107 k
     replacing  libsmartcols.x86_64 2.33.2-1.fc30
 libstdc++                  x86_64 9.2.1-1.fc30                  updates  578 k
     replacing  libstdc++.x86_64 9.0.1-0.10.fc30
     replacing  libstdc++.x86_64 9.2.1-1.fc30
 libuuid                    x86_64 2.33.2-2.fc30                 updates   26 k
     replacing  libuuid.x86_64 2.33.2-1.fc30
     replacing  libuuid.x86_64 2.33.2-2.fc30
 llvm-libs                  x86_64 8.0.0-6.fc30                  updates   19 M
     replacing  llvm-libs.x86_64 8.0.0-1.fc30
 lz4-libs                   x86_64 1.9.1-1.fc30                  updates   62 k
     replacing  lz4-libs.x86_64 1.8.3-2.fc30
     replacing  lz4-libs.x86_64 1.9.1-1.fc30
 m17n-lib                   x86_64 1.8.0-5.fc30                  updates  186 k
     replacing  m17n-lib.x86_64 1.8.0-4.fc30
 mariadb-common             x86_64 3:10.3.17-1.fc30              updates   36 k
     replacing  mariadb-common.x86_64 3:10.3.12-10.fc30
 mariadb-connector-c-config noarch 3.1.3-1.fc30                  updates   12 k
     replacing  mariadb-connector-c-config.noarch 3.0.9-2.fc30
     replacing  mariadb-connector-c-config.noarch 3.1.3-1.fc30
 mesa-filesystem            x86_64 19.1.6-1.fc30                 updates   17 k
     replacing  mesa-filesystem.x86_64 19.1.5-1.fc30
 mesa-libgbm                x86_64 19.1.6-1.fc30                 updates   40 k
     replacing  mesa-libgbm.x86_64 19.1.5-1.fc30
 mesa-libglapi              x86_64 19.1.6-1.fc30                 updates   46 k
     replacing  mesa-libglapi.x86_64 19.1.5-1.fc30
 nmap-ncat                  x86_64 2:7.70-7.fc30                 updates  210 k
     replacing  nmap-ncat.x86_64 2:7.70-6.fc30
 nspr                       x86_64 4.22.0-1.fc30                 updates  132 k
     replacing  nspr.x86_64 4.21.0-1.fc30
     replacing  nspr.x86_64 4.22.0-1.fc30
 nss                        x86_64 3.46.0-2.fc30                 updates  674 k
     replacing  nss.x86_64 3.44.1-1.fc30
     replacing  nss.x86_64 3.46.0-2.fc30
 nss-softokn                x86_64 3.46.0-2.fc30                 updates  423 k
     replacing  nss-softokn.x86_64 3.44.1-1.fc30
     replacing  nss-softokn.x86_64 3.46.0-2.fc30
 nss-softokn-freebl         x86_64 3.46.0-2.fc30                 updates  226 k
     replacing  nss-softokn-freebl.x86_64 3.44.1-1.fc30
     replacing  nss-softokn-freebl.x86_64 3.46.0-2.fc30
 nss-sysinit                x86_64 3.46.0-2.fc30                 updates   20 k
     replacing  nss-sysinit.x86_64 3.44.1-1.fc30
     replacing  nss-sysinit.x86_64 3.46.0-2.fc30
 nss-util                   x86_64 3.46.0-2.fc30                 updates   85 k
     replacing  nss-util.x86_64 3.44.1-1.fc30
     replacing  nss-util.x86_64 3.46.0-2.fc30
 orc                        x86_64 0.4.29-2.fc30                 updates  158 k
     replacing  orc.x86_64 0.4.28-4.fc30
     replacing  orc.x86_64 0.4.29-2.fc30
 osinfo-db-tools            x86_64 1.4.0-2.fc30                  updates   89 k
     replacing  osinfo-db-tools.x86_64 1.4.0-1.fc30
 pango                      x86_64 1.43.0-4.fc30                 updates  260 k
     replacing  pango.x86_64 1.43.0-3.fc30
     replacing  pango.x86_64 1.43.0-4.fc30
 perl-Errno                 x86_64 1.29-439.fc30                 updates   23 k
     replacing  perl-Errno.x86_64 1.29-438.fc30
     replacing  perl-Errno.x86_64 1.29-439.fc30
 perl-IO                    x86_64 1.39-439.fc30                 updates   89 k
     replacing  perl-IO.x86_64 1.39-438.fc30
     replacing  perl-IO.x86_64 1.39-439.fc30
 perl-interpreter           x86_64 4:5.28.2-439.fc30             updates  6.4 M
     replacing  perl-interpreter.x86_64 4:5.28.2-438.fc30
     replacing  perl-interpreter.x86_64 4:5.28.2-439.fc30
 perl-libs                  x86_64 4:5.28.2-439.fc30             updates  1.6 M
     replacing  perl-libs.x86_64 4:5.28.2-438.fc30
     replacing  perl-libs.x86_64 4:5.28.2-439.fc30
 perl-macros                x86_64 4:5.28.2-439.fc30             updates   19 k
     replacing  perl-macros.x86_64 4:5.28.2-438.fc30
     replacing  perl-macros.x86_64 4:5.28.2-439.fc30
 qt                         x86_64 1:4.8.7-49.fc30               updates  4.6 M
     replacing  qt.x86_64 1:4.8.7-47.fc30
     replacing  qt.x86_64 1:4.8.7-49.fc30
 qt-common                  noarch 1:4.8.7-49.fc30               updates  7.6 k
     replacing  qt-common.noarch 1:4.8.7-47.fc30
     replacing  qt-common.noarch 1:4.8.7-49.fc30
 qt-x11                     x86_64 1:4.8.7-49.fc30               updates   12 M
     replacing  qt-x11.x86_64 1:4.8.7-47.fc30
     replacing  qt-x11.x86_64 1:4.8.7-49.fc30
 selinux-policy             noarch 3.14.3-45.fc30                updates  126 k
     replacing  selinux-policy.noarch 3.14.3-43.fc30
 sni-qt                     x86_64 0.2.7-0.2.20170217.fc30       updates   58 k
     replacing  sni-qt.x86_64 0.2.7-0.1.20170217.fc30
     replacing  sni-qt.x86_64 0.2.7-0.2.20170217.fc30
 spice-server               x86_64 0.14.2-1.fc30                 updates  370 k
     replacing  spice-server.x86_64 0.14.1-3.fc30
 syslinux                   x86_64 6.04-0.12.fc30                updates  565 k
     replacing  syslinux.x86_64 6.04-0.12.fc30
     replacing  syslinux.x86_64 6.04-0.8.fc28
 syslinux-nonlinux          noarch 6.04-0.12.fc30                updates  543 k
     replacing  syslinux-nonlinux.noarch 6.04-0.12.fc30
     replacing  syslinux-nonlinux.noarch 6.04-0.8.fc28
 systemd                    x86_64 241-12.git1e19bcd.fc30        updates  3.8 M
     replacing  systemd.x86_64 241-10.git511646b.fc30
     replacing  systemd.x86_64 241-12.git1e19bcd.fc30
 systemd-libs               x86_64 241-12.git1e19bcd.fc30        updates  504 k
     replacing  systemd-libs.x86_64 241-10.git511646b.fc30
     replacing  systemd-libs.x86_64 241-12.git1e19bcd.fc30
 systemd-pam                x86_64 241-12.git1e19bcd.fc30        updates  157 k
     replacing  systemd-pam.x86_64 241-10.git511646b.fc30
     replacing  systemd-pam.x86_64 241-12.git1e19bcd.fc30
 systemd-rpm-macros         noarch 241-12.git1e19bcd.fc30        updates   22 k
     replacing  systemd-rpm-macros.noarch 241-10.git511646b.fc30
     replacing  systemd-rpm-macros.noarch 241-12.git1e19bcd.fc30
Removing:
 libcurl                    x86_64 7.65.3-2.fc30                 @@System 827 k
 libv4l                     x86_64 1.16.3-2.fc30                 @@System 650 k

Transaction Summary
================================================================================
Remove  2 Packages

Total size: 83 M
Is this ok [y/N]: Downloading Packages:
[SKIPPED] glibc-2.29-22.fc30.x86_64.rpm: Already downloaded                    
[SKIPPED] glibc-common-2.29-22.fc30.x86_64.rpm: Already downloaded             
[SKIPPED] glibc-langpack-en-2.29-22.fc30.x86_64.rpm: Already downloaded        
[SKIPPED] ibus-1.5.20-4.fc30.x86_64.rpm: Already downloaded                    
[SKIPPED] ibus-gtk2-1.5.20-4.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] ibus-gtk3-1.5.20-4.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] ibus-libs-1.5.20-4.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] ibus-setup-1.5.20-4.fc30.noarch.rpm: Already downloaded              
[SKIPPED] kmod-26-3.fc30.x86_64.rpm: Already downloaded                        
[SKIPPED] kmod-libs-26-3.fc30.x86_64.rpm: Already downloaded                   
[SKIPPED] krb5-libs-1.17-14.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] libXt-1.1.5-11.20190424gitba4ec9376.fc30.x86_64.rpm: Already downloaded
[SKIPPED] libblkid-2.33.2-2.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] libdazzle-3.32.3-1.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] libedit-3.1-27.20190324cvs.fc30.x86_64.rpm: Already downloaded       
[SKIPPED] liberation-fonts-common-2.00.5-3.fc30.noarch.rpm: Already downloaded 
[SKIPPED] liberation-mono-fonts-2.00.5-3.fc30.noarch.rpm: Already downloaded   
[SKIPPED] liberation-sans-fonts-2.00.5-3.fc30.noarch.rpm: Already downloaded   
[SKIPPED] liberation-serif-fonts-2.00.5-3.fc30.noarch.rpm: Already downloaded  
[SKIPPED] libfbclient2-3.0.4.33054-3.fc30.x86_64.rpm: Already downloaded       
[SKIPPED] libgcc-9.2.1-1.fc30.x86_64.rpm: Already downloaded                   
[SKIPPED] libgcrypt-1.8.5-1.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] libgomp-9.2.1-1.fc30.x86_64.rpm: Already downloaded                  
[SKIPPED] libicu-63.2-2.fc30.x86_64.rpm: Already downloaded                    
[SKIPPED] libiptcdata-1.0.5-1.fc30.x86_64.rpm: Already downloaded              
[SKIPPED] libmount-2.33.2-2.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] libmwaw-0.3.15-1.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] libseccomp-2.4.1-0.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] libsmartcols-2.33.2-2.fc30.x86_64.rpm: Already downloaded            
[SKIPPED] libstdc++-9.2.1-1.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] libuuid-2.33.2-2.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] llvm-libs-8.0.0-6.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] lz4-libs-1.9.1-1.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] m17n-lib-1.8.0-5.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] mariadb-common-10.3.17-1.fc30.x86_64.rpm: Already downloaded         
[SKIPPED] mariadb-connector-c-config-3.1.3-1.fc30.noarch.rpm: Already downloaded
[SKIPPED] mesa-filesystem-19.1.6-1.fc30.x86_64.rpm: Already downloaded         
[SKIPPED] mesa-libgbm-19.1.6-1.fc30.x86_64.rpm: Already downloaded             
[SKIPPED] mesa-libglapi-19.1.6-1.fc30.x86_64.rpm: Already downloaded           
[SKIPPED] nmap-ncat-7.70-7.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] nspr-4.22.0-1.fc30.x86_64.rpm: Already downloaded                    
[SKIPPED] nss-3.46.0-2.fc30.x86_64.rpm: Already downloaded                     
[SKIPPED] nss-softokn-3.46.0-2.fc30.x86_64.rpm: Already downloaded             
[SKIPPED] nss-softokn-freebl-3.46.0-2.fc30.x86_64.rpm: Already downloaded      
[SKIPPED] nss-sysinit-3.46.0-2.fc30.x86_64.rpm: Already downloaded             
[SKIPPED] nss-util-3.46.0-2.fc30.x86_64.rpm: Already downloaded                
[SKIPPED] orc-0.4.29-2.fc30.x86_64.rpm: Already downloaded                     
[SKIPPED] osinfo-db-tools-1.4.0-2.fc30.x86_64.rpm: Already downloaded          
[SKIPPED] pango-1.43.0-4.fc30.x86_64.rpm: Already downloaded                   
[SKIPPED] perl-Errno-1.29-439.fc30.x86_64.rpm: Already downloaded              
[SKIPPED] perl-IO-1.39-439.fc30.x86_64.rpm: Already downloaded                 
[SKIPPED] perl-interpreter-5.28.2-439.fc30.x86_64.rpm: Already downloaded      
[SKIPPED] perl-libs-5.28.2-439.fc30.x86_64.rpm: Already downloaded             
[SKIPPED] perl-macros-5.28.2-439.fc30.x86_64.rpm: Already downloaded           
[SKIPPED] qt-4.8.7-49.fc30.x86_64.rpm: Already downloaded                      
[SKIPPED] qt-common-4.8.7-49.fc30.noarch.rpm: Already downloaded               
[SKIPPED] qt-x11-4.8.7-49.fc30.x86_64.rpm: Already downloaded                  
[SKIPPED] selinux-policy-3.14.3-45.fc30.noarch.rpm: Already downloaded         
[SKIPPED] sni-qt-0.2.7-0.2.20170217.fc30.x86_64.rpm: Already downloaded        
[SKIPPED] spice-server-0.14.2-1.fc30.x86_64.rpm: Already downloaded            
[SKIPPED] syslinux-6.04-0.12.fc30.x86_64.rpm: Already downloaded               
[SKIPPED] syslinux-nonlinux-6.04-0.12.fc30.noarch.rpm: Already downloaded      
[SKIPPED] systemd-241-12.git1e19bcd.fc30.x86_64.rpm: Already downloaded        
[SKIPPED] systemd-libs-241-12.git1e19bcd.fc30.x86_64.rpm: Already downloaded   
[SKIPPED] systemd-pam-241-12.git1e19bcd.fc30.x86_64.rpm: Already downloaded    
[SKIPPED] systemd-rpm-macros-241-12.git1e19bcd.fc30.noarch.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: libgcc-9.2.1-1.fc30.x86_64                             1/1 
  Reinstalling     : libgcc-9.2.1-1.fc30.x86_64                           1/243 
  Running scriptlet: libgcc-9.2.1-1.fc30.x86_64                           1/243 
  Reinstalling     : glibc-common-2.29-22.fc30.x86_64                     2/243 
  Reinstalling     : glibc-langpack-en-2.29-22.fc30.x86_64                3/243 
  Running scriptlet: glibc-2.29-22.fc30.x86_64                            4/243 
  Reinstalling     : glibc-2.29-22.fc30.x86_64                            4/243 
  Running scriptlet: glibc-2.29-22.fc30.x86_64                            4/243 
  Reinstalling     : libstdc++-9.2.1-1.fc30.x86_64                        5/243 
  Reinstalling     : nspr-4.22.0-1.fc30.x86_64                            6/243 
  Reinstalling     : nss-util-3.46.0-2.fc30.x86_64                        7/243 
  Reinstalling     : pango-1.43.0-4.fc30.x86_64                           8/243 
  Reinstalling     : perl-libs-4:5.28.2-439.fc30.x86_64                   9/243 
  Reinstalling     : qt-common-1:4.8.7-49.fc30.noarch                    10/243 
  Running scriptlet: qt-1:4.8.7-49.fc30.x86_64                           11/243 
  Reinstalling     : qt-1:4.8.7-49.fc30.x86_64                           11/243 
  Running scriptlet: qt-1:4.8.7-49.fc30.x86_64                           11/243 
  Reinstalling     : ibus-libs-1.5.20-4.fc30.x86_64                      12/243 
  Reinstalling     : libuuid-2.33.2-2.fc30.x86_64                        13/243 
  Reinstalling     : lz4-libs-1.9.1-1.fc30.x86_64                        14/243 
  Reinstalling     : liberation-fonts-common-1:2.00.5-3.fc30.noarch      15/243 
  Reinstalling     : libblkid-2.33.2-2.fc30.x86_64                       16/243 
  Running scriptlet: libblkid-2.33.2-2.fc30.x86_64                       16/243 
  Reinstalling     : libgcrypt-1.8.5-1.fc30.x86_64                       17/243 
  Reinstalling     : systemd-libs-241-12.git1e19bcd.fc30.x86_64          18/243 
  Running scriptlet: systemd-libs-241-12.git1e19bcd.fc30.x86_64          18/243 
  Reinstalling     : libmount-2.33.2-2.fc30.x86_64                       19/243 
  Reinstalling     : syslinux-nonlinux-6.04-0.12.fc30.noarch             20/243 
  Reinstalling     : syslinux-6.04-0.12.fc30.x86_64                      21/243 
  Reinstalling     : ibus-gtk2-1.5.20-4.fc30.x86_64                      22/243 
  Reinstalling     : ibus-gtk3-1.5.20-4.fc30.x86_64                      23/243 
  Reinstalling     : ibus-setup-1.5.20-4.fc30.noarch                     24/243 
  Reinstalling     : ibus-1.5.20-4.fc30.x86_64                           25/243 
  Running scriptlet: ibus-1.5.20-4.fc30.x86_64                           25/243 
  Reinstalling     : qt-x11-1:4.8.7-49.fc30.x86_64                       26/243 
  Reinstalling     : sni-qt-0.2.7-0.2.20170217.fc30.x86_64               27/243 
  Reinstalling     : perl-Errno-1.29-439.fc30.x86_64                     28/243 
  Reinstalling     : perl-IO-1.39-439.fc30.x86_64                        29/243 
  Reinstalling     : perl-macros-4:5.28.2-439.fc30.x86_64                30/243 
  Reinstalling     : perl-interpreter-4:5.28.2-439.fc30.x86_64           31/243 
  Reinstalling     : nss-softokn-freebl-3.46.0-2.fc30.x86_64             32/243 
  Reinstalling     : nss-softokn-3.46.0-2.fc30.x86_64                    33/243 
  Reinstalling     : nss-3.46.0-2.fc30.x86_64                            34/243 
  Running scriptlet: nss-3.46.0-2.fc30.x86_64                            34/243 
  Reinstalling     : nss-sysinit-3.46.0-2.fc30.x86_64                    35/243 
  Reinstalling     : kmod-libs-26-3.fc30.x86_64                          36/243 
  Reinstalling     : libedit-3.1-27.20190324cvs.fc30.x86_64              37/243 
  Reinstalling     : libseccomp-2.4.1-0.fc30.x86_64                      38/243 
  Reinstalling     : orc-0.4.29-2.fc30.x86_64                            39/243 
  Reinstalling     : systemd-rpm-macros-241-12.git1e19bcd.fc30.noarch    40/243 
  Running scriptlet: systemd-241-12.git1e19bcd.fc30.x86_64               41/243 
  Reinstalling     : systemd-241-12.git1e19bcd.fc30.x86_64               41/243

          <------
 It appears that the 'systemd-241-12-git1e19bcd.fc30.x86_64' reinstall cannot be done because it is the main program controlling things.  One would have to somehow get around this nasty problem to make 'distro-sync' actually work when the main control program is one of the candidates that need reinstalling.
  Sorry I should have known to post here.  Hope this helps...
Robert

Comment 7 Jaroslav Mracek 2019-09-24 12:28:31 UTC
Ok, I see, I would recommend to run "dnf remove --duplicates -x '*systemd*'" first. Check if no systemd package is in transaction then perform it. In case there will be still systemd in transaction, add additional excludes in transaction.

Also I would recommend to not perform such operations from terminal but from console.

Comment 8 Robert Weir 2019-09-24 17:07:30 UTC
I ran "dnf remove --duplicates -x '*systemd*'" and it ran to completion using your version of ' dnf ' as shown below:

           ----------->

[root@LENOVO-WIFI ~]# dnf list installed | grep dnf
dnf.noarch                                        4.2.11-1.git.8938.b92b807.fc30         @copr:copr.fedorainfracloud.org:jmracek:remove

           <-----------
I then ran a check on what is still remaining after the above run.

           ----------->
[root@LENOVO-WIFI ~]# dnf remove --duplicates
Last metadata expiration check: 0:23:06 ago on Tue 24 Sep 2019 09:41:31 AM PDT.
Dependencies resolved.
=============================================================================================================================================================================
 Package                                       Architecture                      Version                                            Repository                          Size
=============================================================================================================================================================================
Reinstalling:
 systemd                                       x86_64                            241-12.git1e19bcd.fc30                             updates                            3.8 M
     replacing  systemd.x86_64 241-10.git511646b.fc30
     replacing  systemd.x86_64 241-12.git1e19bcd.fc30
 systemd-libs                                  x86_64                            241-12.git1e19bcd.fc30                             updates                            504 k
     replacing  systemd-libs.x86_64 241-10.git511646b.fc30
     replacing  systemd-libs.x86_64 241-12.git1e19bcd.fc30
 systemd-pam                                   x86_64                            241-12.git1e19bcd.fc30                             updates                            157 k
     replacing  systemd-pam.x86_64 241-10.git511646b.fc30
     replacing  systemd-pam.x86_64 241-12.git1e19bcd.fc30
 systemd-rpm-macros                            noarch                            241-12.git1e19bcd.fc30                             updates                             22 k
     replacing  systemd-rpm-macros.noarch 241-10.git511646b.fc30
     replacing  systemd-rpm-macros.noarch 241-12.git1e19bcd.fc30

Transaction Summary
=============================================================================================================================================================================

Total download size: 4.4 M
Is this ok [y/N]: 

               <-----------
Hence your version (of dnf) has removed all non 'systemd' related duplicates.  That is good.  What should I do with those still remaining?

Robert

Comment 9 Robert Weir 2019-09-24 17:28:23 UTC
Sorry I forgot to say that I ran everything mentioned above while in a console.  I booted into level 3.

Comment 10 Jaroslav Mracek 2019-09-26 09:06:43 UTC
I would try again "dnf remove --duplicates" to perform removal of remaining problem. The previous crashes could be also caused by duplication of already reinstalled package with missing dependency.

Comment 11 Robert Weir 2019-09-26 23:41:52 UTC
Yes, I was able to use 'dnf remove --duplicates'.  Then I ran 'dnf clean all' and it removed the cached files. Next I ran 'dnf distro-sync' and although there were many new updates which appeared to go through all the install verify etc but then before it finished it hung up and rebooted the unit.  
  
I am now experiencing some display issues (which may not be related to this issue but rather one of the updates I installed today).  So how is 'dnf distro-sync' related to the above excercise of removing duplicates.  Is your new 'dnf version'(4.2.11-1.git.8938.b92b807.fc30) robust and reliable enough to consider broadly useable?  As well, if yes when will it be mainstreamed with F30 distro?

Comment 12 Jaroslav Mracek 2019-09-27 05:37:59 UTC
My patch is already part of upstream. I suggest that it will be released in about 3 weeks.

Comment 13 Robert Weir 2019-09-27 05:57:18 UTC
I want to thank you for working on this issue.  I am satisfied that this issue is solved to my satisfaction.
Keep up the great work...
Robert

Comment 14 Jaroslav Mracek 2019-09-27 05:58:36 UTC
Because the bug was resolved by patch that restores functionality of "dnf remove --duplicates", marking the bug as a duplicate.

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