Ubuntu 18.04.02 桌面设置中的 Wifi 选项不可用

Ubuntu 18.04.02 桌面设置中的 Wifi 选项不可用

我正在尝试弄清楚如何在 Ubuntu 18.04.02 桌面设置中重新激活 Wi-Fi 选项:

在此处输入图片描述

从我拍摄的屏幕截图中您可以看到,没有 Wi-Fi 的开/关按钮。

我遵循了这里的指示:Ubuntu(18.04 和 16.04)上没有 wifi 选项 但没有成功......

riccardo@riccardo-HP-Laptop-15-da0xxx:~$ lspci | grep Network
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 
802.11ac PCIe Wireless Network Adapter

riccardo@riccardo-HP-Laptop-15-da0xxx:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:b00a Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0408:5362 Quanta Computer, Inc. 
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


riccardo@riccardo-HP-Laptop-15-da0xxx:~$ sudo lshw -class network
[sudo] password for riccardo: 
  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet  
Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eno1
       version: 15
       serial: c8:d9:d2:ee:2a:29
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list   
ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd  
autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 
duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.5  
latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:16 ioport:4000(size=256) memory:a4204000-
a4204fff memory:a4200000-a4203fff
  *-network UNCLAIMED
        description: Network controller
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: ioport:3000(size=256) memory:a4100000-a410ffff

1°更新:

按照此处的指示:联想 ThinkPad E570(Realtek RTL8821CE)上的 Wi-Fi 无法使用

riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo make install
[sudo] password for riccardo: 
install -p -m 644 8821ce.ko  /lib/modules/5.0.0-37-generic/kernel
/drivers/net/wireless/
/sbin/depmod -a 5.0.0-37-generic
riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo modprobe 
8821ce
libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse:
/etc/modprobe.d/iwlwifi.conf line 8: ignoring bad line starting with 
'“options'
libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse:   
/etc/modprobe.d/iwlwifi.conf line 9: ignoring bad line starting with 
'“options'
modprobe: ERROR: could not insert '8821ce': Operation not permitted

2°更新:

按照此处的指示:如何在 Ubuntu 18.04 上为 Realtek RTL8821CE 安装 Wi-Fi 驱动程序?

riccardo@riccardo-HP-Laptop-15-da0xxx:~$ sudo apt-get install 
--reinstall git dkms build-essential linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 0 not 
upgraded.
Need to get 0 B/5.147 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 208318 files and directories currently 
installed.)
Preparing to unpack .../build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) over (12.4ubuntu1) ...
Preparing to unpack .../dkms_2.3-3ubuntu9.7_all.deb ...
Unpacking dkms (2.3-3ubuntu9.7) over (2.3-3ubuntu9.7) ...
Preparing to unpack .../git_1%3a2.17.1-1ubuntu0.5_amd64.deb ...
Unpacking git (1:2.17.1-1ubuntu0.5) over (1:2.17.1-1ubuntu0.5) ...
Preparing to unpack .../linux-headers-5.0.0-37-  
generic_5.0.0-37.40~18.04.1_amd64.deb ...
Unpacking linux-headers-5.0.0-37-generic (5.0.0-37.40~18.04.1) over 
(5.0.0-37.40~18.04.1) ...
Setting up linux-headers-5.0.0-37-generic (5.0.0-37.40~18.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.0.0-37-generic

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.0.0-37-generic.......(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce:
v5.2.5_1.26055.20180108 not found
Error! Bad return status for module build on kernel: 5.0.0-37-generic 
(x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.2.5_1.26055.20180108/build/make.log
for more information.
   ...done.
Setting up build-essential (12.4ubuntu1) ...
Setting up dkms (2.3-3ubuntu9.7) ...
Setting up git (1:2.17.1-1ubuntu0.5) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

riccardo@riccardo-HP-Laptop-15-da0xxx:~$ git clone https://github.com
/tomaspinho/rtl8821ce
Cloning into 'rtl8821ce'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 1495 (delta 5), reused 12 (delta 2), pack-reused 1473
Receiving objects: 100% (1495/1495), 5.72 MiB | 5.30 MiB/s, done.
Resolving deltas: 100% (812/812), done.

riccardo@riccardo-HP-Laptop-15-da0xxx:~$ cd rtl8821ce
riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ chmod +x dkms-
install.sh
riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ chmod +x dkms-
remove.sh

riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo ./dkms-
install.sh
About to run dkms install steps...
Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20190614
You cannot add the same module/version combo more than once.
Module rtl8821ce/v5.5.2_34066.20190614 already built for kernel
 5.0.0-37-generic/4
Module rtl8821ce/v5.5.2_34066.20190614 already installed on kernel 
5.0.0-37-generic/x86_64
Finished running dkms install steps.

然后我禁用了安全启动:

riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo mokutil 0--disable-validation 密码长度:8~16 输入密码:再次输入密码:o

并重新启动。但仍然看不到 WiFi 设置的开/关选项。

我错过了什么?

3°更新:

我删除了之前的rtl8821ce文件夹,再次git clone了rtl8821ce仓库,删除了之前的rtl8821ce安装,然后重新安装:

riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo make install 
install -p -m 644 8821ce.ko  /lib/modules/5.0.0-37-generic/kernel
/drivers/net/wireless/
/sbin/depmod -a 5.0.0-37-generic
riccardo@riccardo-HP-Laptop-15-da0xxx:~/rtl8821ce$ sudo ./dkms-
install.sh
About to run dkms install steps...

Creating symlink /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/source 
->
                 /usr/src/rtl8821ce-v5.5.2_34066.20190614

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.0.0-37-generic...............
Signing module:
 - /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/5.0.0-37-generic
/x86_64/module/8821ce.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

8821ce:
Running module version sanity check.

Good news! Module version v5.5.2_34066.20190614_COEX20180712-3232 for 
8821ce.ko
 exactly matches what is already found in kernel 5.0.0-37-generic.
DKMS will not replace this module.
You may override by specifying --force.

depmod...

DKMS: install completed.
Finished running dkms install steps.

然后我重新启动了,但设置中仍然没有 wifi 选项......

如何解决这个问题?

相关内容