Ubuntu 14.04.5 无法连接 WiFi

Ubuntu 14.04.5 无法连接 WiFi

Ubuntu 14.04.5 上未检测到 Wifi 驱动程序。设备:hp 15 bw096au,采用 AMD a6-9220。

sudo dkms status

输出:

bcmwl, 6.30.223.248+bdcom, 4.4.0-112-generic, x86_64: installed
r8168, 8.037.00: added
rtl8723de, 5.1.1.8_21285.20171026_COEX20170111-1414: added
rtlwifi-new, 0.10~trusty, 4.4.0-112-generic, x86_64: installed

sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

输出:

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
'make' all KVER=4.4.0-112-generic.....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8723de: 5.1.1.8_21285.20171026_COEX20170111-1414 not found
Error! Bad return status for module build on kernel: 4.4.0-112-generic (x86_64)
Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.

modinfo rtl8723de | grep file

输出:

modinfo: ERROR: Module rtl8723de not found.

rfkill list all

输出:

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

sudo modprobe rtl8723de

输出:

modprobe: FATAL: Module rtl8723de not found.

sudo dkms remove rtlwifi-new/0.10~trusty

输出:

Error! Invalid number of parameters passed.
Usage: `remove <module>/<module-version> --all`
   or: `remove <module>/<module-version> -k <kernel-version>`

sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

输出:

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
'make' all KVER=4.4.0-112-generic.....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8723de: 5.1.1.8_21285.20171026_COEX20170111-1414 not found
Error! Bad return status for module build on kernel: 4.4.0-112-generic (x86_64)
Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.

make 输出: make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-112-generic/build M=/home/kazi/rtl8723de modules make[1]: Entering directory/usr/src/linux-headers-4.4.0-112-generic' CC [M] /home/kazi/rtl8723de/core/rtw_cmd.o 在从 /home/kazi/rtl8723de/include/drv_types.h:32:0 包含的文件中,来自 /home/kazi/rtl8723de/core/rtw_cmd.c:22: /home/kazi/rtl8723de/include/osdep_service.h:41:33:致命错误:linux/sched/signal.h:没有这样的文件或目录 #include <linux/sched/signal.h> ^ 编译终止。make[2]:*** [/home/kazi/rtl8723de/core/rtw_cmd.o] 错误 1 ​​make[1]:*** [模块/home/kazi/rtl8723de] 错误 2 make[1]: 留下/usr/src/linux-headers-4.4.0-112-generic' make: *** [modules] Error 2 “cat /var/lib/dkms/rtl8723de”的目录输出

5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log`                   DKMS make.log for rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 for kernel 4.15.0-20-generic (x86_64)
Sat May 12 02:13:04 IST 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-20-generic/build M=/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o
In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:41:0,
                 from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h: In function ‘_init_timer’:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:287:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:288:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32:0,
                 from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h: In function ‘thread_enter’:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:369:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
  allow_signal(SIGTERM);
  ^~~~~~~~~~~~
  do_signal
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h: In function ‘flush_signals_thread’:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:391:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
  if (signal_pending(current))
      ^~~~~~~~~~~~~~
      timer_pending
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:392:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
   flush_signals(current);
   ^~~~~~~~~~~~~
   do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o' failed
make[2]: *** [/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o] Error 1
Makefile:1552: recipe for target '_module_/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:1884: recipe for target 'modules' failed
make: *** [modules] Error 2

答案1

在某些情况下陣容模块已添加,但尚未完全安装。

sudo dkms remove rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 --all

如果执行上述任何命令后出现任何错误,停止并在此处发布。在修复这些错误之前,请勿继续。

如果没有错误,则执行以下操作:

sudo rm -rf rtl8723de
git clone -b 4.10-down https://github.com/jeremyb31/rtl8723de.git
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

然后重新启动。

再次强调,如果有任何错误,请停止并告诉我们,以便我们首先修复它。

相关内容