HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Centos 5,3 and yum (http://www.howtoforge.com/forums/showthread.php?t=43836)

Centos_user 4th March 2010 17:21

Centos 5,3 and yum
 
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
Quote:

l-linuxtest /]# yum update
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...64&repo=addons error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

falko 5th March 2010 13:59

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

cyberbot 5th March 2010 16:03

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

RedLay 7th March 2010 20:54

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

cyberbot 8th March 2010 09:52

Quote:

Originally Posted by RedLay (Post 221325)
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

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,


Quote:

[root@linux /]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: archive.cs.uu.nl
* base: archive.cs.uu.nl
* extras: archive.cs.uu.nl
* updates: archive.cs.uu.nl
http://archive.cs.uu.nl/mirror/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.mirror.easycolocate.nl...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://centos.mirror.transip.nl/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.nluug.nl/ftp/pub/os/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.tudelft.nl/centos.org/5.4...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.leaseweb.com/centos/5....ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.liteserver.nl/pub/cent...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.oxilion.nl/centos/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.widexs.nl/ftp/pub/os/L...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.nl.kernel.org/centos/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://archive.cs.uu.nl/mirror/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.mirror.easycolocate.nl...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://centos.mirror.transip.nl/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.nluug.nl/ftp/pub/os/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.tudelft.nl/centos.org/5.4...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.leaseweb.com/centos/5....ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.liteserver.nl/pub/cent...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.oxilion.nl/centos/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.widexs.nl/ftp/pub/os/L...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.nl.kernel.org/centos/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://archive.cs.uu.nl/mirror/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.mirror.easycolocate.nl...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://centos.mirror.transip.nl/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.nluug.nl/ftp/pub/os/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.tudelft.nl/centos.org/5.4...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.leaseweb.com/centos/5....ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.liteserver.nl/pub/cent...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.oxilion.nl/centos/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.widexs.nl/ftp/pub/os/L...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.nl.kernel.org/centos/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://archive.cs.uu.nl/mirror/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.mirror.easycolocate.nl...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://centos.mirror.transip.nl/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.nluug.nl/ftp/pub/os/Linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.tudelft.nl/centos.org/5.4...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.leaseweb.com/centos/5....ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.liteserver.nl/pub/cent...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.oxilion.nl/centos/5.4/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.widexs.nl/ftp/pub/os/L...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.nl.kernel.org/centos/...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.

falko 8th March 2010 13:25

What are the outputs of
Code:

env
in the terminal and in SSH?

cyberbot 10th March 2010 11:59

this the SSH

Quote:

HOSTNAME=linux.test.com
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=10.64.6.33 50314 22
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:s o=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com =00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;3 1:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00; 31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/root
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=10.64.6.33 50314 10.64.3.231 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env

terminal

Quote:

SSH_AGENT_PID=3577
HOSTNAME=linux.test.com
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=23068753
http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:s o=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com =00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;3 1:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00; 31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
GNOME_KEYRING_SOCKET=/tmp/keyring-b4Tcyi/socket
SSH_AUTH_SOCK=/tmp/ssh-jMfNBX3541/agent.3541
SESSION_MANAGER=local/linux.test.com:/tmp/.ICE-unix/3541
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/root
XMODIFIERS=@im=none
LANG=en_US.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/root
no_proxy=localhost,127.0.0.0/8
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=root
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-StqJtLai0e,guid=d0852eb78dcc27d8d14c7f004b977c91
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/tmp/.gdm6BZ28U
_=/bin/env

falko 11th March 2010 17:41

In the terminal you have the following environment variable:
Code:

http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
which is not present in an SSH session.
What happens when you do
Code:

http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
in your SSH session? Does yum work then?

cyberbot 15th March 2010 14:48

Quote:

Originally Posted by falko (Post 221749)
In the terminal you have the following environment variable:
Code:

http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
which is not present in an SSH session.
What happens when you do
Code:

http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
in your SSH session? Does yum work then?

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

falko 16th March 2010 14:37

Can you run
Code:

export http_proxy=http://XXXXX:XXXX@10.64.2.43:80/
? Does it work then?


All times are GMT +2. The time now is 23:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.