引用:
3. 如果還有問題
把下面指令 複製 貼進終端機 執行
3-0. uname -r
3-1. sudo lshw -numeric -class network
3-2. sudo ifconfig -a
3-3. sudo route -nv
3-4. sudo rfkill list all
3-5. sudo dhclient -v
把結果直接複製 貼上來
我的问题跟楼主基本一样,下面是基本信息和安装网卡驱动的报错信息:
网卡型号:Bus 002 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
安装驱动时报错信息:
代码:
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:637:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_sreset;
^
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: At top level:
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: initialization from incompatible pointer type [enabled by default]
.ndo_select_queue = rtw_select_queue,
^
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o] 错误 1
make[1]: *** [_module_/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.16.0-30-generic'
make: *** [modules] 错误 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
基本信息如下:
代码:
root@localhost:~# uname -r
3.16.0-30-generic
root@localhost:~# sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 02
serial: 00:1f:c6:ff:80:4b
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.31.149 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:42 ioport:e800(size=256) memory:febff000-febfffff memory:fdff0000-fdffffff memory:febc0000-febdffff
*-network DISABLED
description: Wireless interface
physical id: 1
bus info: usb@2:2
logical name: wlan0
serial: 14:cf:92:ac:73:d4
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu driverversion=3.16.0-30-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn
root@localhost:~# sudo ifconfig -a
eth0 Link encap:以太网 硬件地址 00:1f:c6:ff:80:4b
inet 地址:192.168.31.149 广播:192.168.31.255 掩码:255.255.255.0
inet6 地址: fe80::21f:c6ff:feff:804b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:31839 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:16722 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:36411318 (36.4 MB) 发送字节:1426984 (1.4 MB)
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:16 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:16 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:1184 (1.1 KB) 发送字节:1184 (1.1 KB)
wlan0 Link encap:以太网 硬件地址 14:cf:92:ac:73:d4
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
root@localhost:~# sudo route -nv
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 192.168.31.1 0.0.0.0 UG 0 0 0 eth0
192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@localhost:~# sudo rfkill list all
sudo:rfkill: command not found
root@localhost:~# sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:1f:c6:ff:80:4b
Sending on LPF/eth0/00:1f:c6:ff:80:4b
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x5bcdd223)
DHCPREQUEST of 192.168.31.149 on eth0 to 255.255.255.255 port 67 (xid=0x5bcdd223)
DHCPOFFER of 192.168.31.149 from 192.168.31.1
DHCPACK of 192.168.31.149 from 192.168.31.1
RTNETLINK answers: File exists
bound to 192.168.31.149 -- renewal in 225213 seconds.