我最近在笔记本电脑上安装了 Ubuntu 18.04,安装时它并没有要求我提供 WiFi 连接,从那时起它就再也没有工作过。
以下是我使用过的一些命令。
代码:
$ sudo lshw -c network
[sudo] password for jenn:
*-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:01:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: ioport:3000(size=256) memory:a1000000-a100ffff
$ lspci | grep Wireless
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe
Network Adapter
$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ lspci -nnk | grep -A2 0280
01:00.0 Network controller : Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]
$ iwconfig
lo no wireless extensions.
$ dmesg | grep iwl
$ lspci -knn | grep -i net -A3
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]
$ lspci -nn -d 10ec:
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
$ uname -a
Linux jenn 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
该网络似乎无人认领。
我曾经见过此命令输出其他选项的其他情况,但就我而言,只有这一个。
最后,没有额外的驱动程序,尽管我已连接可为我提供互联网的内存。
我是 Linux 发行版的新手,所以我对这个问题真的一头雾水。提前谢谢。
答案1
根据这个邮政,问题可以解决:
sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x *.sh
sudo ./dkms-install.sh
reboot