Ask Your Question
0

yum and dnf broken?

asked 2015-12-28 15:03:09 -0600

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-28 19:12:12 -0600

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 gravatar imagejabbyjim ( 2015-12-29 13:03:46 -0600 )edit

Great ! Thanks for the feedback.

yolo gravatar imageyolo ( 2015-12-29 17:05:18 -0600 )edit
0

answered 2015-12-30 11:57:05 -0600

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

Question Tools

Stats

Asked: 2015-12-28 15:03:09 -0600

Seen: 2,807 times

Last updated: Dec 30 '15