Ask Your Question
1

Getting "error: Failed to initialize NSS library" just by running dnf

asked 2016-06-09 05:32:15 -0500

phu004 gravatar image

Hi guys,

I think i have messed up my file system (64bits fedora 23) by running conda as sudo, now every time I run "dnf" on the console i get the following:

error: Failed to initialize NSS library
Traceback (most recent call last):
File "/bin/dnf", line 57, in <module>
    from dnf.cli import main
File "/usr/lib/python3.4/site-packages/dnf/__init__.py", line 31, in <module>
    import dnf.base
File "/usr/lib/python3.4/site-packages/dnf/base.py", line 30, in <module>
    from dnf.yum import history
File "/usr/lib/python3.4/site-packages/dnf/yum/history.py", line 31, in <module>
    import dnf.rpm.miscutils
File "/usr/lib/python3.4/site-packages/dnf/rpm/__init__.py", line 22, in <module>
    from . import transaction
File "/usr/lib/python3.4/site-packages/dnf/rpm/transaction.py", line 14, in <module>
    import rpm
File "/usr/lib64/python3.4/site-packages/rpm/__init__.py", line 39, in <module>
    from rpm.transaction import *
File "/usr/lib64/python3.4/site-packages/rpm/transaction.py", line 5, in <module>
    from rpm._rpm import ts as TransactionSetCore
ImportError: cannot import name 'ts'

Could any one suggest what might have gone wrong here? Thanks in advance!

edit retag flag offensive close merge delete

Comments

Good morning dnf

gobigobi66 gravatar imagegobigobi66 ( 2016-06-09 21:05:53 -0500 )edit

got the same issue, I installed glibc.i686 just before.

kappaloff gravatar imagekappaloff ( 2016-06-13 08:42:04 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-07-17 04:44:55 -0500

boyd gravatar image

Fedora 23 is end of life a long time ago so a system upgrade (from bootable media) will fix your problem and give you a way better fedora experience. That said...

The following will show broken dependencies on your system

rpm -Va --nofiles --nodigest

When you see what libraries packages are missing, you will have to go to another system, download the files from a mirror (where you can still find F23) and manually install with rpm. Dump the files in a directory and run:

rpm -Uvh --force *.rpm

This may take some work and you may have to install a few files one by one to solve dependency issues, but its fixable. Otherwise please just upgrade your system. Don't work with old unsupported software.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-09 05:32:15 -0500

Seen: 2,630 times

Last updated: Jun 09 '16