我已经在 askubuntu 上寻找答案,但仍然无法解决我的问题。我的 ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:b3:42:05:5c
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
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:65536 Metric:1
RX packets:171 errors:0 dropped:0 overruns:0 frame:0
TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12241 (12.2 KB) TX bytes:12241 (12.2 KB)
wlan0 Link encap:Ethernet HWaddr 00:21:00:b2:16:48
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
milenko@milenko-HP-Compaq-6830s:~$ ping -c3 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.034 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.033 ms
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.029/0.032/0.034/0.002 ms
和lshw网络
*-network
description: Network controller
product: BCM4312 802.11b/g LP-PHY
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=b43-pci-bridge latency=0
resources: irq:17 memory:98200000-98203fff
*-network DISABLED
description: Ethernet interface
product: 88E8072 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:86:00.0
logical name: eth0
version: 00
serial: 00:25:b3:42:05:5c
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 latency=0 link=no multicast=yes port=twisted pair
resources: irq:30 memory:90100000-90103fff ioport:2000(size=256) memory:90120000-9013ffff
*-network DISABLED
description: Wireless interface
physical id: 2
logical name: wlan0
serial: 00:21:00:b2:16:48
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=b43 driverversion=3.19.0-47-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bg
如何解决这个问题?
按照 Hennes 的建议,使用 sudo
eth0 Link encap:Ethernet HWaddr 00:25:b3:42:05:5c
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2001:12f0:784:df66:225:b3ff:fe42:55c/64 Scope:Global
inet6 addr: fe80::225:b3ff:fe42:55c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1270 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:108270 (108.2 KB) TX bytes:9117 (9.1 KB)
Interrupt:17
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:65536 Metric:1
RX packets:482 errors:0 dropped:0 overruns:0 frame:0
TX packets:482 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:37222 (37.2 KB) TX bytes:37222 (37.2 KB)
wlan0 Link encap:Ethernet HWaddr 00:21:00:b2:16:48
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
我应该添加我的 lspci -vvnn | grep -A 9 Network
03:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
Subsystem: Hewlett-Packard Company BCM4312 802.11b/g Wireless LAN Controller [103c:137d]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at 98200000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: b43-pci-bridge
答案1
您可以从 Ubuntu 安装介质上 ../pool/restricted/b/bcmwl 下的受限文件夹安装 bcmwl-kernel-source 包。
要找出当前内核,请使用以下命令:
uname -r
要查找已安装的 linux-headers 包,请使用以下命令:
dpkg --get-selections | grep headers
从 CDROM 安装的系统可以将安装 CD 添加为软件包源,并使用 apt-get 安装 bcmwl-kernel-source。但是,如果您想手动执行此操作,则说明如下:
浏览安装介质并通过双击安装下面列出的软件包,或者从终端连续安装软件包(在下面的命令中,安装介质安装在 /cdrom,但您的可能不同):
1 )/pool/main/d/dkms
cd /cdrom/pool/main/d/dkms
sudo dpkg -i dkms*
2)/池/主/p/补丁
cd /cdrom/pool/main/p/patch
sudo dpkg -i patch*
3)/pool/main/f/fakeroot
cd /cdrom/pool/main/f/fakeroot
sudo dpkg -i fakeroot*
4)/池/受限/b/bcmwl
cd /cdrom/pool/restricted/b/bcmwl
sudo dpkg -i bcmwl-kernel-source*
安装 b43-fwcutter 包。它通常位于 Ubuntu 安装介质的 /cdrom/pool/main/b/b43-fwcutter/ 下双击要安装的包或在终端中发出以下命令:
cd /cdrom/pool/main/b/b43-fwcutter/
sudo dpkg -i b43-fwcutter*
sudo modprobe -r b43 bcma
重启