PDA

View Full Version : Python issues in Yum


Hunkah
23rd September 2009, 04:44 PM
Hello everyone, I somehow listened to an online walk-through to upgrade to the next big version of Fedora! The day I did that, I haven't been able to log in to graphical mode. It keeps rebooting. So I have been daily logging in through the command line, and yum updating, to see if it will fix the problem. Now, I can't even yum update!

Can someone help me? Or help me downgrade back to F11?

Thanks.

Here is what happens:


# yum -y --disablerepo=* --enablerepo=rawhide update --skip-broken
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/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.2 (r262:71600, Jul 30 2009, 17:09:09)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-3)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

glennzo
23rd September 2009, 10:51 PM
Keeps rebooting or does it keep going back to the log in screen?

ryptyde
24th September 2009, 01:09 AM
I have F12 installed to an Acer Aspire One and after updating today I get the same error message:/usr/lib/libcurl.so.4: undefined symbol: libssh2_knownhost_init
dont have a reboot problem but neither epiphany or firefox run now and crash on start up.

Guess Xfce testing is out of the question now unless I can figure out how to back out of the recent updates or satisfy the missing dependency causing the break. This is the first real stumbling block for me so far with F12. :)

jvillain
24th September 2009, 02:12 AM
The dependancy will probably show up in the next couple of days.

Hunkah
24th September 2009, 02:47 AM
Keeps rebooting or does it keep going back to the log in screen?

Sorry, Log in screen. It used to reboot or lock up, but after about a week of doing the "yum update" it now only goes back to the log in screen.

glennzo
24th September 2009, 09:26 AM
Sorry, Log in screen. It used to reboot or lock up, but after about a week of doing the "yum update" it now only goes back to the log in screen.Use CTRL/ALT/F2 to get to a virtual terminal. Log in as root. Type yum downgrade xorg-x11-server-Xorg
Reboot. This worked for me. It solved the problem that you are describing.

glennzo
24th September 2009, 09:28 AM
I have F12 installed to an Acer Aspire One and after updating today I get the same error message:
dont have a reboot problem but neither epiphany or firefox run now and crash on start up.

Guess Xfce testing is out of the question now unless I can figure out how to back out of the recent updates or satisfy the missing dependency causing the break. This is the first real stumbling block for me so far with F12. :)
You've probably rebooted by now Ryptyde? I tried yum updating my F12 system last night and got the same error. A reboot fixed things right up.

Hunkah
24th September 2009, 03:15 PM
Use CTRL/ALT/F2 to get to a virtual terminal. Log in as root. Type yum downgrade xorg-x11-server-Xorg
Reboot. This worked for me. It solved the problem that you are describing.

I would love to do this, but we are back to the original issue... I can't "yum" anything!

Yum is broken.

Hunkah
24th September 2009, 06:28 PM
OK, I went to that link at the bottom
http://wiki.linux.duke.edu/YumFaq

...and followed what it said, and this is what I got.

Only I can't make sense of it.


]# python
Python 2.6.2 (r262:71600, Jul 30 2009, 17:09:09)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 39, in <module>
import config
File "/usr/lib/python2.6/site-packages/yum/config.py", line 29, in <module>
from parser import ConfigPreProcessor, varReplace
File "/usr/lib/python2.6/site-packages/yum/parser.py", line 3, in <module>
import urlgrabber
File "/usr/lib/python2.6/site-packages/urlgrabber/__init__.py", line 55, in <module>
from grabber import urlgrab, urlopen, urlread
File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 407, in <module>
import pycurl
ImportError: /usr/lib/libcurl.so.4: undefined symbol: libssh2_knownhost_init
>>>

glennzo
24th September 2009, 08:45 PM
I would love to do this, but we are back to the original issue... I can't "yum" anything!

Yum is broken.Umm... Yeah. Forget I said anything. Sometimes I get lost along the way. I think I stumbled in here by accident :rolleyes:

