如何在 ubuntu 10.04 中安装以太网驱动程序

如何在 ubuntu 10.04 中安装以太网驱动程序

我运行了以下命令:

ifconfig -a

给出这个输出,没有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)

然后我跑了cat /etc/network/interfaces

auto lo
iface lo inet loopback

我跑了lspci -nn |grep Ethernet

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

我该如何安装以太网驱动程序?

答案1

我找到了这个问题的解决方案,

只需运行以下命令

sudo apt-get update

sudo apt-get install linux-backports-modules-wireless-lucid-generic

答案2

我找到了有关该问题的一些信息,似乎 Ubuntu 无法找到您的网卡驱动程序,请尝试以下步骤:

http://linuxwireless.org下载最新的 compat-wireless 驱动程序并按照说明进行操作。

尽管它被称为“无线”,但它却非常有效。下载完成后,打开终端 (Ctrl+Alt+T) 并导航到保存下载文件的目录 ( cd ~/Downloads/)[在我的情况下,文件存储在下载文件夹中]

写入以下命令:

$ 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

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

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

相关内容