linux - dnf broken

System/Linux 2016. 12. 4. 09:27

- error message

[root@localhost ~]# dnf -y update

Traceback (most recent call last):

  File "/usr/bin/dnf", line 57, in <module>

    from dnf.cli import main

  File "/usr/lib/python3.5/site-packages/dnf/__init__.py", line 31, in <module>

    import dnf.base

  File "/usr/lib/python3.5/site-packages/dnf/base.py", line 26, in <module>

    from dnf.comps import CompsQuery

  File "/usr/lib/python3.5/site-packages/dnf/comps.py", line 29, in <module>

    import dnf.util

  File "/usr/lib/python3.5/site-packages/dnf/util.py", line 31, in <module>

    import librepo

  File "/usr/lib64/python3.5/site-packages/librepo/__init__.py", line 1070, in <module>

    import librepo._librepo

ImportError: /lib64/libcurl.so.4: undefined symbol: libssh2_scp_recv2

[root@localhost ~]# 


- error case

[root@localhost ~]# ldd -r /lib64/libcurl.so.4

linux-vdso.so.1 (0x00007ffea93c7000)

libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f94ce069000)

libidn2.so.0 => /lib64/libidn2.so.0 (0x00007f94cde32000)

libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x00007f94cdc09000)

libpsl.so.5 => /lib64/libpsl.so.5 (0x00007f94cd9fc000)

libssl3.so => /lib64/libssl3.so (0x00007f94cd7b0000)

libsmime3.so => /lib64/libsmime3.so (0x00007f94cd587000)

libnss3.so => /lib64/libnss3.so (0x00007f94cd25e000)

libnssutil3.so => /lib64/libnssutil3.so (0x00007f94cd030000)

libplds4.so => /lib64/libplds4.so (0x00007f94cce2c000)

libplc4.so => /lib64/libplc4.so (0x00007f94ccc27000)

libnspr4.so => /lib64/libnspr4.so (0x00007f94cc9e8000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f94cc7c8000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f94cc5c4000)

libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f94cc377000)

libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f94cc091000)

libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f94cbe60000)

libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f94cbc5c000)

liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007f94cba4b000)

libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007f94cb7fa000)

libz.so.1 => /lib64/libz.so.1 (0x00007f94cb5e4000)

libc.so.6 => /lib64/libc.so.6 (0x00007f94cb21e000)

libssl.so.10 => /lib64/libssl.so.10 (0x00007f94cafac000)

libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f94cab4c000)

libunistring.so.2 => /lib64/libunistring.so.2 (0x00007f94ca81a000)

librt.so.1 => /lib64/librt.so.1 (0x00007f94ca612000)

/lib64/ld-linux-x86-64.so.2 (0x0000560382e92000)

libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f94ca403000)

libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f94ca1ff000)

libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f94c9fe4000)

libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f94c9dc5000)

libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f94c9b9e000)

libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f94c9968000)

libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f94c96f5000)

libfreebl3.so => /lib64/libfreebl3.so (0x00007f94c94f2000)

undefined symbol: libssh2_scp_recv2 (/lib64/libcurl.so.4)


[root@localhost ~]# cat /etc/ld.so.conf.d/*

/usr/lib64/atlas

/usr/lib64/bind99

# Placeholder file, no vDSO hwcap entries used in this kernel.

# Placeholder file, no vDSO hwcap entries used in this kernel.

# Placeholder file, no vDSO hwcap entries used in this kernel.

/usr/lib64/iscsi

/usr/local/lib

/usr/lib64/mysql

/usr/lib64/nx

/usr/lib64/nx/X11

/usr/lib64/qt-3.3/lib

/usr/lib64/tcl8.6

/usr/lib/wine/

/usr/lib64/wine/

/usr/lib64/xulrunner


[root@localhost ld.so.conf.d]# ll 

합계 76K

drwxr-xr-x.   2 root root 4.0K 11월 27 22:13 .

drwxr-xr-x. 165 root root  12K 12월  4 07:55 ..

