Ubuntu 13.04 无法通过 WiFi 连接,但可以连接到使用 Android 创建的热点

Ubuntu 13.04 无法通过 WiFi 连接,但可以连接到使用 Android 创建的热点

我刚买了一台新电脑(联想 G580),安装了 Ubuntu 13.04。我无法通过 Wi-Fi 连接,只能通过电缆连接。

我尝试了几个网络(我自己的和邻居的),但都没有成功,然后奇怪的事情发生了:当我用我的 Android 设备创建热点时,我能够连接到互联网。我有点困惑!

有人知道可能发生什么事或如何解决吗?

也许这些数据是有用的:

02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 10)
03:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)

如果您需要任何进一步的数据,请询问,我会尽快回答。

PD:在安装 Ubuntu 13.04 之前,我使用的是一台装有 Ubuntu 12.04 的旧电脑,WiFi 运行良好。

PD2:我尝试了几种 WiFi 连接,包括我自己的和 3 个邻居的,但我们都使用同一个 ISP。

编辑:

连接到 Android 热点时运行“grep NetworkManager /var/log/syslog | tail -30”的结果:

pakete207@pakete207-G580:~$ grep NetworkManager /var/log/syslog | tail -30
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): supplicant interface state: scanning -> associating
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): supplicant interface state: associating -> 4-way handshake
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): supplicant interface state: 4-way handshake -> completed
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'pakete207'.
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> dhclient started with pid 2676
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Beginning IP6 addrconf.
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): DHCPv4 state changed nbi -> preinit
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> (eth1): DHCPv4 state changed preinit -> bound
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info>   address 192.168.43.88
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info>   prefix 24 (255.255.255.0)
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info>   gateway 192.168.43.1
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info>   hostname 'pakete207-G580'
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info>   nameserver '192.168.43.1'
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 28 11:20:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Commit) started...
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> (eth1): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Commit) complete.
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> (eth1): device state change: secondaries -> activated (reason 'none') [90 100 0]
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> Policy set 'pakete207' (eth1) as default for IPv4 routing and DNS.
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> Writing DNS information to /sbin/resolvconf
Apr 28 11:20:12 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) successful, device activated.
Apr 28 11:20:32 pakete207-G580 NetworkManager[995]: <info> (eth1): IP6 addrconf timed out or failed.
Apr 28 11:20:32 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 28 11:20:32 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 28 11:20:32 pakete207-G580 NetworkManager[995]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) complete.
pakete207@pakete207-G580:~$ 

尝试连接国内网络时的结果(无法连接):

pakete207@pakete207-G580:~$ grep NetworkManager /var/log/syslog | tail -60
Apr 28 12:00:01 pakete207-G580 NetworkManager[996]: <info>   gateway 192.168.1.1
Apr 28 12:00:01 pakete207-G580 NetworkManager[996]: <info>   nameserver '192.168.1.1'
Apr 28 12:00:01 pakete207-G580 NetworkManager[996]: <info>   domain name 'localdomain'
Apr 28 12:00:01 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 28 12:00:01 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> Policy set 'Conexión cableada 1' (eth0) as default for IPv4 routing and DNS.
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> Writing DNS information to /sbin/resolvconf
Apr 28 12:00:02 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) successful, device activated.
Apr 28 12:00:21 pakete207-G580 NetworkManager[996]: <info> (eth0): IP6 addrconf timed out or failed.
Apr 28 12:00:21 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 28 12:00:21 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 28 12:00:21 pakete207-G580 NetworkManager[996]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Apr 28 12:01:37 pakete207-G580 NetworkManager[996]: <info> (eth0): device state change: activated -> disconnected (reason 'user-requested') [100 30 39]
Apr 28 12:01:37 pakete207-G580 NetworkManager[996]: <info> (eth0): deactivating device (reason 'user-requested') [39]
Apr 28 12:01:37 pakete207-G580 NetworkManager[996]: <info> (eth0): canceled DHCP transaction, DHCP client pid 8923
Apr 28 12:01:37 pakete207-G580 NetworkManager[996]: <warn> DNS: plugin dnsmasq update failed
Apr 28 12:01:37 pakete207-G580 NetworkManager[996]: <info> Removing DNS information from /sbin/resolvconf
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) starting connection 'ALICE-WLAN84 1'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1/wireless): access point 'ALICE-WLAN84 1' has security, but secrets are required.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: config -> need-auth (reason 'none') [50 60 0]
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1/wireless): connection 'ALICE-WLAN84 1' has security, and secrets exist.  No new secrets needed.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: added 'ssid' value 'ALICE-WLAN84'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: added 'scan_ssid' value '1'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: added 'auth_alg' value 'OPEN'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: added 'psk' value '<omitted>'
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> Config: set interface ap_scan to 1
Apr 28 12:01:46 pakete207-G580 NetworkManager[996]: <info> (eth1): supplicant interface state: disconnected -> scanning
Apr 28 12:01:48 pakete207-G580 NetworkManager[996]: <info> (eth1): supplicant interface state: scanning -> associating
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> (eth1): supplicant interface state: associating -> associated
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> (eth1): supplicant interface state: associated -> 4-way handshake
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> (eth1): supplicant interface state: 4-way handshake -> completed
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'ALICE-WLAN84'.
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> (eth1): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> dhclient started with pid 9062
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Beginning IP6 addrconf.
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
Apr 28 12:01:49 pakete207-G580 NetworkManager[996]: <info> (eth1): DHCPv4 state changed nbi -> preinit
pakete207@pakete207-G580:~$ 

