LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get problem (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-problem-690646/)

ust 12-15-2008 02:50 AM

apt-get problem
 
When I try to install package to the server , it pop the below messages , I check the file /etc/apt/sources.list , it is normal and no proxy is required to connect to internet , could advise what is wrong in my system ? thx

Could not resolve 'ftp.hk.debian.org'
Failed to fetch http://ftp.hk.debian.org/debian/pool...-tftp/tftp_0.1
7-15_i386.deb Could not resolve 'ftp.hk.debian.org'

MoonMind 12-15-2008 03:07 AM

Did you ping ftp.hk.debian.org? Maybe the server's down for some reason...

M.

farslayer 12-15-2008 07:50 AM

that file does exist on that server, (you can browse to the location with ta standard web browser.) There is even a newer version of that file on the server.

Either you are having troubles resolving the name (DNS ISSUES) and you can't browse the net at all, or maybe the server itself was having temporary difficulties. I would say apt-get update and try again.


http://ftp.hk.debian.org/debian/pool...17-15_i386.deb
http://ftp.hk.debian.org/debian/pool...17-16_i386.deb

ust 12-16-2008 01:04 AM

Quote:

Originally Posted by farslayer (Post 3376100)
that file does exist on that server, (you can browse to the location with ta standard web browser.) There is even a newer version of that file on the server.

Either you are having troubles resolving the name (DNS ISSUES) and you can't browse the net at all, or maybe the server itself was having temporary difficulties. I would say apt-get update and try again.


http://ftp.hk.debian.org/debian/pool...17-15_i386.deb
http://ftp.hk.debian.org/debian/pool...17-16_i386.deb


having troubles resolving the name --> how can I know if I have DNS problem ? how to config it ?

problem to browsing on the net --> how can I know if I can browse on the net ? I can't ping yahoo.com , may be it was blocked by our internal firewall .

thx

farslayer 12-16-2008 06:55 AM

Can you open a web browser and go to ANY web sites ?
When you tried to ping yahoo.com did it return an IP address ?
Code:

user@it-etch:~$ ping yahoo.com
PING yahoo.com (206.190.60.37) 56(84) bytes of data.
64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=1 ttl=56 time=19.8 ms
64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=2 ttl=56 time=19.4 ms

Cay you ping yahoo using the IP address ?
Code:

er@it-etch:~$ ping 206.190.60.37
PING 206.190.60.37 (206.190.60.37) 56(84) bytes of data.
64 bytes from 206.190.60.37: icmp_seq=1 ttl=56 time=19.6 ms
64 bytes from 206.190.60.37: icmp_seq=2 ttl=56 time=19.2 ms

post the output of the following

route -n

cat /etc/resolv.conf

ust 12-18-2008 08:26 PM

I can't browse to internet as the server do not have gui mode installed .

I can't ping www.yahoo.com as the firewall is not allowed to ping

for DNS and route -n , I checked that all these settings in all servers is the same , but some server can use apt-get , but some can't , can advise what is the possible reason some server can't use apt-get ,

p.s. they are in same server farm , same segment .


Thx

farslayer 12-18-2008 09:28 PM

Well maybe your firewall is blocking that as well...

I have my firewall configured to only allow specific hosts in the DMZ, access to the Debian update servers I use. None of the servers in my DMZ should really have or need unfettered outbound web access for their primary functions.

Simple solution is to log into your firewall, and do a packet trace filtered on traffic to and from that Debian host. it should be pretty indicative from that capture where the hangup is occurring. is the traffic getting out ? is it being nat'd, is it coming back ? is it being forwarded back to the host ?


All times are GMT -5. The time now is 11:55 PM.