LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2013, 11:16 AM   #1
novelbean
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Rep: Reputation: Disabled
Question after yum update, can't yum update yet, some error occured


i have installed centos6.4, after have yum update i cannot yum update again, there are some trouble as follows:

Traceback (most recent call last):
File "/usr/bin/yum", line 4, in <module>
import yum
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 46, in <module>
import tempfile
File "/usr/lib/python2.6/tempfile.py", line 34, in <module>
from random import Random as _Random
File "/usr/lib/python2.6/random.py", line 873, in <module>
_inst = Random()
File "/usr/lib/python2.6/random.py", line 96, in __init__
self.seed(x)
File "/usr/lib/python2.6/random.py", line 110, in seed
a = long(_hexlify(_urandom(16)), 16)
OSError: [Errno 2] No such file or directory: '/dev/urandom'

can someone tell how to resolve this problem?
thanks

Last edited by novelbean; 04-03-2013 at 11:21 AM.
 
Old 04-03-2013, 12:08 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The problem reported is the /dev/urandom is not available on your system. Since that device is a kernel psudo-device, its absence suggests that you installation was not done correctly.

As superuser ("root"), try the command mknod -m 644 /dev/urandom c 1 9 to create the (psudo) device. (See man random for details.)

That might clear up your current problem, but I strongly suspect that you'll have additional problems until you re-install your system.
 
Old 04-03-2013, 01:00 PM   #3
novelbean
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
thank you for your advice, after following your advice, i try the command mknod -m 644 /dev/urandom c 1 9, then yum update again , there is not new error prompt.
i have installed centos 6.4 in my PC with DVD1 completely,but not DVD2, i have not met this kind of problem in previous veriosn.

now no error occurs with yum update.

thank you for your suggestion.
 
Old 04-03-2013, 01:10 PM   #4
novelbean
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
i met another question after calibrated the yum update error
when i fdisk -l, there showed the following prompt:


cannot open /proc/partitions

what's wrong with this?

when i enter in the /proc directory, there is nothing in it.
 
Old 04-03-2013, 01:14 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the dvd2 is normally not needed
it has src.rpms on it
for 99.999% of installs it is not needed

when you installed 6.4
did you use the "minimal" install ( no gui) as in no gnome desktop

or
the STD install installing Gnome

or

did you use a "custom" install and pick and chose what to install
This last is known to have possible problems
if you did this

reinstall with the default programs

then after you update
remove what you really do not need
( that should only be a very few things )
 
Old 04-03-2013, 08:13 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think PTrenholme's last comment is likely correct..
Backup any important data and re-install is probably going to be quicker/simpler.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 12 `yum update -y` & ran out of space in my /var/yum/cache/directory. techknowtarded Linux - Newbie 7 08-13-2011 07:23 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration