pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.34k stars 79 forks source link

rtl8821ce-dkms is unable to update #3241

Open darkc1nder97 opened 2 months ago

darkc1nder97 commented 2 months ago

When doing an update, I receive an error about my rtl8821ce-dkms

Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu11pop1~1659015671~22.04~5417fc0) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 6.6.10-76060610-generic
Building initial module for 6.6.10-76060610-generic
ERROR (dkms apport): kernel package linux-headers-6.6.10-76060610-generic is not supported
Error! Bad return status for module build on kernel: 6.6.10-76060610-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): apt: Installed: 2.4.11

Issue/Bug Description: When running sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y I get the errors posted above.

Expected behavior: The command should run through without any errors.

Charky-Dev commented 2 months ago

Been experiencing the same thing for a while now. Error shows up when I try to install or update anything. Any attempts to install / remove and reinstall the driver in question have had no effect.

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): `$ apt policy rtl8821ce-dkms Installed: 5.5.2.1-0ubuntu11pop1~1659015671~22.04~5417fc0 Candidate: 5.5.2.1-0ubuntu11pop1~1659015671~22.04~5417fc0 Version table: *** 5.5.2.1-0ubuntu11pop1~1659015671~22.04~5417fc0 1001 1001 http://apt.pop-os.org/release jammy/main amd64 Packages 1001 http://apt.pop-os.org/release jammy/main i386 Packages 100 /var/lib/dpkg/status 5.5.2.1-0ubuntu11~0.22.04.1 500 500 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 Packages 500 http://apt.pop-os.org/ubuntu jammy-updates/universe i386 Packages 5.5.2.1-0ubuntu10 500 500 http://apt.pop-os.org/ubuntu jammy/universe amd64 Packages 500 http://apt.pop-os.org/ubuntu jammy/universe i386 Packages

$ apt policy apt apt: Installed: 2.4.11 Candidate: 2.4.11 Version table: *** 2.4.11 500 500 http://apt.pop-os.org/ubuntu jammy-updates/main amd64 Packages 100 /var/lib/dpkg/status 2.4.5 500 500 http://apt.pop-os.org/ubuntu jammy/main amd64 Packages

$ apt policy pop-shop pop-shop: Installed: 7.4.0pop0~1709656947~22.04~552fdf3 Candidate: 7.4.0pop0~1709656947~22.04~552fdf3 Version table: *** 7.4.0pop0~1709656947~22.04~552fdf3 1001 1001 http://apt.pop-os.org/release jammy/main amd64 Packages 100 /var/lib/dpkg/status `

poolborges commented 1 month ago

A solution

.Remove the package sudo apt remove rtl8821ce-dkms

.Add to hold (To not be installed or update) sudo apt-mark hold rtl8821ce-dkms

Driver is provide

OBS: SINCE Kernel 5.9 a driver is provide

Get information

lspci | grep Network
lsmod | grep rtw
lsmod | grep cfg80211
lshw -C network