LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2008, 03:50 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
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'
 
Old 12-15-2008, 04:07 AM   #2
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

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

M.
 
Old 12-15-2008, 08:50 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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
 
Old 12-16-2008, 02:04 AM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by farslayer View Post
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
 
Old 12-16-2008, 07:55 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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

Last edited by farslayer; 12-16-2008 at 07:57 AM.
 
Old 12-18-2008, 09:26 PM   #6
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
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
 
Old 12-18-2008, 10:28 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 06:50 PM
apt-get update and apt-get install problem please solve it. regent_royal Linux - Newbie 11 06-26-2008 08:38 AM
apt-get problem wwwjscom Ubuntu 5 11-02-2005 09:37 PM
Apt-get problem eviltama Linux - Software 3 12-18-2003 06:13 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 11:54 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration