为联想 ThinkPad E480(Ubuntu 18.04)安装 Wifi 驱动程序时出现问题

为联想 ThinkPad E480(Ubuntu 18.04)安装 Wifi 驱动程序时出现问题

我在安装过程中选择安装所有第三方驱动程序,并使用有线连接来更新软件,并检查其他驱动程序。仍然没有运气。

然后我在这里查看并发现一个类似的帖子,它似乎帮助了一位用户,但却未能解决我的问题。

发布的解决方案如下:

sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh

这对我来说很有效,我将在下面发布结果:

gino@DrHappy:~$ sudo apt update Hit:1 http://tw.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://tw.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://tw.archive.ubuntu.com/ubuntu bionic-backports InRelease Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Fetched 88.7 kB in 2s (39.6 kB/s)                     Reading package lists... Done Building dependency tree        Reading state information... Done 3 packages can be upgraded. Run 'apt list
--upgradable' to see them. gino@DrHappy:~$ sudo apt install build-essential git dkms Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version (12.4ubuntu1). build-essential set to manually installed. dkms is already the newest version (2.3-3ubuntu9.2). dkms set to manually installed. Suggested packages:   git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed:   git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded. Need to get 4733 kB of archives. After this operation, 33.9 MB of additional disk space will be used. Get:1 http://tw.archive.ubuntu.com/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22.8 kB] Get:2 http://tw.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.4 [803 kB] Get:3 http://tw.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.4 [3907 kB] Selecting previously unselected package liberror-perl. (Reading database ... 127259 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17025-1_all.deb ... Unpacking liberror-perl (0.17025-1) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a2.17.1-1ubuntu0.4_all.deb ... Unpacking git-man (1:2.17.1-1ubuntu0.4) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.17.1-1ubuntu0.4_amd64.deb ... Unpacking git (1:2.17.1-1ubuntu0.4) ... Setting up git-man (1:2.17.1-1ubuntu0.4) ... Setting up liberror-perl (0.17025-1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up git (1:2.17.1-1ubuntu0.4) ... gino@DrHappy:~$ git clone https://github.com/tomaspinho/rtl8821ce.git Cloning into 'rtl8821ce'... remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (20/20), done. remote: Total 672 (delta 7), reused 6 (delta 1), pack-reused 651 Receiving objects: 100% (672/672), 3.33 MiB | 916.00 KiB/s, done. Resolving deltas: 100% (236/236), done. gino@DrHappy:~$ cd rtl8821ce gino@DrHappy:~/rtl8821ce$ sudo ./dkms-install.sh About to run dkms install steps...

Creating symlink /var/lib/dkms/rtl8821ce/v5.2.5_1.26055.20180108/source ->
                 /usr/src/rtl8821ce-v5.2.5_1.26055.20180108

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module: cleaning build area... 'make' -j4 KVER=4.18.0-15-generic............ Signing module:
 - /var/lib/dkms/rtl8821ce/v5.2.5_1.26055.20180108/4.18.0-15-generic/x86_64/module/8821ce.ko Nothing to do. cleaning build area...

DKMS: build completed.

8821ce: Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-15-generic/updates/dkms/

depmod...

DKMS: install completed. Finished running dkms install steps.

然而最初的用户说要跟进

sudo modprobe 8821ce

我无法运行此命令,目前我假设这就是我仍然没有 Wifi 驱动程序的原因。当我尝试运行它时,我得到了以下结果。

gino@DrHappy:~$ sudo modprobe 8821ce
[sudo] password for gino: 
modprobe: ERROR: could not insert '8821ce': Operation not permitted

我试了几次以确保我没有输错密码,但还是没成功。下面我将发布原始问题的链接。我试图在那里添加这条评论,但由于在该特定主题上发帖需要声誉限制,因此不允许这样做。

联想 Thinkpad E480 - 在 Ubuntu 18.04 中未找到 Wifi 适配器

如果有人能告诉我哪里出了问题,或者有其他方法可以让我的 Wifi 正常工作,那就太好了。

答案1

我强烈地感觉到,问题在于此:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1806472

“r8822be 模块别名完好无损,尝试对其进行 modprobe 或插入会导致“操作不允许”错误。”

我相信该错误也适用于其他几个 Realtek 模块。

请尝试禁用安全启动。

答案2

更新

sudo apt 安装 git

git 克隆https://github.com/shubham151/rtl8821ce.git

光盘 rtl8821ce

sudo apt 安装 gcc

sudo apt 安装 make

sudo 全部

安装

sudo modprobe -a 8821ce

sudo-i

回显“选项 rtl8821ce msi=1”> /etc/modprobe.d/rtl8821ce.conf

相关内容