LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-24-2011, 02:37 AM   #1
derchris
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Rep: Reputation: 0
yum not doing anything (Centos 5)


Hi,

I just set up a Centos distribution in a VirtualBox, it actually looks like everything looks fine so far. I can connect to the internet both with the browser and with my terminal (i.e. ssh and ping work).
The problem is that yum doesn't seem to find anything. When I do
Code:
yum update
it says:
Code:
Loadad Plugins: fastestmirror
Loading mirror speeds from cached hostfile
After that nothing happens. Please note, that it is not frozen: The terminal cursor is still blinking, when I hit CTRL+C i get a "Exiting on user cancel"
At first I thought it was fastestmirror, so I tried
Code:
yum --disablepluging=fastestmirror update
which resultet again in the blinking cursor but otherwise there were no other progresses.

So what's my problem?
 
Old 02-24-2011, 07:10 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Try running it with verbose output and see what comes up:

yum -v update
 
1 members found this post helpful.
Old 02-25-2011, 02:28 AM   #3
derchris
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Hey,

thank you, but unfortunately this didn't help me. Here is the unshortened console text (I've been waiting 2 minutes or so before I CTRL+C'ed yum in both cases):

Code:
[Chris@pcp257403pcs ~]$ sudo yum -v update
Loading "fastestmirror" plugin
Config time: 0.036
Yum Version: 3.2.22
Setting up Package Sacks
Loading mirror speeds from cached hostfile


Exiting on user cancel
[Chris@pcp257403pcs ~]$ sudo yum -v --disableplugin=fastestmirror update
Config time: 0.018
Yum Version: 3.2.22
Setting up Package Sacks


Exiting on user cancel
 
Old 02-25-2011, 02:42 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
The -v is verbose output, it won't help at all. It just displays more verbose; ie, errors, warnings, etc. First and foremost, post the output of the following command for me.

Code:
ls -al /etc/yum.repos.d/*
 
1 members found this post helpful.
Old 02-25-2011, 02:49 AM   #5
derchris
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Ok, sorry if you misunderstood me. I thought it would produce a little bit more helpful output (at least for me )


Code:
[Chris@pcp257403pcs TestGPG]$ ls -al /etc/yum.repos.d/*
-rw-r--r-- 1 root root 2245 Apr 26  2010 /etc/yum.repos.d/CentOS-Base.repo
-rw-r--r-- 1 root root  626 Apr 26  2010 /etc/yum.repos.d/CentOS-Media.repo
 
Old 02-25-2011, 02:59 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
That's what it does But unfortunately, it didn't. And thanks for that.

Do a yum clean all, and try again. I'm starting off easy for now just to verify that it isn't something small or dumb. Also, you are running yum update as root, correct?
 
1 members found this post helpful.
Old 02-25-2011, 03:11 AM   #7
derchris
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Hm. I was just changing to root and now it works. Thank you. But I'd be glad if you (or anyone else could explain me why
Code:
su root
yum update
works where as a
Code:
sudo yum update
doesnt?
 
Old 02-25-2011, 03:12 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
That's because using sudo doesn't give you the full path whereas su does. But glad to know it works! That's why I always go the easy route man. Mark your thread as solved and give rep. Thanks a lot! And good luck!
 
1 members found this post helpful.
  


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
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
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
CENTOS 4.4 and YUM metallica1973 Linux - Software 9 11-14-2006 02:51 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

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

All times are GMT -5. The time now is 02:14 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