English
Ask Your Question
0

yum and dnf broken?

asked 2015-12-28 21:03:09 +0000

jabbyjim gravatar image

I'm not sure how it happened but now typing dnf OR yum gives me the same error every-time. Version of Fedora is Fedora (4.2.6-300.fc23.x86_64) 23 (Workstation Edition)

I am at a loss in what to do. It looks like at one time this was an issue for people but the solutions don't work for me (since I cannot do either yum or dnf). Is it simply just python?

    [root@Gretchen ~]# yum
Yum command has been deprecated, redirecting to '/usr/bin/dnf '.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Traceback (most recent call last):
  File "/usr/bin/dnf", line 56, 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 26, in <module>
    from dnf.comps import CompsQuery
  File "/usr/lib/python3.4/site-packages/dnf/comps.py", line 29, in <module>
    import dnf.util
  File "/usr/lib/python3.4/site-packages/dnf/util.py", line 31, in <module>
    import librepo
  File "/usr/lib64/python3.4/site-packages/librepo/__init__.py", line 1001, in <module>
    import librepo._librepo
ImportError: libidn.so.11: cannot open shared object file: No such file or directory
[root@Gretchen ~]# dnf
Traceback (most recent call last):
  File "/usr/bin/dnf", line 56, 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 26, in <module>
    from dnf.comps import CompsQuery
  File "/usr/lib/python3.4/site-packages/dnf/comps.py", line 29, in <module>
    import dnf.util
  File "/usr/lib/python3.4/site-packages/dnf/util.py", line 31, in <module>
    import librepo
  File "/usr/lib64/python3.4/site-packages/librepo/__init__.py", line 1001, in <module>
    import librepo._librepo
ImportError: libidn.so.11: cannot open shared object file: No such file or directory
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-12-29 01:12:12 +0000

Please run locate libidn.so and you should see the files's list of this library in /usr/lib64/

1- If no any file : you need to download libidn-1.32-1.fc23.x86_64.rpm.

Then run sudo rpm -U libidn-1.32-1.fc23.x86_64.rpm to install/upgrade it.

2- If libidn.so.11.X.XX exists but not libidn.so.11, you need to create a symbolic link with this command : ln -s /path/to/file /path/to/symlink so ln -s /usr/lib64/libidn.so.11.X.XX /usr/lib64/libidn.so.11

edit flag offensive delete link more

Comments

I was able to locate the file but it wasn't where it was supposed to be.. just ran the rpm and that fixed everything. Thank you!!!!

jabbyjim ( 2015-12-29 19:03:46 +0000 )edit

Great ! Thanks for the feedback.

yolo ( 2015-12-29 23:05:18 +0000 )edit
0

answered 2015-12-30 17:57:05 +0000

sergiomb gravatar image

please try :

yum-deprecated install libidn

may fix dnf

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2015-12-28 21:03:09 +0000

Seen: 2,523 times

Last updated: Dec 30 '15