如何修复 Ubuntu 18.04 中“未找到 Wifi 适配器”的问题

如何修复 Ubuntu 18.04 中“未找到 Wifi 适配器”的问题

我最近在我的 HP 笔记本电脑(Ubuntu 18.04)上安装了 Ubuntu。但安装后,无线 Wi-Fi 无法正常工作。所以当时,我使用一些命令从此站点解决了这个问题。但几天后,同样的问题再次出现。现在我再次按照相同的程序操作,但它不起作用。我使用了以下命令,错误也如下所示。

$ sudo apt-get 安装 build-essential

Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
The following packages were automatically installed and are no longer required:
  gir1.2-geocodeglib-1.0 libfwup1 libllvm8 libopenal-data libopenal1
  libwayland-egl1-mesa linux-headers-4.15.0-76 linux-headers-4.15.0-76-generic
  linux-headers-5.3.0-26 linux-headers-5.3.0-26-generic
  linux-image-5.3.0-26-generic linux-modules-5.3.0-26-generic
  linux-modules-extra-5.3.0-26-generic ubuntu-web-launchers
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get dist-upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gir1.2-geocodeglib-1.0 libfwup1 libllvm8 libopenal-data libopenal1
  libwayland-egl1-mesa linux-headers-4.15.0-76 linux-headers-4.15.0-76-generic
  linux-headers-5.3.0-26 linux-headers-5.3.0-26-generic
  linux-image-5.3.0-26-generic linux-modules-5.3.0-26-generic
  linux-modules-extra-5.3.0-26-generic ubuntu-web-launchers
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ git clonehttps://github.com/lwfinger/rtlwifi_new.git

fatal: destination path 'rtlwifi_new' already exists and is not an empty directory.

$ cd rtlwifi_new/

~/rtlwifi_new$ git checkout origin/extended -b extended

fatal: A branch named 'extended' already exists.

~/rtlwifi_new$ git 分支

* extended

〜/ rtlwifi_new $ sudo make install

make -C /lib/modules/5.3.0-28-generic/build M=/home/amit/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'
  CC [M]  /home/amit/rtlwifi_new/btcoexist/halbtc8192e2ant.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
scripts/Makefile.build:288: recipe for target '/home/amit/rtlwifi_new/btcoexist/halbtc8192e2ant.o' failed
make[3]: *** [/home/amit/rtlwifi_new/btcoexist/halbtc8192e2ant.o] Error 1
scripts/Makefile.build:519: recipe for target '/home/amit/rtlwifi_new/btcoexist' failed
make[2]: *** [/home/amit/rtlwifi_new/btcoexist] Error 2
Makefile:1655: recipe for target '_module_/home/amit/rtlwifi_new' failed
make[1]: *** [_module_/home/amit/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'
Makefile:85: recipe for target 'all' failed
make: *** [all] Error 2

~/rtlwifi_new$ sudo modprobe -r rtl8723de

modprobe: FATAL: Module rtl8723de not found.

~/rtlwifi_new$ sudo modprobe -r rtl8723de && sudo modprobe rtl8723de

modprobe: FATAL: Module rtl8723de not found.

提前致谢。

终端截图

相关内容