Centos updates not installing

Issues related to applications and software problems
caynes_centos
Posts: 8
Joined: 2011/08/23 18:13:49

Centos updates not installing

Post by caynes_centos » 2011/08/23 18:22:01

Hi, I have three updates that are not installing in Centos. They are,

1. WSGI middleware layer to provide sessions
2. Ethernet settings python bindings
3. A SSH2 protocol library for python

The error message says:

"No packages to update"
python-paramiko-1.7.6-1.el5.noarch requires python(abi) = 2.4
python-beaker-1.5.3-1.el5.noarch requires python(abi) = 2.4
python-ethtool-0.6-2.el5.i386 requires python(abi) = 2.4 : Success - empty transaction

What should I do with these updates?

TIA

hawaiian717
Posts: 184
Joined: 2009/01/30 19:58:25
Location: California

Centos updates not installing

Post by hawaiian717 » 2011/08/23 18:40:09

It sounds like you're trying to install CentOS 5 packages (note the "el5" in the filename, and the dependencies on Python 2.4). None of these packages have updates in the CentOS 6 repository. The current versions from the base CentOS 6.0 release are:

python-paramiko-1.7.5-2.1.el6.noarch.rpm
python-beaker-1.3.1-6.el6.noarch.rpm
python-ethtool-0.3-5.1.el6.i686.rpm

caynes_centos
Posts: 8
Joined: 2011/08/23 18:13:49

Re: Centos updates not installing

Post by caynes_centos » 2011/08/23 18:55:17

Hey, shouldn't CentOS filter the updates, so I don't receive these. These updates appear in System > Administration > Software Update. I am running a GUI with CentOS. Is it better if I run "yum update"? Nvm, I just ran this and the same three updates were attempted to install again. Is there away to prevent these updates from being installed?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos updates not installing

Post by TrevorH » 2011/08/23 22:04:24

What files do you have in /etc/yum.repos.d/?

caynes_centos
Posts: 8
Joined: 2011/08/23 18:13:49

Re: Centos updates not installing

Post by caynes_centos » 2011/08/24 20:42:17

[quote]
TrevorH wrote:
What files do you have in /etc/yum.repos.d/?[/quote]

adobe-linux-i386.repo
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
epel.repo
epel-testing.repo
remi.repo

I forgot to mention this is a VM running on a Windows XP Pro 32bit host in VirtualBox.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos updates not installing

Post by TrevorH » 2011/08/24 22:38:59

There's nothing particularly unusual looking in the files that are there though their content is a different matter :-)

If you run

[code]
yum list python-paramiko --showduplicates
[/code]

then you'll get a list of the python-paramiko packages that are available to you and which repo they are coming from. Find which repo the el5 package is listed as coming from then go find it in the files in /etc/yum.repos.d and check its definition and make sure that it doesn't have a hardcoded "5" in the url. Since python-paramiko isn't in CentOS 5 base, my own guess is that it's coming from EPEL and you have the epel-release-5-4.noarch installed and should have epel-release-6-5.noarch.

It also means that you haven't installed and configured yum-priorities and/or yum-protectbase plugins to keep third party repos in check.

caynes_centos
Posts: 8
Joined: 2011/08/23 18:13:49

Re: Centos updates not installing

Post by caynes_centos » 2011/09/08 13:18:33

[quote]
TrevorH wrote:
There's nothing particularly unusual looking in the files that are there though their content is a different matter :-)

If you run

[code]
yum list python-paramiko --showduplicates
[/code]

then you'll get a list of the python-paramiko packages that are available to you and which repo they are coming from. Find which repo the el5 package is listed as coming from then go find it in the files in /etc/yum.repos.d and check its definition and make sure that it doesn't have a hardcoded "5" in the url. Since python-paramiko isn't in CentOS 5 base, my own guess is that it's coming from EPEL and you have the epel-release-5-4.noarch installed and should have epel-release-6-5.noarch.

It also means that you haven't installed and configured yum-priorities and/or yum-protectbase plugins to keep third party repos in check.[/quote]

Hi, I finally got around to checking this again. After running "yum list python-paramiko --showduplicates", I got this output:

Installed Packages
python-paramiko.noarch 1.7.5-2.1.el6 @anaconda-centos-201106051823.i386/6.0
Available Packages
python-paramiko.noarch 1.7.5-2.1.el6 base
python-paramiko.noarch 1.7.6-1.el5 epel

I then looked at the file epel.repo, which had the following urls,

[epel]
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
[epel - debuginfo]
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
[epel - source]
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch

The 5 is hard coded into the urls, as you predicted. Where should I proceed from here?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos updates not installing

Post by TrevorH » 2011/09/08 15:01:36

Uninstall epel-release and go in search of the correct one. Mine is

[code]
$ rpm -q epel-release
epel-release-6-5.noarch
[/code]

caynes_centos
Posts: 8
Joined: 2011/08/23 18:13:49

Re: Centos updates not installing

Post by caynes_centos » 2011/09/08 17:22:06

[quote]
TrevorH wrote:
Uninstall epel-release and go in search of the correct one. Mine is

[code]
$ rpm -q epel-release
epel-release-6-5.noarch
[/code][/quote]

How do I uninstall the epel-release? Also, if I type the above syntax, will it install the correct version? I have been using yum for all my installs.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos updates not installing

Post by TrevorH » 2011/09/08 17:28:23

Go [url=http://fedoraproject.org/wiki/EPEL]here[/url] and take the link on the page under the heading "How can I use these extra packages?" and pick the link to the EL6 version NOT the EL5 one.

To remove the current one you need to run either `yum remove epel-release` or `rpm -e epel-release` - the latter now seems to be deprecated as yum will complain that the rpm database has been modified outside of yum control but works anyway.

Post Reply