Centos 5,3 and yum

Discussion in 'Technical' started by Centos_user, Mar 4, 2010.

  1. Centos_user

    Centos_user New Member

    Hello Guys,
    i got lately my host installed and configurated runing Vmware server 2.0.2
    the only problem i have now is i am behind proxy so my yum is not working,
    i did all the solution i can find in google
    edite the etc/yum.conf file and /etc/profil
    adding the proxy, export the proxy but nothing help
    when i run yum update i get the next error and hope someone can help me with this
     
  2. falko

    falko Super Moderator Howtoforge Staff

    This looks like a problem with your DNS servers. Do you have valid DNS servers in /etc/resolv.conf?
     
  3. cyberbot

    cyberbot New Member

    yes i do have the correct one on the
    /etc/resolv.conf
    just check it,
    thank you
     
  4. RedLay

    RedLay New Member

    Check config at interface eth0 (if you have eth0 interface).
    If config is ok then type in console ifconfig & check interface.
    Try ping to some website example: centos24.pl
    More info in forum CentOS Linux
     
  5. cyberbot

    cyberbot New Member

    Hello Red Lady
    thank you for the answer,
    eth0 is ok all is ok i can ping my DNS but i can't ping outside the network,
    i can browse to the internet, all seems ok
    now Yum is working only if i am in The terminal,
    when i connect with SSh ( putty) its gives me this,


     
  6. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    env
    in the terminal and in SSH?
     
  7. cyberbot

    cyberbot New Member

    this the SSH


    terminal

     
    Last edited: Mar 10, 2010
  8. falko

    falko Super Moderator Howtoforge Staff

    In the terminal you have the following environment variable:
    Code:
    http_proxy=http://XXXXX:[email protected]:80/
    which is not present in an SSH session.
    What happens when you do
    Code:
    http_proxy=http://XXXXX:[email protected]:80/
    in your SSH session? Does yum work then?
     
  9. cyberbot

    cyberbot New Member

    no its doesn't only on the terminal,
    how can i add those into the SSH log file?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Can you run
    Code:
    export http_proxy=http://XXXXX:[email protected]:80/
    ? Does it work then?
     

Share This Page