I updated my centos 4.5 server to centos last week and I am now getting errors when I attempt to do a yum update:
[root@AJD-slag ~]# yum update Loading "installonlyn" plugin Plugin "fastestmirror" uses deprecated constant TYPE_INTERFACE. Please use TYPE_INTERACTIVE instead. Loading "fastestmirror" plugin Setting up Update Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Determining fastest mirrors Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 94, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 381, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 672, in updatePkgs self.doRepoSetup() File "/usr/share/yum-cli/cli.py", line 104, in doRepoSetup yum.YumBase.doRepoSetup(self, thisrepo=thisrepo) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 313, in doRepoSetup self.plugins.run('postreposetup') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/fastestmirror.py", line 78, in postreposetup_hook repo.set('urls', repomirrors[str(repo)]) AttributeError: 'YumRepository' object has no attribute 'set'
Any suggestions, Google has not been my friend today.
Thanks,
Aron
On Nov 15, 2007 2:43 PM, Aron.Darling@emulex.com wrote:
I updated my centos 4.5 server to centos last week and I am now getting errors when I attempt to do a yum update
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 313, in
This line right here looks very suspicious to me, as centos 4.x doesn't have python 2.4, it comes with 2.3.x.
Any suggestions, Google has not been my friend today.
Where'd you get your python install from?
On Thu, 2007-11-15 at 15:04 -0500, Jim Perrin wrote:
On Nov 15, 2007 2:43 PM, Aron.Darling@emulex.com wrote:
I updated my centos 4.5 server to centos last week and I am now getting errors when I attempt to do a yum update
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 313, in
This line right here looks very suspicious to me, as centos 4.x doesn't have python 2.4, it comes with 2.3.x.
Any suggestions, Google has not been my friend today.
Where'd you get your python install from?
I suppose the line 'updated my centos 4.5 server to centos last week' means 'updated my centos 4.5 server to centos 5 last week' ... that can explain the python 2.4 stuff .. Anyway, why not disabling the fastestmirror plugin temporary ? Check for enabled= in /etc/yum/pluginconf.d/fastestmirror.conf Then update and see it that packages was not left behind after your upgrade to 5 .. (if that was the case ..)
Didn't like the fastest mirror plugin. Thanks for all the help.
Aron
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Fabian Arrotin Sent: Thursday, November 15, 2007 12:56 PM To: CentOS mailing list Subject: Re: [CentOS] Yum update fails
On Thu, 2007-11-15 at 15:04 -0500, Jim Perrin wrote:
On Nov 15, 2007 2:43 PM, Aron.Darling@emulex.com wrote:
I updated my centos 4.5 server to centos last week and I am now getting errors when I attempt to do a yum update
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 313,
in
This line right here looks very suspicious to me, as centos 4.x doesn't have python 2.4, it comes with 2.3.x.
Any suggestions, Google has not been my friend today.
Where'd you get your python install from?
I suppose the line 'updated my centos 4.5 server to centos last week' means 'updated my centos 4.5 server to centos 5 last week' ... that can explain the python 2.4 stuff .. Anyway, why not disabling the fastestmirror plugin temporary ? Check for enabled= in /etc/yum/pluginconf.d/fastestmirror.conf Then update and see it that packages was not left behind after your upgrade to 5 .. (if that was the case ..)
-- Fabian Arrotin fabian.arrotin@arrfab.net Solution ? echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc