1

I ran the command:

ifconfig -a

which gave this output, there is no eth0:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:82330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82330 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11151678 (11.1 MB)  TX bytes:11151678 (11.1 MB)

usb0      Link encap:Ethernet  HWaddr 6a:55:7c:ee:9a:59  
          inet addr:192.168.42.230  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::6855:7cff:feee:9a59/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2893 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9773 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:923185 (923.1 KB)  TX bytes:1483133 (1.4 MB)

wlan0     Link encap:Ethernet  HWaddr 8c:a9:82:21:ee:02  
          inet6 addr: fe80::8ea9:82ff:fe21:ee02/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:14250 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92483 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6283319 (6.2 MB)  TX bytes:54238522 (54.2 MB)

And I ran cat /etc/network/interfaces:

auto lo
iface lo inet loopback

I ran lspci -nn |grep Ethernet:

04:00.0 Ethernet controller [0200]: Atheros Communications AR8152 v1.1 Fast Ethernet [1969:2060] (rev c1)

How would I install ethernet drivers?

Eric Carvalho
  • 54,385

2 Answers2

1

I found the solution for this problem,

just run these following commands

sudo apt-get update

sudo apt-get install linux-backports-modules-wireless-lucid-generic
  • 1
    For me it's showing
    E: Unable to locate package linux-backports-modules-wireless-lucid-generic @Srinivas
    – Soumendra Jun 12 '18 at 08:43
0

I found some info on that issue, it seems like Ubuntu isn't able to find the drivers for your network card, try these steps:

Go to http://linuxwireless.org download the latest compat-wireless driver and follow the instructions.

Even though it is called “wireless” it works like a charm. After the download is completed open the terminal (Ctrl+Alt+T) and navigate to the directory where the downloaded file is saved (cd ~/Downloads/)[in my case the file is stored in the downloads folder]

Write the following commands:

$ tar -xjvf compat-wireless-2.6.tar.bz2
$ cd compat-wireless* #Do not write the asterisk (*) when you reach the asterisk press the Tab key and press enter]
$ scripts/driver-select atl1c
$ make
$ sudo make install
$ sudo reboot
$ sudo modprobe atl1c #This command is written after the computer is rebooted

Information http://codingexplorer.wordpress.com/2010/10/04/ubuntu-10-04-does-not-recognize-ethernet-interface/

http://ubuntuforums.org/showthread.php?t=1505697&page=11

LnxSlck
  • 12,256