[CentOS] Dependency problems

Fri Jul 24 14:16:54 UTC 2009
Filipe Brandenburger <filbranden at gmail.com>

Hi,

On Fri, Jul 24, 2009 at 10:07, Sam Drinkard<sam at wa4phy.net> wrote:
> ---> Package httpd.x86_64 0:2.2.3-22.el5.centos.2 set to be updated
> ---> Package httpd-devel.x86_64 0:2.2.3-22.el5.centos.2 set to be updated
> [...]
> Error: Missing Dependency: httpd = 2.2.3-22.el5.centos.1 is needed by
> package httpd-devel-2.2.3-22.el5.centos.1.i386 (installed)

You have a 64-bit machine but a 32-bit httpd-devel package installed.

To fix your problem, uninstall the 32-bit version of httpd-devel, with
this command:
# rpm -e httpd-devel.i386

After that, yum update should complete successfully.

Now, as to why this happened, the 64-bit version of CentOS (and RHEL)
includes 32-bit versions of some packages. Maybe in the past
httpd-devel was provided in both 32-bit and 64-bit versions, and you
ended up installing both versions of the package, but now only the
64-bit version is provided, so the upgrade of the 32-bit version is
not available anymore. I've seen similar problems happen with other
packages, so I believe the same might have happened with httpd-devel
too.

HTH,
Filipe