This is the second time an update within 20.04 has stopped the mercusys wifi AC650 from working for me (the first time in the first week of using Ubuntu). I have now plugged in a wire to get the internet back working. The previous time I received a successful resolution here;
Using a Mercusys AC650 usb wifi on in Ubuntu 20.04
Following the advice previously I tried;
cd build
cd rtl8821CU
make clean
sudo ./dkms-install.sh
The result of the make clean was;
#make -C /lib/modules/5.11.0-25-generic/build M=/home/fred/build/rtl8821CU clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Then I ran sudo ./dkms-install.sh;
[sudo] password for **:
About to run dkms install steps...
Error! DKMS tree already contains: rtl8821CU-5.4.1
You cannot add the same module/version combo more than once.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' KVER=5.11.0-25-generic......................(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821CU: 5.4.1 not found
Error! Bad return status for module build on kernel: 5.11.0-25-generic (x86_64)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' KVER=5.11.0-25-generic......................(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821CU: 5.4.1 not found
Error! Bad return status for module build on kernel: 5.11.0-25-generic (x86_64)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.
Finished running dkms install steps.
So I noticed that dkms status was also suggested so I ran;
dkms status
rtl8192eu, 1.0: added
rtl8821CU, 5.4.1, 5.8.0-63-generic, x86_64: installed
Please advise on how to proceed to have the Mercusys AC650 back operational so I don't have a wired connection to use the internet?