Tag: yum

Python setuptools and get_python_version is not defined

If you run into the below error when using setuptools (setup.py), then it’s quite possible that you’re using an outdated version of Python’s setuptools. In particular, the python-setuptools package in the CentOS yum repository is too old. Traceback (most recent call last): File “setup.py”, line 19, in ? setup(**metadata) File “/usr/lib64/python2.4/distutils/core.py”, line 149, in setup dist.run_commands() File “/usr/lib64/python2.4/distutils/dist.py”, line 946,...

HyperVM and yum update Transaction Check Errors

If you’re having file conflict problems when running “yum update” on servers with the lxlabsupdate repository for HyperVM (or Kloxo) installed then there’s a simple resolution: cd /var/cache/yum/lxlabsupdate/packages/ rpm -Uvh *.rpm –replacefiles –replacepkgs This should fix errors such as: file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386 file /usr/share/man/man1/pcretest.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file...

Cancelled yum transactions

If you’ve ever aborted a yum update for any reason, you’ve probably come across messages warning of transaction errors, such as the following example during an update from CentOS 5.4 to CentOS 5.5 that got cancelled part way through: Transaction Check Error: file /usr/include/libdevmapper.h from install of device-mapper-1.02.39-1.el5.i386 conflicts with file from package device-mapper-1.02.32-1.el5.x86_64 file /usr/share/man/man8/dmsetup.8.gz from install of device-mapper-1.02.39-1.el5.i386...

yum install and weird architecture behaviour

I was just trying to accomplish what you would think was a relatively easy task – installing the PHP-GD package from the Atomic Rocket Turtle repository for 64bit CentOS 5 and ran into a slightly cryptic problem. Running yum install php-gd simply produced a dependancy error php-gd-5.2.13-1.el5.art.i386 from atomic has depsolving problems –> Missing Dependency: libt1.so.5 is needed by package...