联想 Ideapad 130s(RTL8821CE)的 Lubuntu 20.04 上 Wi-Fi 无法使用

联想 Ideapad 130s(RTL8821CE)的 Lubuntu 20.04 上 Wi-Fi 无法使用

我最近才开始使用 Linux,因为我拥有的 Lenovo Ideapad 130s-11igm 在 Windows 10 上运行缓慢,所以我决定安装 Lubuntu 20.04。不幸的是,wifi 芯片(特别是 RTL8821CE)不能自动与它配合使用。我发现这是此 wifi 芯片的一个常见问题,并尝试遵循许多讨论此问题的论坛帖子和指南。我尝试使用以下方法安装:

sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh

但安装停止 Processing triggers for man-db (2.9.1-1) ...并重试代码让我:

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,847 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 270688 files and directories currently installed.)
Preparing to unpack .../dkms_2.8.1-5ubuntu1_all.deb ...
Unpacking dkms (2.8.1-5ubuntu1) over (2.8.1-5ubuntu1) ...
Preparing to unpack .../build-essential_12.8ubuntu1_amd64.deb ...
Unpacking build-essential (12.8ubuntu1) over (12.8ubuntu1) ...
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) over (1:2.25.1-1ubuntu3) ...
Preparing to unpack .../linux-headers-5.4.0-28-generic_5.4.0-28.32_amd64.deb ...
Unpacking linux-headers-5.4.0-28-generic (5.4.0-28.32) over (5.4.0-28.32) ...
Setting up linux-headers-5.4.0-28-generic (5.4.0-28.32) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-28-generic
   ...done.
Setting up dkms (2.8.1-5ubuntu1) ...
Setting up git (1:2.25.1-1ubuntu3) ...
Setting up build-essential (12.8ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...

我也尝试过用这个帖子把黑名单列入联想 Ideapad s130 上的 Wi-Fi 无法使用但这也不起作用。我似乎遇到的任何其他帖子都倾向于使用第一种方法或另一种过时的方法。

这是我得到的lspci -nnk | grep -iA3 net; rfkill list

    03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
        Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

任何帮助都将不胜感激。谢谢。


所以sudo apt-get remove -y --purge man-db我尝试了一下,结果却进入了终端

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  x11-session-utils xbitmaps xinit
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/5,847 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 270292 files and directories currently installed.)
Preparing to unpack .../dkms_2.8.1-5ubuntu1_all.deb ...
Unpacking dkms (2.8.1-5ubuntu1) over (2.8.1-5ubuntu1) ...
Preparing to unpack .../build-essential_12.8ubuntu1_amd64.deb ...
Unpacking build-essential (12.8ubuntu1) over (12.8ubuntu1) ...
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) over (1:2.25.1-1ubuntu3) ...
Preparing to unpack .../linux-headers-5.4.0-28-generic_5.4.0-28.32_amd64.deb ...
Unpacking linux-headers-5.4.0-28-generic (5.4.0-28.32) over (5.4.0-28.32) ...
Setting up linux-headers-5.4.0-28-generic (5.4.0-28.32) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-28-generic
   ...done.
Setting up dkms (2.8.1-5ubuntu1) ...
Setting up git (1:2.25.1-1ubuntu3) ...
Setting up build-essential (12.8ubuntu1) ...

然后重新启动,但 Wi-Fi 仍然无法工作。

答案1

在 BIOS/UEFI 中重新启动并确保安全启动已关闭。您可能需要为此设置管理员密码。

按 F10 或 F12 保存并退出

机器启动到 Ubuntu 后,将手机插入 USB 端口并设置 >>> 连接 >>>> 移动热点和网络共享 >>> USB 网络共享,建立临时以太网连接。

打开一个终端。

将此行粘贴到终端:

sudo apt-get install rtl8821ce-dkms

按 Enter 键

安装完成后,重启电脑。你的 WiFi 卡现在应该可以正常工作了。

相关内容