-rw-r--r--.   1 root root   17  2월  4  2016 atlas-x86_64.conf

-rw-r--r--.   1 root root   18 11월 11 21:44 bind99-x86_64.conf

-r--r--r--.   1 root root   63 11월 12 00:59 kernel-4.8.7-200.fc24.x86_64.conf

-r--r--r--.   1 root root   63 11월 16 05:01 kernel-4.8.8-200.fc24.x86_64.conf

-r--r--r--.   1 root root   63 11월 16 03:21 kernel-4.8.8-300.fc25.x86_64.conf

-rw-r--r--.   1 root root   17  2월  4  2016 libiscsi-x86_64.conf

-rw-r--r--.   1 root root   15  8월 15  2014 libssh2.conf

-rw-r--r--.   1 root root   17 11월 16 06:01 mariadb-x86_64.conf

-rw-r--r--.   1 root root   32  2월  5  2016 nx-libs-x86_64.conf

-rw-r--r--.   1 root root   22  3월 29  2016 qt-x86_64.conf

-rw-r--r--.   1 root root   18  2월  5  2016 tix-x86_64.conf

-rw-r--r--.   1 root root   15 11월  4 01:17 wine-32.conf

-rw-r--r--.   1 root root   17 11월  4 01:17 wine-64.conf

-rw-r--r--.   1 root root   21  7월 23 06:48 xulrunner-64.conf

[root@localhost ld.so.conf.d]# cat libssh2.conf

/usr/local/lib

[root@localhost ld.so.conf.d]# rm -rf libssh2.conf

[root@localhost ld.so.conf.d]# ldconfig

[root@localhost ~]# ldd -r /lib64/libcurl.so.4

linux-vdso.so.1 (0x00007ffd5e9a0000)

libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f41bba54000)

libidn2.so.0 => /lib64/libidn2.so.0 (0x00007f41bb81d000)

libssh2.so.1 => /lib64/libssh2.so.1 (0x00007f41bb5f0000)

libpsl.so.5 => /lib64/libpsl.so.5 (0x00007f41bb3e3000)

libssl3.so => /lib64/libssl3.so (0x00007f41bb197000)

libsmime3.so => /lib64/libsmime3.so (0x00007f41baf6e000)

libnss3.so => /lib64/libnss3.so (0x00007f41bac45000)

libnssutil3.so => /lib64/libnssutil3.so (0x00007f41baa17000)

libplds4.so => /lib64/libplds4.so (0x00007f41ba813000)

libplc4.so => /lib64/libplc4.so (0x00007f41ba60e000)

libnspr4.so => /lib64/libnspr4.so (0x00007f41ba3cf000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f41ba1af000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f41b9fab000)

libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f41b9d5e000)

libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f41b9a78000)

libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f41b9847000)

libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f41b9643000)

liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007f41b9432000)

libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007f41b91e1000)

libz.so.1 => /lib64/libz.so.1 (0x00007f41b8fcb000)

libc.so.6 => /lib64/libc.so.6 (0x00007f41b8c05000)

libssl.so.10 => /lib64/libssl.so.10 (0x00007f41b8993000)

libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f41b8533000)

libunistring.so.2 => /lib64/libunistring.so.2 (0x00007f41b8201000)

librt.so.1 => /lib64/librt.so.1 (0x00007f41b7ff9000)

/lib64/ld-linux-x86-64.so.2 (0x000055ca0959e000)

libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f41b7dea000)

libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f41b7be6000)

libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f41b79cb000)

libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f41b77ac000)

libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f41b7585000)

libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f41b734f000)

libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f41b70dc000)

libfreebl3.so => /lib64/libfreebl3.so (0x00007f41b6ed9000)

[root@localhost ~]#



- normal case

[root@x220 ~]# ldd -r /lib64/libcurl.so.4

linux-vdso.so.1 (0x00007ffe327fc000)

libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f06ca0a5000)

libidn2.so.0 => /lib64/libidn2.so.0 (0x00007f06c9e6e000)

