我收到“已安装 rtl8821ce-dkms 包安装后脚本子进程返回错误退出状态 3”错误

我收到“已安装 rtl8821ce-dkms 包安装后脚本子进程返回错误退出状态 3”错误

我跑过去sudo dpkg --configure -a,收到了这条消息:

Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.3) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Error! DKMS tree already contains: rtl8821ce-5.5.2.1
You cannot add the same module/version combo more than once.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 3
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 rtl8821ce-dkms

结果,Wi-Fi 用不了,VirtualBox 也运行不了,重装 Ubuntu 20.04 也一样,试了好几天都没用。

我跑过去sudo apt-get autoremove,收到了这条消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.3) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Error! DKMS tree already contains: rtl8821ce-5.5.2.1
You cannot add the same module/version combo more than once.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 3
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)`

我跑过去sudo apt-get install -f,收到了这条消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.3) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Error! DKMS tree already contains: rtl8821ce-5.5.2.1
You cannot add the same module/version combo more than once.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 3
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

我应该怎么办?

答案1

从系统中删除软件包后,您需要重新安装它。我尝试过的许多系统中,重新安装解决了错误。因此,请运行以下命令:

sudo apt-get autoremove
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt remove rtl8821ce-dkms
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
make
sudo make install
sudo ./dkms-install.sh

然后重新启动。

答案2

我正在安装 rtl8821ce-dkms_5.5.2.1-0ubuntu6_全部(不是“0ubuntu4_all”)并且有效:

wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rtl8821ce/rtl8821ce-dkms_5.5.2.1-0ubuntu6_all.deb

sudo dpkg -i rtl8821ce-dkms_5.5.2.1-0ubuntu6_all.deb

相关内容