Webmaster Forum

Go Back   Webmaster Forum > The Webmaster Forums > Tech Talk

Tech Talk Discuss computer issues, tech gadgets and hardware, operating systems, browsers, broadband and wireless, virus, trojan, and spyware help.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 10-01-2012, 07:39 PM
cloudfire's Avatar
cloudfire cloudfire is offline
Contributing Member
 
Join Date: 08-28-12
Location: Ohio
Posts: 91
iTrader: 0 / 0%
yum issue (centos 5)

Anybody have any idea what i can do to fix this? Every time i try to run yum on my server i get.

Quote:
Insufficient server config - no servers found. Aborting.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 10-02-2012, 07:21 AM
Dan Williamson Dan Williamson is offline
The Controversial Coder
 
Join Date: 05-01-06
Location: Manchester; UK
Posts: 2,710
iTrader: 0 / 0%
What is in your yum.conf file? It sounds like it's not been configured, did you properly install YUM?

Check the suggestions here.
 
Reply With Quote
  #3  
Old 10-02-2012, 08:03 AM
cloudfire's Avatar
cloudfire cloudfire is offline
Contributing Member
 
Join Date: 08-28-12
Location: Ohio
Posts: 91
iTrader: 0 / 0%
Following that guide; now when i do anything with yum i get
Quote:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

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.4.3 (#1, Jun 18 2012, 08:55:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Yum used to work, I'm not sure what happened to it. Is there a way to remove yum and reinstall it through?

this is what is in my yum main file. (yum.conf)
Quote:
[root@node1 ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
 
Reply With Quote
  #4  
Old 10-03-2012, 09:26 AM
Dan Williamson Dan Williamson is offline
The Controversial Coder
 
Join Date: 05-01-06
Location: Manchester; UK
Posts: 2,710
iTrader: 0 / 0%
I'm not too sure about removing/re-installing YUM - it's something that I have rarely used, I am more familiar with other managers. It might be best either rolling back to before you did the change (assuming that you keep backups) or requesting support on the Official CentOs help board as they'd be able to help you more.
 
Reply With Quote
  #5  
Old 10-16-2012, 06:36 AM
numaniaw numaniaw is offline
Banned
 
Join Date: 07-05-12
Posts: 90
iTrader: 0 / 0%
Quote:
Originally Posted by cloudfire View Post
Anybody have any idea what i can do to fix this? Every time i try to run yum on my server i get.
It seems that you've installed a version of yum that is not compatible with your system.
If the errors are really yum errors and not actually rpm errors, you can download the yum version you need and just "rpm -ihv --replacepkgs yum-.rpm". May need to add the "--force" rpm option.


Since Yum does not have a force flag, rpm commands must be used along with Yum to do some heavy lifting. Here are a few ways to force the reinstall of a broken package on a Yum Managed system.

Yum Remove and then Install

The easiest solution is to yum remove the package and then yum install the same package. If there are too many dependencies at stake with the package in question, try another method.

yum remove PACKAGE
yum install PACKAGE

Force Erase and then Yum Install

RPM dependencies sometimes make a simple yum remove impossible and Yum will want to erase your entire OS before moving on. In this case, use rpm to force erase, then yum to install.

rpm -e --nodeps PACKAGE
yum install PACKAGE

Prune RPM Database and then Yum Install

If your package install is so corrupted that an rpm -e is dangerous or impossible, even with --nodeps, remove the package from the local RPM database to trick yum into reinstalling the package. No files are deleted when using rpm -e with --justdb.

rpm -e --justdb --nodeps PACKAGE
yum install PACKAGE
 
Reply With Quote
Go Back   Webmaster Forum > The Webmaster Forums > Tech Talk

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS Security GH_Dom Tech Talk 1 10-26-2011 02:24 PM
Good CentOS 5 Vps? Karooki Dedicated Servers 3 11-19-2009 08:21 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:38 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC