Beste mensen,
Ik heb een probleem met mijn yum update. Als ik dit commando doe dan krijg ik de volgende error:
-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: Too many levels of symbolic links
Iemand enig idee hoe ik dit kan fixen.
Beste mensen,
Ik heb een probleem met mijn yum update. Als ik dit commando doe dan krijg ik de volgende error:
-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: Too many levels of symbolic links
Iemand enig idee hoe ik dit kan fixen.

Waarschijnlijk python stuk, doe eens ls -al /usr/bin/python
Dat zou een link moeten zijn naar een andere file, doe daar hetzelfde
Waarschijnlijk heb je ergens een symlink /usr/bin/python die naar zichzelf wijst. Symlink verwijderen en eventueel aanmaken naar de juiste locatie van python2.
Edit: vDong was iets eerder![]()
Dit is de output Zou iemand mij stap voor stap nu kunnen uitleggen wat ik moet doen.
thanks
[root@server1 ~]# ls -al /usr/bin/python
lrwxrwxrwx 1 root root 15 Sep 25 14:25 /usr/bin/python -> /usr/bin/python
rm -rf /usr/bin/python
ln -s /usr/bin/python2.4 /usr/bin/python
Edit: als je tenminste python2.4 gebruikt en daar ook als binary hebt staan
Deze stappen heb ik gevolgd maar krijg nu het volgende op yum update
[root@server1 ~]# yum update
-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
Inderdaad mijn excuus heb hem inmiddels aangepast naar 2.6.
Nu doe ik weer yum update en krijg nu dit
[root@server1 bin]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/usr/lib64/libcurl.so.4: undefined symbol: libssh2_knownhost_init
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jun 18 2012, 14:18:47)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Dan denk ik dat je pyhon hebt geupdate maar niet de modules die er allemaal bij horen en zul je de ontbrekende modules ook nog moeten installeren.
Dan ga ik maar eens even googlen hoe dat moet want zover gaat mijn kennis niet
Ik snap enkel niet wat dit inhoud.
/usr/lib64/libcurl.so.4: undefined symbol: libssh2_knownhost_init
Laatst gewijzigd door Dutchboy; 25/09/12 om 14:12.
Zou iemand mij de goie kant op kunnen en willen helpen bij google komt ook geen duidelijkheid uit
lubcurl of libssh2 updaten. Versies moeten wel matchen
Ik heb de bij behorende rpms uitgevoerd maar dit lost mijn probleem niet op. Zijn er nog meer mogelijkheden om dit te kunnen updaten

/usr/lib64/libcurl.so.4: undefined symbol: libssh2_knownhost_init
Dat kan je opzoeken door :
ldd /usr/lib64/libcurl.so.4
te doen, die verteld welke shared libs libcurl gebruikt. Er zal er waarschijnlijk 1 missing zeggen.
Die file moet je vervolgens opzoeken en de bijbehorende rpm erbij gooien.
Dit is de output
[root@server1 ~]# ldd /usr/lib64/libcurl.so.4
linux-vdso.so.1 => (0x00007ffff45fe000)
libidn.so.11 => /lib64/libidn.so.11 (0x00007fa22d738000)
libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007fa22d4ed000)
librt.so.1 => /lib64/librt.so.1 (0x00007fa22d2e4000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fa22d0a2000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fa22cdc3000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fa22cb96000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fa22c992000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fa22c77c000)
libssl3.so => /usr/lib64/libssl3.so (0x00007fa22c53f000)
libsmime3.so => /usr/lib64/libsmime3.so (0x00007fa22c313000)
libnss3.so => /usr/lib64/libnss3.so (0x00007fa22bfd7000)
libnssutil3.so => /usr/lib64/libnssutil3.so (0x00007fa22bdb0000)
libplds4.so => /lib64/libplds4.so (0x00007fa22bbac000)
libplc4.so => /lib64/libplc4.so (0x00007fa22b9a7000)
libnspr4.so => /lib64/libnspr4.so (0x00007fa22b769000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa22b54c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa22b348000)
libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x00007fa22b124000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa22ad92000)
liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007fa22ab83000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa22a968000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fa22a74e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa22dbc5000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fa22a543000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fa22a33f000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fa22a0e4000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fa229d49000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fa229b12000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fa2298f3000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fa229690000)
Wat moet dan nu verder doen ?