modprobe: ERROR: could not insert 'rtl8723be': Exec format error [wifi] [duplicate]

Solution 1:

I had the same problem, i used to run make, install, mod....etc commands from the same old directory "rtlwifi_new"(which i downloaded a month ago) .

Try a fresh installation by downloading all files again.

Solution 2:

if you have rtlwifi_new downloaded,

cd rtlwifi_new
sudo make uninstall
sudo make clean

Then, make, install and insert the module. Don't re-download the repo.

Solution 3:

Same as @Pilot6 (thanks!!!), I fixed my issue with: Wifi problems with rtl8723be in Ubuntu 14.04

After every kernel update:

  1. Execute

     cd rtlwifi_new
    
  2. Clean previous builds with

     make clean
    
  3. Update git repository with

     git pull
    
  4. Compile it with

     make clean && make
    
  5. And install with

     sudo make install
    
  6. Reboot or unload/load modules.