LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   internet runs-stops, runs-stops........ (https://www.linuxquestions.org/questions/debian-26/internet-runs-stops-runs-stops-557334/)

arnuld 05-28-2007 11:45 PM

internet runs-stops, runs-stops........
 
i installed Debian Etch AMD64 using netinst CD. installation went fine except one thing. it configured and connected my network using DHCP but says "unable to connect to Debian security updates" then after installation and booting into new system, i faced the same problem. even "apt-get install xorg" does not work correctly. it goes like this:

1.) it downloads one package and in the middle of download it freezes.
2.) it waits for "x" minutes where x = 2 - 20 min
3.) then it starts downloading again, from where it left, and goes to step-1
4.) Debian security update are never downloaded.

it seems like i have long DNS lookup. i had the same problem on BLAG where i had to add these to "/etc/modprobe.conf " or somewhere else i did not remember:

alias net-pf-10 off
alias ipv6 off

i added the same in "/etc/modprobe.d/aliases" on Debian but it does not work and my problem is still there. i have removed Debain and installed Arch Duke i don't have any troubles with accessing internet but i am very much impressed my DFSG and i want to install Debian Testing now (seems stable enough for my home PC). what should i do to solve that problem because IIRC, i had the same troubles when i used Sarge 1 year ago.


i chose these during installation:

hostname = debian
domainname = planet

every time, when i boot up, i also get this message: "internet superserver disabled"

----- /etc/hosts -------------

127.0.0.1 localhost
127.0.1.1 debian.planet debian

--------- /etc/resolv.conf -----

nameserver 218.248.255.145
nameserver 61.1.96.69


-------------- /etc/network/interfaces -----

did not remember exactly what was here but it was something like this:

auto lo ....

auto eth0...

eth0 inet dhcp ....

IsaacKuo 05-29-2007 09:56 AM

You don't have any problems with Arch Duke? What is /etc/resolv.conf in your Arch Duke install? If the problem is long DNS resolution, then perhaps manually copying resolv.conf will fix it.

Alternatively, the problem may be that connectivity is simply very poor from your location to Debian's security updates servers. If you do another Debian install, check out the contents of /etc/apt/sources.list. I don't know if there are local mirrors for security.debian.org...maybe not.

Anyway, what happens if you try to ping or ftp connect to security.debian.org? If it's a connectivity problem, then you'll have problems downloading from security.debian.org in Arch Duke also.

Junior Hacker 05-29-2007 11:27 AM

Usually, if there is no connection during installation, the installer will comment out the entry for security in /etc/apt/sources.list, it is possible that it did this if if the site was down and unavailable during installation. Check the file to see if there is a hash at the beginning of the security entry. Also, one of the fastest mirrors near my location has security updates also, so I do not use the default Debian site that is normally inserted by default in /etc/apt/sources.list.
Below is a link to the apt how-to, in section 2.3 is a link to the list of Debian mirrors. If you look at the only mirror in India, it does not have security updates, but the mirror just above it from Italy does. Find a mirror close to you that has a link to security updates and use it, or better yet, find a few of them and use 'netselect' to find which is faster as described in section 2.3 also.
http://www.debian.org/doc/manuals/apt-howto/

arnuld 05-29-2007 11:35 AM

Quote:

Originally Posted by IsaacKuo
You don't have any problems with Arch Duke? What is /etc/resolv.conf in your Arch Duke install? If the problem is long DNS resolution, then perhaps manually copying resolv.conf will fix it.

in both, Debia and Arch, "/etc/resolv.conf" is same.

Quote:

Originally Posted by IsaacKuo
Alternatively, the problem may be that connectivity is simply very poor from your location to Debian's security updates servers. If you do another Debian install, check out the contents of /etc/apt/sources.list. I don't know if there are local mirrors for security.debian.org...maybe not.

i am sure this is not the case as on Arch and BLAG i can access internet without any troubles at all.

Quote:

Originally Posted by IsaacKuo
Anyway, what happens if you try to ping or ftp connect to security.debian.org? If it's a connectivity problem, then you'll have problems downloading from security.debian.org in Arch Duke also.

it takes a l..o..o..o..o..n..g time to show me the 1st ping. on Arch and Debian pings takes just 7 seconds.

ping -c5 google.com

i think this has to do with both "/etc/hosts" and IPv6. check my other thread in "Debian-User" mailing list archives where i have posted enough information with different view-point of the same problem. this is one solution i have got from "Douglas Allan Tutty":

---------- WHOLE POST ----------
> i installed Debian Etch AMD64 using netinst CD. installation went fine
> except one thing. it configured and connected my network using DHCP
> but says "unable to connect to Debian security updates" then after
> installation and booting into new system, i faced the same problem.
> even "apt-get install xorg" does not work correctly. it goes like
> this:

[snip: timeout waiting to connect to security]

> it seems like i have long DNS lookup.
>
> i chose these during installation:
>
> hostname = debian
> domainname = planet
>
> every time, when i boot up, i also get this message: "internet
> superserver disabled"

Normal unless you're running services out of inetd.

>
> ----- /etc/hosts -------------
> 127.0.0.1 localhost
> 127.0.1.1 debian.planet debian
>
> --------- /etc/resolv.conf -----
> nameserver 218.248.255.145
> nameserver 61.1.96.69
>
> -------------- /etc/network/interfaces -----
> did not remember exactly what was here but it was something like this:
>
> auto lo ....
> auto eth0...
> eth0 inet dhcp ....

I've never used dhcp so I don't know how it integrates with /etc/hosts.
If eth0 was setup manually, your /etc/hosts file would look something
like mine:

127.0.0.1 localhost.localdomain localhost
192.168.1.1 debian.planet debian

If your network is planet, and this box on your network is debian, then
having that show in your /etc/hosts file as 127.* will be a source of
confusion or errors. You need them to point to your network.

Since it is your network, can you try manually configuring it and not
use dhcp to see if the problem persists?

Doug.

--------------- EOF ----------

Daws 05-29-2007 01:02 PM

Are you sure this is Debian? Every now and again my router gets a little unhappy, and I experience problems v similar to yours. If I switch it off for an hour or so, the problems disappear...


All times are GMT -5. The time now is 05:24 PM.