Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have problem with my yum, I am trying to install subversion or any other software I am getting any error [Errno -1] Header is not complete. Trying other mirror all the time. I am running CentOS release 5 (Final) on kernel 2.6.18-53.1.21.el5PAE i386, I am behind a proxy. I have other flavours(centos,redhat,fedora) of linux that have the same network settings but they are able to update and install with yum. I have tried to do a yum clean all and then yum -y update but to no success. Your help is very welcome.

share|improve this question
From what you are telling us, I can only assume the proxy is your problem. Even though the other Linux distros do work, I suggest you check your proxy settings. Can you do a wget of a package in the repository successfully? – wzzrd Jun 19 '09 at 10:30
Thanx wzzrd, I am able to wget, I have made it to by pass the proxy but I can seem to get it to work. – Rungano Jun 19 '09 at 12:14

Did you set up your CentOS system to use a proxy?

Create /etc/profile.d/

export http_proxy=
export ftp_proxy=
export HTTP_PROXY=
export FTP_PROXY=

Restart shell (or run those commands manually) and your proxy should be set up including yum.

share|improve this answer
Thank you for your prompt answer, but it still brings out that error, If I may ask why is this server exceptional from others? I have installed Centos behind a proxy but never had to run export profile environment variables. – Rungano Jun 19 '09 at 12:01
up vote 0 down vote accepted

I have managed to make it work some upstream proxy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.