Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know there has got to be a simple solution to this.
apt-get is not working, example follows
root@0[knoppix]# apt-get update
Err http://security.debian.org stable/updates/main Packages
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err http://ndiswrapper.sourceforge.net ./ Packages
Could not connect to ndiswrapper.sourceforge.net:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org stable/main Packages
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Err http://kanotix.com ./ Packages
Could not connect to kanotix.com:80 (1.0.0.0), connection timed out
Err http://security.debian.org stable/updates/main Release
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err http://ndiswrapper.sourceforge.net ./ Release
Could not connect to ndiswrapper.sourceforge.net:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org stable/main Release
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Err http://kanotix.com ./ Release
Could not connect to kanotix.com:80 (1.0.0.0), connection timed out
I have two main linux installs, Studio to go, and knoppix 4. They both do it so it can't be the install. More likely it's my network which is roughly as follows.
ADSL-> netcomm router 192.168.1.1 (dhcp server)
-> Netway 8 port switch
1. Router
2. knoppix/studio to go (dhcp)
3. XP laptop-1 (dhcp)
4. XP Desktop (dhcp)
5. ASUS wap 192.168.1.110 -> XP laptop (2)
6. Asterisk server on 192.168.1.111
Do you have your own dns server or use one from your ISP? If the former: which one? Can you resolve names in the local zone? Can your dns server reach the forwarder (if any)? Does the dhcp server send info about the dns server when giving out leases or do you need to manually setup the clients? If the former does that work (how's your /etc/resolv.conf looking)?
Then your linux box thinks 192.168.1.1 is your dns server. Which obviously it isn't. Either find a way to make your router's dhcp server tell it's clients the IPs of the dns server or you add them manually in /etc/network/interfaces:
Then your linux box thinks 192.168.1.1 is your dns server. Which obviously it isn't. Either find a way to make your router's dhcp server tell it's clients the IPs of the dns server or you add them manually in /etc/network/interfaces: eth0 inet dhcp dns-nameservers 203.8.183.1 192.189.54.33 You will need to restart the network interface after changing the interfaces file: ifdown eth0 && ifup eth0 or /etc/init.d/networking restart
This is the interfaces file:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
iface eth0 inet dhcp
name Ethernet LAN card
auto eth0
If I add dns-nameservers 203.8.183.1 192.189.54.33 here, the restart gives an error reading file, as follows
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
This is the interfaces file:
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
iface eth0 inet dhcp
name Ethernet LAN card
dns-nameservers 203.8.183.1 192.189.54.33
auto eth0
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
This is the interfaces file:
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
iface eth0 inet dhcp
name Ethernet LAN card
dns-nameservers 203.8.183.1 192.189.54.33
auto eth0
OK, no error reading on restart, but apt-get update still wants to resolve to 1.0.0.0
Could this be a router problem, should I try a different router?
All other references I have found to this problem indicate that the Users DNS was not configured properly, and editing the entry in /etc/resolv.conf fixed their issues..
Quote:
Repository Connection Problem - Solved
Submitted by homebody on Fri, 10/08/2004 - 08:44.
Having wrestled with this same problem for some time myself, I can sure understand the frustration. And, while I realize this answer comes quite late, perhaps it will help others nonetheless.
My problem was resolved by editing the /etc/resolve.conf file to show the DNS server addresses for my ISP, in my case the addresses appearing in the status window for my ActionTec DSL modem/gateway. Immediately all the apt-get update connection errors vanished.
Still would like to know how Mepis or any other distro sets that file up in the first place though, getting it right in most cases and wrong in others. The problem is by no means unique to Mepis.
Bob
--------
WOW!!!
Submitted by LanceHaverkamp on Fri, 10/08/2004 - 14:58.
That worked! THANK YOU, THANK YOU, THANK YOU!!!
My resolv.conf said:
search Belkin
nameserver 192.168.2.1
----
My router is a belkin, and Yes, the network was live when I installed MEPIS.
Rather than change a conf setting, which will get written over, I set a static primary & secondary DNS into both my dsl modem AND router (yes it had to be both, not just one).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.