ryptyde
24th September 2009, 09:03 PM
Umm... Yeah. Forget I said anything. Sometimes I get lost along the way. I think I stumbled in here by accident :rolleyes:

Hey you're not getting off that easy pull up a seat and stay a while. :)

I have managed to fix the yum issue and also my web browser problem.

Downloaded and installed libcurl-7.19.6-8.fc12.i686.rpm libssh2-1.2-2.fc12.i686.rpm from RPMFIND (http://www.rpmfind.net/linux/RPM/index.html) to fix yum and then as a quick fix for the browsers set selinux to permissive. :)

Now I'm back in the game and hoping not to get sidelined soon. :D

a couple of more smilies and you might think a "bee" stung me. :) :cool: :p ;)

Hunkah
24th September 2009, 09:37 PM
Frig, I was going along fine, but now I am stuck again.

# rpm -ivh libssh2-1.2-2.fc12.i686.rpm
error: Failed dependencies:
libcrypto.so.10 is needed by libssh2-1.2-2.fc12.i686
libssl.so.10 is needed by libssh2-1.2-2.fc12.i686


So to get them, I needed openssl-1.0.0-0.7.beta3.fc12.i686.rpm

When I went to install it, I got.


# rpm -Uvh openssl-1.0.0-0.7.beta3.fc12.i686.rpm
error: Failed dependencies:
libcrypto.so.8 is needed by (installed) rb_libtorrent-0.14.4-2.fc12.i686
libcrypto.so.8 is needed by (installed) ekiga-3.2.5-3.fc12.i686
libcrypto.so.8 is needed by (installed) sendmail-8.14.3-6.fc12.i686
libcrypto.so.8 is needed by (installed) libssh2-1.0-3.fc12.i686
libcrypto.so.8 is needed by (installed) ecore-0.9.9.050-6.fc12.i686
libcrypto.so.8 is needed by (installed) libjingle-0.3.12-5.fc12.i686
libcrypto.so.8 is needed by (installed) rb_libtorrent-python-0.14.4-2.fc12.i686
libcrypto.so.8 is needed by (installed) xmms2-0.5-7.fc12.i686
libcrypto.so.8 is needed by (installed) wget-1.11.4-4.fc12.i686
libcrypto.so.8 is needed by (installed) mysql-embedded-5.1.36-1.fc12.i586
libcrypto.so.8 is needed by (installed) stunnel-4.27-4.i686
libcrypto.so.8 is needed by (installed) openssh-clients-5.2p1-17.fc12.i686
libcrypto.so.8 is needed by (installed) wpa_supplicant-1:0.6.8-5.fc12.i686
libcrypto.so.8 is needed by (installed) gstreamer-plugins-bad-0.10.13-3.fc11.i586
libcrypto.so.8 is needed by (installed) libfprint-0.1.0-10.pre2.fc12.i686
libcrypto.so.8 is needed by (installed) gmyth-0.7.1-10.fc12.1.i686
libcrypto.so.8 is needed by (installed) openssh-5.2p1-17.fc12.i686
libcrypto.so.8 is needed by (installed) bind-utils-32:9.6.1-7.P1.fc12.i686
libcrypto.so.8 is needed by (installed) openssh-server-5.2p1-17.fc12.i686
libcrypto.so.8 is needed by (installed) ntp-4.2.4p7-4.fc12.i686
libcrypto.so.8 is needed by (installed) gstreamer-plugins-bad-extras-0.10.13-3.fc11.i586
libcrypto.so.8 is needed by (installed) bind-libs-32:9.6.1-7.P1.fc12.i686
libcrypto.so.8 is needed by (installed) opal-3.6.4-3.fc12.i686
libcrypto.so.8 is needed by (installed) telepathy-salut-0.3.9-2.fc12.i686
libcrypto.so.8 is needed by (installed) fipscheck-1.2.0-2.fc12.i686
libcrypto.so.8 is needed by (installed) python-2.6.2-1.fc12.i686
libcrypto.so.8 is needed by (installed) gpac-libs-0.4.5-7.fc11.i586
libcrypto.so.8 is needed by (installed) mysql-libs-5.1.36-1.fc12.i586
libcrypto.so.8 is needed by (installed) gnome-vfs2-2.24.1-8.fc12.i686
libcrypto.so.8 is needed by (installed) cyrus-sasl-md5-2.1.23-1.fc12.i686
libcrypto.so.8 is needed by (installed) libarchive-2.7.1-1.fc12.i686
libcrypto.so.8 is needed by (installed) httpd-tools-2.2.13-1.fc12.i686
libcrypto.so.8 is needed by (installed) postgresql-libs-8.4.0-1.fc12.i686
libcrypto.so.8 is needed by (installed) cyrus-sasl-2.1.23-1.fc12.i686
libcrypto.so.8 is needed by (installed) fetchmail-6.3.11-2.fc12.i686
libcrypto.so.8 is needed by (installed) net-snmp-libs-1:5.4.2.1-15.fc12.i686
libcrypto.so.8 is needed by (installed) net-snmp-1:5.4.2.1-15.fc12.i686
libcrypto.so.8 is needed by (installed) qt-1:4.5.2-10.fc12.i686
libcrypto.so.8 is needed by (installed) tcpdump-14:4.0.0-1.20090818git832d2c.fc12.i686
libcrypto.so.8 is needed by (installed) ptlib-2.6.4-3.fc12.i686
libcrypto.so.8 is needed by (installed) openoffice.org-core-1:3.1.1-19.2.fc12.i686
libcrypto.so.8 is needed by (installed) evolution-data-server-2.27.91-1.fc12.i686
libcrypto.so.8 is needed by (installed) openldap-2.4.16-4.fc12.i686
libcrypto.so.8 is needed by (installed) transmission-1.74-2.fc12.i686
libcrypto.so.8 is needed by (installed) xorg-x11-server-Xorg-1.6.99-41.20090825.fc12.i686
libcrypto.so.8 is needed by (installed) hplip-libs-3.9.8-11.fc12.i686
libcrypto.so.8 is needed by (installed) hpijs-1:3.9.8-11.fc12.i686
libcrypto.so.8 is needed by (installed) libsane-hpaio-3.9.8-11.fc12.i686
libcrypto.so.8 is needed by (installed) hplip-3.9.8-11.fc12.i686
libssl.so.8 is needed by (installed) rb_libtorrent-0.14.4-2.fc12.i686
libssl.so.8 is needed by (installed) ekiga-3.2.5-3.fc12.i686
libssl.so.8 is needed by (installed) sendmail-8.14.3-6.fc12.i686
libssl.so.8 is needed by (installed) libssh2-1.0-3.fc12.i686
libssl.so.8 is needed by (installed) ecore-0.9.9.050-6.fc12.i686
libssl.so.8 is needed by (installed) libjingle-0.3.12-5.fc12.i686
libssl.so.8 is needed by (installed) rb_libtorrent-python-0.14.4-2.fc12.i686
libssl.so.8 is needed by (installed) xmms2-0.5-7.fc12.i686
libssl.so.8 is needed by (installed) wget-1.11.4-4.fc12.i686
libssl.so.8 is needed by (installed) mysql-embedded-5.1.36-1.fc12.i586
libssl.so.8 is needed by (installed) stunnel-4.27-4.i686
libssl.so.8 is needed by (installed) wpa_supplicant-1:0.6.8-5.fc12.i686
libssl.so.8 is needed by (installed) gstreamer-plugins-bad-0.10.13-3.fc11.i586
libssl.so.8 is needed by (installed) gmyth-0.7.1-10.fc12.1.i686
libssl.so.8 is needed by (installed) gstreamer-plugins-bad-extras-0.10.13-3.fc11.i586
libssl.so.8 is needed by (installed) opal-3.6.4-3.fc12.i686
libssl.so.8 is needed by (installed) telepathy-salut-0.3.9-2.fc12.i686
libssl.so.8 is needed by (installed) python-2.6.2-1.fc12.i686
libssl.so.8 is needed by (installed) gpac-libs-0.4.5-7.fc11.i586
libssl.so.8 is needed by (installed) mysql-libs-5.1.36-1.fc12.i586
libssl.so.8 is needed by (installed) gnome-vfs2-2.24.1-8.fc12.i686
libssl.so.8 is needed by (installed) httpd-tools-2.2.13-1.fc12.i686
libssl.so.8 is needed by (installed) postgresql-libs-8.4.0-1.fc12.i686
libssl.so.8 is needed by (installed) fetchmail-6.3.11-2.fc12.i686
libssl.so.8 is needed by (installed) qt-1:4.5.2-10.fc12.i686
libssl.so.8 is needed by (installed) ptlib-2.6.4-3.fc12.i686
libssl.so.8 is needed by (installed) openoffice.org-core-1:3.1.1-19.2.fc12.i686
libssl.so.8 is needed by (installed) evolution-data-server-2.27.91-1.fc12.i686
libssl.so.8 is needed by (installed) openldap-2.4.16-4.fc12.i686
libssl.so.8 is needed by (installed) transmission-1.74-2.fc12.i686
libssl.so.8 is needed by (installed) xorg-x11-server-Xorg-1.6.99-41.20090825.fc12.i686


