Lenovo 18.04 未找到 Wi-Fi 适配器

Lenovo 18.04 未找到 Wi-Fi 适配器

我知道这个问题之前有人问过,但答案对我没有帮助。我有一台联想 Ideapad,我通过 UNetbootin 18.04 安装了它。安装的其他一切都很顺利,但和其他人一样,我的 wifi 无法正常工作。特别是,我收到了消息no wi-fi adapter found

许多修复依赖于通过以太网连接访问互联网,但我的机器没有这样的连接。

我已经有好几年没用过 Ubuntu 了,所以我的 Linux 操作系统很生疏。我本质上是个新手。

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:co24]

让我再次强调新手。我不知道如何发布此内容。这是我在make再次更新和升级后尝试运行的反馈:

/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-15-generic/build M=/home/john/Downloads/rtl8821ce  modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-15-generic'
arch/x86/Makefile:155: CONFIG_X86_X32 enabled but no binutils support
./scripts/gcc-version.sh: line 26: gcc: command not found
./scripts/gcc-version.sh: line 27: gcc: command not found
Makefile:970: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
make[1]: gcc: Command not found
make[1]: gcc: Command not found
make[1]: gcc: Command not found
make[1]: gcc: Command not found
/bin/sh: 1: gcc: not found
(standard_in) 1: syntax error
/home/john/Downloads/rtl8821ce/Makefile:2157: home/john/Downloads/rtl8821ce/hal/phydm/phydm.mk: No such file or directory
/home/john/Downloads/rtl8821ce/Makefile:2166: home/john/Downloads/rtl8821ce/rtl8821c.mk: No such file or directory
make[2]: *** No rule to make target 'home/john/Downloads/rtl8821ce/rtl8821c.mk'.  Stop.
Makefile:1534: recipe for target '_module_/home/john/Downloads/rtl8821ce' failed
make[1]: *** [_module_/home/john/Downloads/rtl8821ce] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-15-generic'
Makefile:2237: recipe for target 'modules' failed
make: *** [modules] Error 2
john@john-Lenovo-ideapad-130S-11IGM:~/Downloads/rtl8821ce$ sudo make install
/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
install -p -m 644 8821ce.ko  /lib/modules/4.18.0-15-generic/kernel/drivers/net/wireless/
install: cannot stat '8821ce.ko': No such file or directory
Makefile:2243: recipe for target 'install' failed
make: *** [install] Error 1

运行命令并收到以下错误:

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
john@john-Lenovo-ideapad-130S-11IGM:~$ sudo apt-get install libelf-dev
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

答案1

请打开终端并执行:

sudo apt-get update && sudo apt-get install build-essential git dkms
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh   
sudo modprobe 8821ce

你的无线网络现在应该可以正常工作了。

修订日期:2019 年 7 月 31 日上午 9:40(美国东部时间)

答案2

先决条件:

  1. 命令“lspci”显示无线网卡为 RTL8821CE

  2. 您已通过 USB 网络成功连接互联网

我新购买的 Lenovo-V145-15AST 也遇到了类似的问题,因为 Ubuntu 在安装 Ubuntu 18.04.3 LTS 后没有找到活动的 WiFi 适配器。

由于在安装 Ubuntu 时未找到无线网卡,因此安装过程中未执行更新和升级。当我按照有关此问题的各种帖子的建议进行操作时,似乎这阻止了 RTL8821CE 无线网卡驱动程序的成功安装。

对我而言有用的是,只要命令 lspci 确实列出了无线网卡,并且已经设法通过智能手机 USB 进行连接,那么操作如下:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git

正如该问题的第二个答案所建议的那样:https://stackoverflow.com/questions/56901922/error-showing-in-the-installation-of-git-in-ubuntu-18-04-2lts

然后按照以下顺序进行: https://github.com/tomaspinho/rtl8821ce

重启后,无线网卡启动并连接到我的 WiFi。

相关内容