wer*_*ika 5 networking wifi drivers ethernet xubuntu
我从Xubuntu 12.04升级到12.10,现在无法上网。
当我按下面板上的网络按钮时,我在顶部看到“没有可用的网络设备”(灰色),然后是“VPN 连接”、“启用网络”,旁边有一个复选标记,“信息”(灰色)和“编辑”。
以下是一些似乎相关的命令的输出:
~ % lspci | grep -i ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
~ % lspci | grep -i network
02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 (rev 34)
~ % sudo lshw -C network
PCI (sysfs)
*-network UNCLAIMED
description: Network controller
product: Centrino Wireless-N 1030
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: 34
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:f7c00000-f7c01fff
*-network UNCLAIMED
description: Ethernet controller
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
version: 07
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list
configuration: latency=0
resources: ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
~ % uname -a
Linux bleen 3.5.0-030500-generic #201207211835 SMP Sat Jul 21 22:35:55 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
~ % ifconfig
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:472 errors:0 dropped:0 overruns:0 frame:0
TX packets:472 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35080 (35.0 KB) TX bytes:35080 (35.0 KB)
~ % ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device
Run Code Online (Sandbox Code Playgroud)
我认为 UNCLAIMED 意味着我没有以太网控制器的驱动程序。似乎驱动程序应该被称为包括 816 在内的东西(我不记得我在哪里找到的),而且它似乎确实丢失了:
~ % lsmod | grep 816
~ %
Run Code Online (Sandbox Code Playgroud)
我尝试下载并安装驱动程序(在从具有连接的计算机上移动 USB 记忆棒后),但出现此问题:
~/r8168-8.037.00 % sudo ./autorun.sh
Check old driver and unload it.
Build the module and install
make: * /lib/modules/3.5.0-030500-generic/build: No such file or directory. Stop.
make1: [clean] Error 2
make: ** [clean] Error 2
Run Code Online (Sandbox Code Playgroud)
不知道下一步该怎么做。
这个问题有两个答案,都是@JosephR 在评论中建议的。
1)修复/lib/modules/3.5.0-030500-generic/build: No such file or directory
尝试安装以太网驱动程序时的错误只需要sudo ln -sv /usr/src/linux-headers-$(uname -r) /lib/modules/$(uname -r)/build
- 在我这样做之后,从源代码安装的驱动程序工作正常,并且我获得了以太网连接。
(大概使用无线控制器的驱动程序重复该过程也可以使该工作正常进行,但由于解决方案#2,我实际上并没有尝试。)
2)事实证明,如果我只是使用已安装的其他内核(3.5.0-41-generic 而不是 3.5.0-030500-generic - 我实际上不知道有什么区别)启动,则两者以太网和无线工作正常!
它还解决了我升级后遇到的一些其他问题。因此,我将默认启动内核更改为该内核,并且可能会坚持使用它,除非遇到其他问题。