连接国内网络(非WiFi)测试结果:

pakete207@pakete207-G580:~$ grep NetworkManager /var/log/syslog | tail -30
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> dhclient started with pid 3117
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Beginning IP6 addrconf.
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> (eth0): DHCPv4 state changed preinit -> reboot
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info>   address 192.168.1.232
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info>   prefix 24 (255.255.255.0)
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info>   gateway 192.168.1.1
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info>   nameserver '192.168.1.1'
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info>   domain name 'localdomain'
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 28 11:30:50 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> Policy set 'Conexión cableada 1' (eth0) as default for IPv4 routing and DNS.
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> Writing DNS information to /sbin/resolvconf
Apr 28 11:30:51 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) successful, device activated.
Apr 28 11:31:11 pakete207-G580 NetworkManager[995]: <info> (eth0): IP6 addrconf timed out or failed.
Apr 28 11:31:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 28 11:31:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 28 11:31:11 pakete207-G580 NetworkManager[995]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
pakete207@pakete207-G580:~$

更新最后执行的步骤(请注意,我不得不删除一些链接,因为我不能添加超过 2 个,而不是 http// 应该是 http://)

pakete207@pakete207-G580:~$ sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
[sudo] password for pakete207: 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
build-essential ya está en su versión más reciente.
linux-headers-3.8.0-19-generic ya está en su versión más reciente.
linux-headers-generic ya está en su versión más reciente.
El paquete indicado a continuación se instaló de forma automática y ya no es necesarios.
  linux-image-generic
Use 'apt-get autoremove' to remove it.
0 actualizados, 0 se instalarán, 0 para eliminar y 8 no actualizados.

pakete207@pakete207-G580:~$ wget -O- http//linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 | tar -xj

--2013-04-29 17:14:48-- http//linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 解决 linuxwireless.org (linuxwireless.org)... 78.46.109.217 连接到 linuxwireless.org (linuxwireless.org)[78.46.109.217]:80... 已连接。请输入 HTTP 请求,以便回答... 301 永久移动 位置:http//wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 [下一个] --2013-04-29 17:14:48-- http//wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 解决 wireless.kernel.org (wireless.kernel.org)... 144.76.43.152 连接到 wireless.kernel.org (wireless.kernel.org)[144.76.43.152]:80... 已连接。请求 HTTP 请求,结果为... 200 OK 长度:4650013 (4,4M) [application/octet-stream] 加载到:“STDOUT”

100%[======================================>] 4.650.013   1,55MB/s   en 2,9s   

2013-04-29 17:14:51 (1,55 MB/s) - escritos a stdout [4650013/4650013]


pakete207@pakete207-G580:~$ cd compat-wireless-2012-07-03-pc

pakete207@pakete207-G580:~/compat-wireless-2012-07-03-pc$ ./scripts/driver-select alx
Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/net/ethernet/broadcom/Makefile.bk
Backing up makefile: drivers/net/ethernet/atheros/Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk

pakete207@pakete207-G580:~/compat-wireless-2012-07-03-pc$ make
./scripts/gen-compat-autoconf.sh /home/pakete207/compat-wireless-2012-07-03-pc/.config /home/pakete207/compat-wireless-2012-07-03-pc/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.8.0-19-generic/build M=/home/pakete207/compat-wireless-2012-07-03-pc modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-3.8.0-19-generic»
  CC [M]  /home/pakete207/compat-wireless-2012-07-03-pc/compat/main.o
  LD [M]  /home/pakete207/compat-wireless-2012-07-03-pc/compat/compat.o
  CC [M]  /home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: En la función ‘alx_hw_printk’:
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:124:3: error: declaración implícita de la función ‘__netdev_printk’ [-Werror=implicit-function-declaration]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: En el nivel principal:
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1955:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter_special’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2010:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3472:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3780:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_remove’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3903:17: error: ‘alx_init’ no se declaró aquí (no en una función)
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:2: error: declaración implícita de la función ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:29: error: ‘alx_remove’ no se declaró aquí (no en una función)
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:135:12: aviso: se define ‘alx_validate_mac_addr’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:210:12: aviso: se define ‘alx_init_hw_callbacks’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1698:12: aviso: se define ‘alx_alloc_all_rtx_queue’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1757:13: aviso: se define ‘alx_free_all_rtx_queue’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1773:12: aviso: se define ‘alx_set_interrupt_param’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1824:13: aviso: se define ‘alx_reset_interrupt_param’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1914:12: aviso: se define ‘alx_set_interrupt_mode’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1941:13: aviso: se define ‘alx_reset_interrupt_mode’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2125:12: aviso: se define ‘alx_set_register_info_special’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3043:13: aviso: se define ‘alx_timer_routine’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3064:13: aviso: se define ‘alx_task_routine’ pero no se usa [-Wunused-function]
cc1: algunos avisos se tratan como errores
make[4]: *** [/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o] Error 1
make[3]: *** [/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx] Error 2
make[2]: *** [/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros] Error 2
make[1]: *** [_module_/home/pakete207/compat-wireless-2012-07-03-pc] Error 2
make[1]: se sale del directorio «/usr/src/linux-headers-3.8.0-19-generic»
make: *** [modules] Error 2

pakete207@pakete207-G580:~/compat-wireless-2012-07-03-pc$ sudo make install
Updating Ubuntu's initramfs for 3.8.0-19-generic under /boot/ ...
Will now run update-grub to ensure grub will find the new initramfs ...
Generando grub.cfg ...
Se encontró una imagen linux: /boot/vmlinuz-3.8.0-19-generic
Se encontró una imagen initrd: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Encontrado en Windows Recovery Environment (loader) en /dev/sda3
Encontrado en Windows 8 (loader) en /dev/sda5
hecho

make -C /lib/modules/3.8.0-19-generic/build M=/home/pakete207/compat-wireless-2012-07-03-pc modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-3.8.0-19-generic»
  CC [M]  /home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: En la función ‘alx_hw_printk’:
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:124:3: error: declaración implícita de la función ‘__netdev_printk’ [-Werror=implicit-function-declaration]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: En el nivel principal:
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1955:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter_special’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2010:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3472:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3780:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_remove’
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3903:17: error: ‘alx_init’ no se declaró aquí (no en una función)
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:2: error: declaración implícita de la función ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:29: error: ‘alx_remove’ no se declaró aquí (no en una función)
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:135:12: aviso: se define ‘alx_validate_mac_addr’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:210:12: aviso: se define ‘alx_init_hw_callbacks’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1698:12: aviso: se define ‘alx_alloc_all_rtx_queue’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1757:13: aviso: se define ‘alx_free_all_rtx_queue’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1773:12: aviso: se define ‘alx_set_interrupt_param’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1824:13: aviso: se define ‘alx_reset_interrupt_param’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1914:12: aviso: se define ‘alx_set_interrupt_mode’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1941:13: aviso: se define ‘alx_reset_interrupt_mode’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2125:12: aviso: se define ‘alx_set_register_info_special’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3043:13: aviso: se define ‘alx_timer_routine’ pero no se usa [-Wunused-function]
/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3064:13: aviso: se define ‘alx_task_routine’ pero no se usa [-Wunused-function]
cc1: algunos avisos se tratan como errores

使[4]:* [/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o] 错误 1 ​​make[3]:[/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx] 错误 2 make[2]:[/home/pakete207/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros] 错误 2 make[1]: *[模块/home/pakete207/compat-wireless-2012-07-03-pc] 错误 2 make[1]: se sale del directorio «/usr/src/linux-headers-3.8.0-19-generic» make:*[模块] 错误 2

pakete207@pakete207-G580:~/compat-wireless-2012-07-03-pc$ 

答案1

在 Lenovo G580 上运行以下命令对我有用:

sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget -O- http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 | tar -xj
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
sudo make install

答案2

同样的问题。Android 热点没有任何安全性,所以我将家用无线路由器改为非加密,现在我的笔记本电脑就可以正常工作了!!!

我采纳了 Daniel Yuste Aroca 的建议,发现 DHCP 存在问题。因此,我为笔记本电脑分配了一个静态 IP 地址,现在它可以在启用安全的情况下工作。

因此看起来 DHCP 在启用安全性的情况下无法工作。

我还尝试了另一个用户的建议,禁用了专有驱动程序。它在启用 DHCP 和安全性的情况下工作。

对我来说,这是一个小总结: - 专有驱动程序:它适用于 DHCP 和无安全性,或静态 IP 和启用安全性 - Ubuntu 驱动程序:它适用于 DHCP 和启用安全性

安德里亚

答案3

尝试禁用第三方驱动程序。对我来说,这个方法有效。Piotr

相关内容