![]() |
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? |
Quote:
|
Quote:
How should i proceed now? |
What does
Code:
rpm -qf /etc/yum.repos.d/* |
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 |
What does
Code:
cat /etc/yum.repos.d/epel.repo*BTW for CentOS 6 and RHEL6 epel-release-6-8 is current IIRC. |
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 |
Code:
cd /tmp && wget http://dl.fedoraproject.org/pub/epel/6//x86_64/epel-release-6-8.noarch.rpm |
Quote:
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 |
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 |
Quote:
[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" ??? |
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. |
Quote:
|
| All times are GMT -5. The time now is 02:07 PM. |