如何在Ubuntu上安装Wi-Fi?

如何在Ubuntu上安装Wi-Fi?

我该如何将 wifi 安装到 Ubuntu 20.04,因为输出lspci -knn | grep Net -A3; rfkill list

01: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]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:38c9]
    Kernel driver in use: r8169
0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no
2: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no

我也尝试过:

sudo ./dkms-install.sh 
About to run dkms install steps...
Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20200325
You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j8 KVER=5.8.0-53-generic...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20200325 not found
Error! Bad return status for module build on kernel: 5.8.0-53-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j8 KVER=5.8.0-53-generic...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20200325 not found
Error! Bad return status for module build on kernel: 5.8.0-53-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/make.log for more information.
Finished running dkms install steps.

答案1

您需要安装rtl8821ce-dkms来自 Universe 存储库:

sudo add-apt-repository universe
sudo apt update
sudo apt install rtl8821ce-dkms

答案2

我实际上曾经遇到过这个问题。我妈妈为我做了这些事情,但我记得她说用于添加存储库的 GUI 程序上的示例存储库正是她所需要的。如果我正确理解存储库索引,我还认为它位于“宇宙”存储库中。因此,尝试在 GUI 程序上添加示例存储库以添加存储库,确保它在末尾附近有单词“universe”(不带引号),然后在使用以太网或其他方式连接或连接到互联网时不涉及rtl8821ce卡的方法,并尝试使用sudo apt-get install rtl8821ce,如果这不起作用,sudo apt-get install rtl8821ce-dkms.

依赖项是bc, 且dkms>=2.1.0.0 根据https://packages.ubuntu.com/focal/rtl8821ce-dkms

希望我的回答有帮助!

答案3

那太愚蠢了。 wifi 解决方案的重点是能够在不访问互联网的情况下使用它!?如果我可以通过 apt-get 访问互联网,为什么我还要浪费时间去安装 wifi呢?我想笔记本电脑用户会从中受益,但很多人都使用台式机......

相关内容