I also have Asus ROG STRIX Z370-E GAMING motherboard with wireless card built in but running Ubuntu 18.04. I tried chili555 answer in post:
Asus Rog Strix Z370 EGAMING Wireless card not working
I do not have enough reputation to comment their, also my post is a bit long. When I ran make
I was warned that
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
So I tried this
sudo apt install libelf-dev
make clean
make
which seemed to work
..
..
Install rtlwifi SUCCESS
however the last line gave an error:
sudo modprobe rtl8822be
# modprobe: ERROR: could not insert 'rtl8822be': Exec format error
[edit]
@Jeremy31
$ modinfo rtl8823be | egrep -i 'file|vermagic'
modinfo: ERROR: Module rtl8823be not found.
$ modinfo 8823be | egrep -i 'file|vermagic'
modinfo: ERROR: Module 8823be not found.
$ modinfo rtl8822be | egrep -i 'file|vermagic'
filename: /lib/modules/4.15.0-33-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8822be/rtl8822be.ko
vermagic: 4.15.0-33-generic SMP mod_unload
$ modinfo 8822be | egrep -i 'file|vermagic'
modinfo: ERROR: Module 8822be not found.
@chili555
$ lspci -nnk | grep 0280 -A3
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b822]
Subsystem: ASUSTeK Computer Inc. Device [1043:8746]
Kernel driver in use: r8822be
Kernel modules: r8822be, rtl8822be
$ lsmod | grep 882
r8822be 851968 0
mac80211 778240 3 rtl_pci,r8822be,rtlwifi
cfg80211 622592 3 mac80211,r8822be,rtlwifi
modinfo rtl8823be | egrep -i 'file|vermagic'
– Jeremy31 Aug 25 '18 at 11:08lspci -nnk | grep 0280 -A3
Welcome to Ask Ubuntu. – chili555 Aug 25 '18 at 13:16modinfo 8823be | egrep -i 'file|vermagic'
– Jeremy31 Aug 25 '18 at 22:14lsmod | grep 882
– chili555 Aug 26 '18 at 01:37mokutil --sb-state
Normally the exec format error is the result of the kernel version in the file name not matching the vermagic. It might help if you looked at this question and provided results for the wireless script – Jeremy31 Sep 05 '18 at 21:40