apt-get update fails debian 7.5.0

1

I am a beginner at debian.

I hvae 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 edit / etc / network / interfaces by adding dhcp but it was in vain.

Please, could anybody help me as soon as possible.

user2215151

Posted 2014-05-09T03:59:24.770

Reputation: 11

Could anyone confirm that internet connection is the problem cause? – user2215151 – 2014-05-09T07:08:32.207

Add your network interfaces config file – Paolo Casciello – 2014-05-09T09:14:00.340

Answers

1

After editing the interfaces file you should run in a terminal:

# ifup eth0

Notice you don't have to type the #, it just means you run it from the root user.

Update if you don't have eth0 type ifconfig -a to see all the devices available. Chances are you may have one such wlan0 or something like that.

Francesc Guasch

Posted 2014-05-09T03:59:24.770

Reputation: 181

I get Cannot find eth0 Bind socket to interface: no such device Failed to bring up eth0 – user2215151 – 2014-05-09T12:48:14.200