LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No graphical login screen and no module named _sha256 (https://www.linuxquestions.org/questions/linux-newbie-8/no-graphical-login-screen-and-no-module-named-_sha256-694046/)

navinsasikumar 12-31-2008 07:34 AM

No graphical login screen and no module named _sha256
 
I use fedora 8, and i was updating some packages yesterday using yum extender. When i tried to reboot after updating, the graphical login screen refused to load. I got a blank screen with only a busy mouse pointer.

I booted into a virtual terminal and tried startx, but i got an error:
Code:

xauth: creating new authority file /root/.serverauth.12305

Fatal server error
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again.
Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: resource temporarily unavailable (errno 11): unable to connect to X server
xinit: No such process (errno 3): Server error.

So i tried deleting .X0-lock, and running stratx, and i got another error message:

Code:

xauth: creating new authority file /root/.serverauth.30643
_XSERVTransSocketUnixCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeA11COTSServerListeners: server already running

Fatal server error
Cannot establish any listening sockets - Make sure an X server isn't already running

Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: resource temporarily unavailable (errno 11): unable to connect to X server
xinit: No such process (errno 3): Server error.

Then i checked interactive startup, and found that libssl.so.6 was missing and there was an import error: no module named _sha256, when starting yum-updatesd.

Then i went back to the virtual terminal and tried using yum, i got a message stating:

Code:

There was a problem importing one of the python modules required to run yum. the error eading to this problem was:

No module named _sha256

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.5.1 (r251:54863, Oct 30, 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]

I tried checking if the package is there in the Fedora 8 CD, but when i cd to media and run ls, i get no results. And i can't access my other partitions nor the CD drive and USB drives.

Can someone please help me out? Thanks in advance.

anotherlinuxuser 01-03-2009 01:23 AM

It appears your install of python and/or openssl is messed up. This could explain both the X and the yum problems.
You didn't say if you are using 64 or 32 bit Fedora, so here's some things to try either way.

(Note: openssl comes in i386, i686, and x86_64 versions.)

First, see if your rpm command works or not, enter:
rpm -q python openssl

If you get response of "python-2.5.1-xx.fc8 and openssl-0.9.xx-xx", you may be able to force an re-install of python and openssl to fix the problem.
To force a reinstall of the rpms, manually download the rpms from a Fedora mirror. Using another computer, choose a mirror from the list at http://mirrors.fedoraproject.org/publiclist/Fedora/8 and search for the same version rpms as listed from the above rpm command. If you are using 64 bit Linux, you will need 1 x86_64 python rpm and both the i686 and x86_64 openssl rpms. In case yum was updating python and openssl, also download the newest versions of both python and openssl from the updates-newkey tree (python-2.5.1-26.fc8.2, openssl-0.9.8b-17.fc8).

Either put all the rpms onto a CD or USB drive, or use ftp (you probably can't use ssh/scp since openssl may be corrupt) to transfer the rpms to the affected system.

Try reinstalling the rpms without forcing first:

rpm -ivh python-2.5.1-xx.fc8.(x86_64 or i686).rpm openssl-0.9.xx-xx.fc8.(* or i686).rpm

If this fails with an error that the rpms are already installed, try updating to the newest rpms that you downloaded with the command:
rpm -Uvh python-2.5.1-xx.fc8.(x86_64 or i386).rpm openssl-0.9.xx-xx.fc8.(* or i686).rpm

If that fails with dependency errors, then force the older rpms to install with command:
rpm -ivh --force python-2.5.1-xx.fc8.(x86_64 or i386).rpm openssl-0.9.xx-xx.fc8.(* or i686).rpm

If the rpm command does not work at all, then you will need to create a tar archive of the files from another Fedora 8 system running the same 32 or 64 bit version.

To create the archive on the other system, use the commands:

cd /
tar -cvzf /tmp/pythonfix.tgz `rpm -ql python openssl`
(Note the use of the Grave Accent chars)

Transfer the the resulting /tmp/pythonfix.tgz file to the affected system, and untar it, as root, using the commands:
cd /
tar -xvzf /tmp/pythonfix.tgz

The tar file way is not a great way to do it, as there is no version/dependency/error checking done, but it may be your only choice.

Good luck.

navinsasikumar 01-04-2009 03:08 AM

Thanks a lot for your reply. I haven't followed your instructions yet. I'll be travelling to india in a few hours and won't have access to the internet for at least a week. but i hope to try out what you said as soon as possible and post the results. Thanks once again for your help.


All times are GMT -5. The time now is 04:45 PM.