LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-09-2013, 09:48 AM   #1
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Rep: Reputation: 3
yum update not working


Hello guys,

When i type yum update i get the following results:

[root@localhost ~]# yum update

Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: ftp.ines.lug.ro
* epel: mirror.astpage.ru
* extras: mirrors.ch-center.com
* updates: mirrors.ch-center.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python-ethtool.i686 0:0.6-1.el6 will be updated
---> Package python-ethtool.i386 0:0.6-2.el5 will be an update
--> Processing Dependency: python(abi) = 2.4 for package: python-ethtool-0.6-2.el5.i386
--> Finished Dependency Resolution
Error: Package: python-ethtool-0.6-2.el5.i386 (epel)
Requires: python(abi) = 2.4
Installed: python-2.6.6-29.el6_3.3.i686 (@updates)
python(abi) = 2.6
Available: python-2.6.6-29.el6_2.2.i686 (base)
python(abi) = 2.6
Available: python26-2.6.8-2.el5.i386 (epel)
python(abi) = 2.6
You could try using --skip-broken to work around the problem


When i type yum update --skip-broken the command is working fine.

Any ideas?

Last edited by LeoPap; 01-09-2013 at 10:23 AM.
 
Old 01-09-2013, 11:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Quote:
Originally Posted by LeoPap View Post
Code:
---> Package python-ethtool.i686 0:0.6-1.el6 will be updated
---> Package python-ethtool.i386 0:0.6-2.el5 will be an update
Why are you mixing EL5 and EL6 packages?
 
Old 01-09-2013, 11:31 AM   #3
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by unSpawn View Post
Why are you mixing EL5 and EL6 packages?
I have no idea how this come up..!!

How should i proceed now?
 
Old 01-09-2013, 11:53 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
What does
Code:
rpm -qf /etc/yum.repos.d/*
say?
 
Old 01-09-2013, 11:55 AM   #5
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Original Poster
Rep: Reputation: 3
Here are the results..


[root@localhost ~]# rpm -qf /etc/yum.repos.d/*
centos-release-6-3.el6.centos.9.i686
centos-release-6-3.el6.centos.9.i686
centos-release-6-3.el6.centos.9.i686
centos-release-6-3.el6.centos.9.i686
epel-release-5-4.noarch
epel-release-5-4.noarch
 
Old 01-09-2013, 12:17 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
What does
Code:
cat /etc/yum.repos.d/epel.repo
return?
*BTW for CentOS 6 and RHEL6 epel-release-6-8 is current IIRC.
 
Old 01-09-2013, 12:20 PM   #7
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Original Poster
Rep: Reputation: 3
Results:

[root@localhost ~]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearc h
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$b asearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$ basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
 
Old 01-09-2013, 12:38 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Code:
cd /tmp && wget http://dl.fedoraproject.org/pub/epel/6//x86_64/epel-release-6-8.noarch.rpm
rpm -e epel-release-5-4.noarch
yum -y install /tmp/epel-release-6-8.noarch.rpm
 
Old 01-09-2013, 12:44 PM   #9
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by unSpawn View Post
Code:
cd /tmp && wget http://dl.fedoraproject.org/pub/epel/6//x86_64/epel-release-6-8.noarch.rpm
rpm -e epel-release-5-4.noarch
yum -y install /tmp/epel-release-6-8.noarch.rpm
i run these commands and then i reboot the system.
I run again yum update and here are the results :


[root@localhost ~]# yum update
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink | 17 kB 00:00
* base: ftp.ines.lug.ro
* epel: mirror.astpage.ru
* extras: mirrors.ch-center.com
* updates: mirrors.ch-center.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python-ethtool.i686 0:0.6-1.el6 will be updated
---> Package python-ethtool.i386 0:0.6-2.el5 will be an update
--> Processing Dependency: python(abi) = 2.4 for package: python-ethtool-0.6-2.el5.i386
--> Finished Dependency Resolution
Error: Package: python-ethtool-0.6-2.el5.i386 (epel)
Requires: python(abi) = 2.4
Installed: python-2.6.6-29.el6_3.3.i686 (@updates)
python(abi) = 2.6
Available: python-2.6.6-29.el6_2.2.i686 (base)
python(abi) = 2.6
Available: python26-2.6.8-2.el5.i386 (epel)
python(abi) = 2.6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
 
Old 01-09-2013, 01:23 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
You don't need a reboot. This won't fix anything but it should keep it quiet for now:
Code:
cp /etc/yum.conf /etc/yum.conf.bak||exit 1
EXCLUDES=" $(awk -F'=' '/^exclude=/ {print $2}' /etc/yum.conf)"
grep -v ^exclude= /etc/yum.conf > /tmp/yum.conf
echo "exclude=python-ethtool-0.6-2.el5*${EXCLUDES}" >> /tmp/yum.conf
cat /tmp/yum.conf > /etc/yum.conf
rm -f /tmp/yum.conf
 
Old 01-10-2013, 02:16 AM   #11
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 89

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by unSpawn View Post
You don't need a reboot. This won't fix anything but it should keep it quiet for now:
Code:
cp /etc/yum.conf /etc/yum.conf.bak||exit 1
EXCLUDES=" $(awk -F'=' '/^exclude=/ {print $2}' /etc/yum.conf)"
grep -v ^exclude= /etc/yum.conf > /tmp/yum.conf
echo "exclude=python-ethtool-0.6-2.el5*${EXCLUDES}" >> /tmp/yum.conf
cat /tmp/yum.conf > /etc/yum.conf
rm -f /tmp/yum.conf
You are correct, here are the results:

[root@localhost ~]# yum update
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink | 16 kB 00:00
* base: mirrors.ch-center.com
* epel: mirrors.se.eu.kernel.org
* extras: ftp.ines.lug.ro
* updates: mirrors.ch-center.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 4.1 MB 00:22
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Update Process
No Packages marked for Update

But what do you mean "it should keep it quiet for now" ???
 
Old 01-10-2013, 02:32 AM   #12
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,246

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
Check your yum.conf file

In any case, you should ensure that none of your repo files reference RHEL/Centos v5 if you are running v6.

PS highly recommend you install yum-plugin-priorities-1.1.30-14.el6.noarch and set the repo files accordingly, if you are going to mix Centos and other eg EPEL repos.

Last edited by chrism01; 01-10-2013 at 02:34 AM.
 
Old 01-10-2013, 09:58 AM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Quote:
Originally Posted by LeoPap View Post
what do you mean "it should keep it quiet for now" ???
I mean it'll do until you've found the actual cause.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Update Bind Not Working Using Yum smeagol2009 Linux - Server 1 04-08-2009 10:48 AM
yum update not working right royeo Linux - Newbie 2 09-20-2006 01:01 AM
vncserver not working after yum update rvilarl Fedora 2 05-04-2006 04:11 PM
yum update stopped working hakukani Fedora 3 10-09-2005 05:25 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration