1

This is a follow up to what was discussed here: How to solve "No Wi-Fi Adapter Found" error with Realtek RTL8852BE WiFi 6 802.11ax PCIe in Ubuntu 22.04? I'm using a laptop with the same Wi-Fi card (Lenovo Ideapad 5 (15",7)), with Ubuntu running in a dual boot alongside Windows 11.

I have followed the steps in @chili555's answer:

sudo add-apt-repository -r ppa:kelebek333/kablosuz 
sudo apt purge rtw89-dkms 
sudo apt update
sudo apt install git bc
git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be
make

However, when I try make, I get the following error:

/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-43-generic/build M=/home/rlloyd/rtl8852be  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-43-generic'
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: No such file or directory
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:          
/bin/sh: 1: gcc: not found
(standard_in) 1: syntax error
  CC [M]  /home/rlloyd/rtl8852be/platform/platform_linux_pc_pci.o
/bin/sh: 1: gcc: not found
make[2]: *** [scripts/Makefile.build:285: /home/rlloyd/rtl8852be/platform/platform_linux_pc_pci.o] Error 127
make[1]: *** [Makefile:1875: /home/rlloyd/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-43-generic'
make: *** [Makefile:637: modules] Error 2

What should I do now? I should note as well I am a complete beginner with Linux, thank you.

3 Answers3

1

gcc is not installed.

Run sudo apt install build-essential and run again make.

So the complete instructions are:

sudo add-apt-repository -r ppa:kelebek333/kablosuz 
sudo apt purge rtw89-dkms 
sudo apt update
sudo apt install git bc build-essential
git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be
make
Pilot6
  • 92,041
1

I had a similar problem and a different article in askubuntu solved it. Purchased two laptops, HP ProBook 455 G9, and installed Ubuntu 22.04 LTSC on mine. Everything worked great (bluetooth, screen, touchpad) except the WiFi card was not detected. The other ProBook 455 G9 with Windows has the network adapter as Realtek RTL8852BE WiFi 6 802.11ax PCIe Adapter

sudo apt update
sudo apt -y install git build-essential linux-headers-generic
git clone https://github.com/lwfinger/rtw89.git
cd rtw89
make
sudo make install
sudo modprobe rtw89pci

restart.. The post that helped me: How to get Realtek RTL8852AE WiFi card to work on my new laptop

Pilot6
  • 92,041
N5ZY
  • 11
0

I used sudo apt install linux-oem-22.04d and it was the only working solution for me on Kubuntu 22.04 + Realtek 8852CE on a HP OMEN 16-wf0455ng (918J2EA)