Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a beginner using Debian. I've just installed Debian 7.5.0 amd netinst. When I execute apt-get update I get errors like:

Could not resolve 'http.debian.org'

Thus I changed the mirrors several times in /etc/apt/sources.list but without any result. I deduced that it is because of the absence of internet connection.

So I executed ifconfig and ifconfig -a, the output indicates only the loopback no eth0 interface. However the Ethernet card and WLAN card are pretty detected, I checked it through lspci and both cards appear.

I edited /etc/network/interfacesl by adding DHCP but it was in vain.

Please, could anybody help me?

share|improve this question
So your question is rather about how to get your network connection to work than the apt-get, right? Maybe it is better to rephrase it as such? – Bernhard May 9 '14 at 5:46
I can not understand the problem actually. The feature was that apt-get failed according to commands I tried I deduced that I have a pb with my internent connection but I am not sur about it – user2215151 May 9 '14 at 6:40
Try doing ifconfig. What does it show? Does it show an inet addr associated with your network interface? If that works, try ping 8.8.8.. – Stark07 May 9 '14 at 10:20
@AshishKulkarni No ifconfig only shows lo – user2215151 May 9 '14 at 10:34
is your network device installed correctly? Give lspci and see if it lists any network device. If that doesn't work, do dmesg and see if any network device is listed in the entire thing. – Stark07 May 9 '14 at 10:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.