kanotix.com

General Support - Can't apt-get after new install RC4 <SOLVED>

shame - 04.10.2006, 11:46 Uhr
Titel: Can't apt-get after new install RC4 <SOLVED>
When I try to do apt-get update I get these errors with every debain source
Code:
Err http://ftp.de.debian.org unstable Release.gpg
  Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org testing Release.gpg
  Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Fetched 108kB in 4m0s (451B/s)

I've tried ftp.de.debian.org, ftp.debian.org and ftp.uk.debian.org but if I type those addresses in firefox it goes to the site instantly.
The kanotix sources update ok.
John - 04.10.2006, 12:36 Uhr
Titel: RE: Can
ftp.de.debian.de works here, you can try http://ftp2.de.debian.org/
shame - 04.10.2006, 13:01 Uhr
Titel:
None for me. However, while looking for some info about my router settings (the router is the only change since my last kanotix install) I found that my particular router blocks outbound ftp by default but doesn't actually document this, log it or show it in any settings.
I've just tried apt4suse and that wasn't updating either but after adding an ftp rule to the router it is now so I'm assuming it will also now work with kanotix, I'll be trying it soon.
shame - 04.10.2006, 15:02 Uhr
Titel:
Hmm. It didn't work on kanotix.
However, John's suggestion did work after all. When I tried it I did ftp2.debian instead of ftp2.de.debian.
shame - 05.10.2006, 03:08 Uhr
Titel:
I was wrong again, it worked once then wouldn't after that, same problem.
Turned out my nameservers weren't being updated and after changing them it appears to be updating but hangs at the end
Code:
99% [Waiting for headers]

I've left it for up to half an hour but nothing else happens, not even a "failed to fetch" error.
Any ideas what to try now?

Incidentally, on the subject of apt-get, is there anyway to set the timeout shorter when it's trying to connect?

[EDIT]
More trouble with this. After rebooting /etc/resolv.conf is reset and the nameserver is my router ip address, as it is with other distros. For some reason I can't get anywhere at all with apt-get with that nameserver, I have to change it to my isp's dns but it resets every boot.
shame - 06.10.2006, 02:56 Uhr
Titel:
Still not getting anywhere with this. Basically, the only way I can apt-get anything is by changing resolv.conf to my isp's dns servers instead of the router but as I've said they are reset every boot and I don't want to have to mess about changing resolv.conf every time I want to install anything.
Does anyone know why this is only occuring with apt-get when I can browse fine and read emails etc with no problems?
Failing that, is there anything I can do to stop resolv.conf being updated?
devil - 06.10.2006, 06:08 Uhr
Titel:
shame,
you have to make friends with that router.
kanotix is not the problem. i use my isp' dns for years without probs or the router resetting it.
you router probably has a setting where it reclaims its own ip as dns.

greetz
devil
ockham23 - 06.10.2006, 08:38 Uhr
Titel:
Zitat:
Failing that, is there anything I can do to stop resolv.conf being updated?
Yes, you can configure dhclient to set the nameservers you prefer by using the prepend statement. For details see
Code:
man dhclient.conf

shame - 06.10.2006, 20:23 Uhr
Titel:
devil hat folgendes geschrieben::
shame,
you have to make friends with that router.
kanotix is not the problem. i use my isp' dns for years without probs or the router resetting it.
you router probably has a setting where it reclaims its own ip as dns.

greetz
devil

Well I never said kanotix was the problem. The fact I had no apt-get problems with my old usb modem pointed me to the router being a problem but I just don't understand why all other internet related apps are fine with the router settings but not apt.

But everything is working ok now, many thanks to ockham23 for pointing me to dhclient.conf. I just needed to uncomment the "prepend domain-name-servers" line and add my isp's dns servers and now when networking is started, those nameservers are inserted into resolv.conf before the router nameserver and apt is now working ok.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007