libssh2.so.1 => /lib64/libssh2.so.1 (0x00007f06c9c41000)

libpsl.so.5 => /lib64/libpsl.so.5 (0x00007f06c9a34000)

libssl3.so => /lib64/libssl3.so (0x00007f06c97e8000)

libsmime3.so => /lib64/libsmime3.so (0x00007f06c95bf000)

libnss3.so => /lib64/libnss3.so (0x00007f06c9296000)

libnssutil3.so => /lib64/libnssutil3.so (0x00007f06c9068000)

libplds4.so => /lib64/libplds4.so (0x00007f06c8e64000)

libplc4.so => /lib64/libplc4.so (0x00007f06c8c5f000)

libnspr4.so => /lib64/libnspr4.so (0x00007f06c8a20000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f06c8800000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f06c85fc000)

libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f06c83af000)

libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f06c80c9000)

libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f06c7e98000)

libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f06c7c94000)

liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007f06c7a83000)

libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007f06c7832000)

libz.so.1 => /lib64/libz.so.1 (0x00007f06c761c000)

libc.so.6 => /lib64/libc.so.6 (0x00007f06c7256000)

libssl.so.10 => /lib64/libssl.so.10 (0x00007f06c6fe4000)

libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f06c6b84000)

libunistring.so.2 => /lib64/libunistring.so.2 (0x00007f06c6852000)

librt.so.1 => /lib64/librt.so.1 (0x00007f06c664a000)

/lib64/ld-linux-x86-64.so.2 (0x000055994161b000)

libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f06c643b000)

libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f06c6237000)

libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f06c601c000)

libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f06c5dfd000)

libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f06c5bd6000)

libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f06c59a0000)

libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f06c572d000)

libfreebl3.so => /lib64/libfreebl3.so (0x00007f06c552a000)


[root@x220 ~]# cat /etc/ld.so.conf.d/*

/usr/lib64/atlas

/usr/lib64/bind99

# Placeholder file, no vDSO hwcap entries used in this kernel.

# Placeholder file, no vDSO hwcap entries used in this kernel.

# Placeholder file, no vDSO hwcap entries used in this kernel.

/usr/lib64/iscsi

/usr/lib64/mysql

/usr/lib64/nx

/usr/lib64/nx/X11

/usr/lib64/qt-3.3/lib

/usr/lib64/tcl8.6

/usr/lib/wine/

/usr/lib64/wine/

[root@x220 ~]# 

[root@x220 ~]# cd /etc/ld.so.conf.d

[root@x220 ld.so.conf.d]# ll

합계 64K

drwxr-xr-x.   2 root root 4.0K 11월 30 21:50 .

drwxr-xr-x. 152 root root  12K 12월  4 08:42 ..

-rw-r--r--.   1 root root   17  2월  4  2016 atlas-x86_64.conf

-rw-r--r--.   1 root root   18 11월 11 21:44 bind99-x86_64.conf

-r--r--r--.   1 root root   63 11월 22 04:17 kernel-4.8.10-300.fc25.x86_64.conf

-r--r--r--.   1 root root   63 11월 16 05:01 kernel-4.8.8-200.fc24.x86_64.conf

-r--r--r--.   1 root root   63 11월 16 03:21 kernel-4.8.8-300.fc25.x86_64.conf

-rw-r--r--.   1 root root   17  2월  4  2016 libiscsi-x86_64.conf

-rw-r--r--.   1 root root   17 11월 16 06:01 mariadb-x86_64.conf

-rw-r--r--.   1 root root   32  2월  5  2016 nx-libs-x86_64.conf

-rw-r--r--.   1 root root   22  3월 29  2016 qt-x86_64.conf

-rw-r--r--.   1 root root   18  2월  5  2016 tix-x86_64.conf

-rw-r--r--.   1 root root   15 11월  4 01:17 wine-32.conf

-rw-r--r--.   1 root root   17 11월  4 01:17 wine-64.conf

[root@x220 ld.so.conf.d]#



Posted by linuxism
,