So I am guessing this is what they mean by dependency hell? I have heard the term, but never knew what it meant.

Demz
25th September 2009, 01:54 AM
libcrypto.so.10 is needed by libssh2-1.2-2.fc12.i686
libssl.so.10 is needed by libssh2-1.2-2.fc12.i686 should be in rawhide repo but i cannot see libssl.so.8 in rawhide

Hunkah
25th September 2009, 02:47 AM
So am I screwed at this point then? I can't log into the GUI, I am unable to YUM I can't update YUM and I have no way to downgrade either.

Am I looking at a reinstall of F11?

ryptyde
25th September 2009, 03:08 AM
So am I screwed at this point then? I can't log into the GUI, I am unable to YUM I can't update YUM and I have no way to downgrade either.

Am I looking at a reinstall of F11?

That may be the way to go. If you "upgraded" from F11 to rawhide it would definitely guarantee difficulties more so than say going from the current stable release to the next stable one. I installed the first Live Alpha of F12 to a usb device then installed to hdd on a Acer Aspire One.

If you have data that you want to save and choose to reinstall use a livecd/usb to get the data off your drive. Either reinstall F11 or grab the latest F12 live image and see how it works before installing. :)

Demz
25th September 2009, 03:32 AM
us this package ane or F12 one? libssl.so.8 it might b best to download the snap3 an install that an remove the current install ( start from scratch

jvillain
25th September 2009, 05:53 AM
I have to ask. Is this a machine that you need running 100% all the time? If so you should not be running alpha or beta software and I would load F11 then wait for the release of version of F12. If on the other hand this machine isn't critical then I would just wait a day or two for the latest version of libssl to get pushed out.

Loading in packages from other places may fix your problem short term but also comes with the risk of creating other issues. There may be a dependency in the package that you just installed that may break the next time you upgrade or the time after that. If you really know what you are doing and the issues then go ahead. But if you know that much you wouldn't be in here asking the questions you are.

Hunkah
25th September 2009, 03:38 PM
It is a crappy old machine that I use to test Linux distros. My favorite being Fedora. I don't really like using anything else, but I still test them.

I do use this machine as a file server as well... which even though I am having all these issues, it is still performing as well as it ever has. (one of the reasons why I love Linux so much).

Eventually one day, I want to use Linux as my everyday machine, but there are still a few features that I feel are lacking before I can make the commitment.

In the last 3 years, I have been glued to the amazing advancements and can see myself switching soon.

Bilgoraj Travel Photos - Abinsk - Manjo Photos on Instagram