LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum update not working (http://www.linuxquestions.org/questions/linux-server-73/yum-update-not-working-4175444826/)

LeoPap 01-09-2013 09:48 AM

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?

unSpawn 01-09-2013 11:28 AM

Quote:

Originally Posted by LeoPap (Post 4866219)
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?

LeoPap 01-09-2013 11:31 AM

Quote:

Originally Posted by unSpawn (Post 4866307)
Why are you mixing EL5 and EL6 packages?

I have no idea how this come up..!!:(

How should i proceed now?

unSpawn 01-09-2013 11:53 AM

What does
Code:

rpm -qf /etc/yum.repos.d/*
say?

LeoPap 01-09-2013 11:55 AM

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

unSpawn 01-09-2013 12:17 PM

What does
Code:

cat /etc/yum.repos.d/epel.repo
return?
*BTW for CentOS 6 and RHEL6 epel-release-6-8 is current IIRC.

LeoPap 01-09-2013 12:20 PM

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

unSpawn 01-09-2013 12:38 PM

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


LeoPap 01-09-2013 12:44 PM

Quote:

Originally Posted by unSpawn (Post 4866358)
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

unSpawn 01-09-2013 01:23 PM

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


LeoPap 01-10-2013 02:16 AM

Quote:

Originally Posted by unSpawn (Post 4866385)
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" ???

chrism01 01-10-2013 02:32 AM

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.

unSpawn 01-10-2013 09:58 AM

Quote:

Originally Posted by LeoPap (Post 4866782)
what do you mean "it should keep it quiet for now" ???

I mean it'll do until you've found the actual cause.


All times are GMT -5. The time now is 08:49 PM.