Bug 1935408 - upgrading dnf to version 4.6.0-1.fc33 on a vanilla install of Fedora 33 breaks dnf
Summary: upgrading dnf to version 4.6.0-1.fc33 on a vanilla install of Fedora 33 break...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 33
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1935377 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-04 20:01 UTC by Angelo Theodorakis
Modified: 2021-03-24 08:38 UTC (History)
12 users (show)

Fixed In Version: dnf-4.6.1-1.fc33
Clone Of:
Environment:
Last Closed: 2021-03-08 02:51:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Angelo Theodorakis 2021-03-04 20:01:47 UTC
Description of problem:

upgrading dnf to version 4.6.0-1.fc33 on a vanilla install of Fedora 33 breaks dnf


Version-Release number of selected component (if applicable): 4.6.0-1.fc33


How reproducible: always


Steps to Reproduce:
1. Install fedora from Fedora-Workstation-Live-x86_64-33-1.2.iso
2. Complete setup and create user account
3. run `sudo dnf -y upgrade dnf`

Actual results:

dnf breaks and can't install any additional packages with error:

$ sudo dnf install nano

Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
    import dnf.base
  File "/usr/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
    import libdnf.transaction
  File "/usr/lib64/python3.9/site-packages/libdnf/__init__.py", line 12, in <module>
    from . import conf
  File "/usr/lib64/python3.9/site-packages/libdnf/conf.py", line 13, in <module>
    from . import _conf
ImportError: /lib64/libdnf.so.2: undefined symbol: modulemd_module_stream_v2_is_static_context

Expected results: To be able to install packages as expected


Additional info:

Full output of dnf upgrade and installed dependencies:

$ sudo dnf -y upgrade dnf

Fedora Modular 33 - x86_64 - Updates                                                                                  1.1 MB/s | 3.1 MB     00:02    
Fedora 33 - x86_64 - Updates                                                                                          6.9 MB/s |  24 MB     00:03    
Fedora 33 - x86_64                                                                                                    9.2 MB/s |  72 MB     00:07    
Last metadata expiration check: 0:00:01 ago on Thu 04 Mar 2021 17:04:53.
Dependencies resolved.
======================================================================================================================================================
 Package                                Architecture                   Version                                  Repository                       Size
======================================================================================================================================================
Upgrading:
 dnf                                    noarch                         4.6.0-1.fc33                             updates                         446 k
 dnf-data                               noarch                         4.6.0-1.fc33                             updates                          47 k
 libdnf                                 x86_64                         0.58.0-1.fc33                            updates                         630 k
 python3-dnf                            noarch                         4.6.0-1.fc33                             updates                         414 k
 python3-hawkey                         x86_64                         0.58.0-1.fc33                            updates                         114 k
 python3-libdnf                         x86_64                         0.58.0-1.fc33                            updates                         786 k
 yum                                    noarch                         4.6.0-1.fc33                             updates                          44 k

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

Total download size: 2.4 M
Downloading Packages:
(1/7): dnf-data-4.6.0-1.fc33.noarch.rpm                                                                                63 kB/s |  47 kB     00:00    
(2/7): dnf-4.6.0-1.fc33.noarch.rpm                                                                                    341 kB/s | 446 kB     00:01    
(3/7): libdnf-0.58.0-1.fc33.x86_64.rpm                                                                                436 kB/s | 630 kB     00:01    
(4/7): python3-hawkey-0.58.0-1.fc33.x86_64.rpm                                                                        645 kB/s | 114 kB     00:00    
(5/7): python3-dnf-4.6.0-1.fc33.noarch.rpm                                                                            465 kB/s | 414 kB     00:00    
(6/7): yum-4.6.0-1.fc33.noarch.rpm                                                                                    278 kB/s |  44 kB     00:00    
(7/7): python3-libdnf-0.58.0-1.fc33.x86_64.rpm                                                                        1.5 MB/s | 786 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                 916 kB/s | 2.4 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                              1/1 
  Running scriptlet: libdnf-0.58.0-1.fc33.x86_64                                                                                                  1/1 
  Upgrading        : libdnf-0.58.0-1.fc33.x86_64                                                                                                 1/14 
  Upgrading        : python3-libdnf-0.58.0-1.fc33.x86_64                                                                                         2/14 
  Upgrading        : python3-hawkey-0.58.0-1.fc33.x86_64                                                                                         3/14 
  Upgrading        : dnf-data-4.6.0-1.fc33.noarch                                                                                                4/14 
  Upgrading        : python3-dnf-4.6.0-1.fc33.noarch                                                                                             5/14 
  Upgrading        : dnf-4.6.0-1.fc33.noarch                                                                                                     6/14 
  Running scriptlet: dnf-4.6.0-1.fc33.noarch                                                                                                     6/14 
  Upgrading        : yum-4.6.0-1.fc33.noarch                                                                                                     7/14 
  Cleanup          : yum-4.2.23-2.fc33.noarch                                                                                                    8/14 
  Running scriptlet: dnf-4.2.23-2.fc33.noarch                                                                                                    9/14 
  Cleanup          : dnf-4.2.23-2.fc33.noarch                                                                                                    9/14 
  Running scriptlet: dnf-4.2.23-2.fc33.noarch                                                                                                    9/14 
Warning: The unit file, source configuration file or drop-ins of dnf-makecache.timer changed on disk. Run 'systemctl daemon-reload' to reload units.

  Cleanup          : python3-dnf-4.2.23-2.fc33.noarch                                                                                           10/14 
  Cleanup          : python3-hawkey-0.48.0-4.fc33.x86_64                                                                                        11/14 
  Cleanup          : dnf-data-4.2.23-2.fc33.noarch                                                                                              12/14 
  Cleanup          : python3-libdnf-0.48.0-4.fc33.x86_64                                                                                        13/14 
  Cleanup          : libdnf-0.48.0-4.fc33.x86_64                                                                                                14/14 
  Running scriptlet: libdnf-0.48.0-4.fc33.x86_64                                                                                                14/14 
  Verifying        : dnf-4.6.0-1.fc33.noarch                                                                                                     1/14 
  Verifying        : dnf-4.2.23-2.fc33.noarch                                                                                                    2/14 
  Verifying        : dnf-data-4.6.0-1.fc33.noarch                                                                                                3/14 
  Verifying        : dnf-data-4.2.23-2.fc33.noarch                                                                                               4/14 
  Verifying        : libdnf-0.58.0-1.fc33.x86_64                                                                                                 5/14 
  Verifying        : libdnf-0.48.0-4.fc33.x86_64                                                                                                 6/14 
  Verifying        : python3-dnf-4.6.0-1.fc33.noarch                                                                                             7/14 
  Verifying        : python3-dnf-4.2.23-2.fc33.noarch                                                                                            8/14 
  Verifying        : python3-hawkey-0.58.0-1.fc33.x86_64                                                                                         9/14 
  Verifying        : python3-hawkey-0.48.0-4.fc33.x86_64                                                                                        10/14 
  Verifying        : python3-libdnf-0.58.0-1.fc33.x86_64                                                                                        11/14 
  Verifying        : python3-libdnf-0.48.0-4.fc33.x86_64                                                                                        12/14 
  Verifying        : yum-4.6.0-1.fc33.noarch                                                                                                    13/14 
  Verifying        : yum-4.2.23-2.fc33.noarch                                                                                                   14/14 

Upgraded:
  dnf-4.6.0-1.fc33.noarch                 dnf-data-4.6.0-1.fc33.noarch            libdnf-0.58.0-1.fc33.x86_64     python3-dnf-4.6.0-1.fc33.noarch    
  python3-hawkey-0.58.0-1.fc33.x86_64     python3-libdnf-0.58.0-1.fc33.x86_64     yum-4.6.0-1.fc33.noarch        

Complete!

Comment 1 Angelo Theodorakis 2021-03-04 20:02:59 UTC
*** Bug 1935377 has been marked as a duplicate of this bug. ***

Comment 2 Marek Blaha 2021-03-05 07:42:23 UTC
oops. Released version of `libdnf-0.58.0-1.fc33.x86_64` has wrong requirement on libmodulemd (>= 2.5.0 but at least version 2.11 is actually needed).
There is newer version of dnf in updates-testing (currently being pushed to stable) that fixes the issue - https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d7356a470

Comment 3 Michel Lind 2021-03-08 02:51:38 UTC
Update's stable

Comment 4 Jan Pazdziora (Red Hat) 2021-03-24 08:38:42 UTC
The same (or very similar) issue on Fedora 32 is bug 1942236.


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