You are not logged in.
I have a working LinuxMint system. I was able to install the driver for ASUS USB AC55 B1 by two simple actions: chmod install.sh to be executable and set the top level directory name to what install.sh thinks it should be (the latter's a bug). I thought for sure I could do the same thing on Devuan given how related Ubuntu, LinuxMint, Debian, and Devuan are. But on Devuan, error messages complain about the makefile. I added an ls to install.sh to make sure it was in the proper directory. The output is below. I realize this isn't strictly a Devuan thing; more of a Unix/Linux thing, I assume it has to do with how Ubuntu/LinuxMint handles shell scripts versus Debian/Devuan. I tried it both with sudo and su. Could someone give me a hint as to what's wrong?
$ sudo ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
tar: Old option 'f' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
88x2bu.ko 88x2bu.o hal Kconfig Module.symvers rtl8822b.mk
88x2bu.mod.c clean ifcfg-wlan0 Makefile os_dep runwpa
88x2bu.mod.o core include modules.order platform wlan0dhcp
Authentication requested [root] for make clean:
bash: make: command not found
Authentication requested [root] for make driver:
bash: make: command not found
##################################################
Compile make driver error: 127
Please check error Mesg
##################################################
Offline
bash: make: command not found
apt install build-essential linux-headers-$(uname -r)
I don't know about the tar error. It sounds like there's a tar command in the script that has the -f option but no filename after it.
Offline
Sorry, I should have mentioned the tar error. I ran install.sh after commenting those lines out, but I got the same error. There seems to be a difference in the way Ubuntu/LinuxMint and Debian/Devuan extract files, so I went into each directory and extracted them all manually.
I tried the apt line, but got the following:
user@intel60:~$ sudo apt install build-essential linux-headers-$(uname -r)
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-6-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-6-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-6-amd64'
user@intel60:~$
Then I used Synaptic to install build-essential and the linux-headers entries that seemed to be related to amd64. The make error is a little different now:
$ sudo ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
tar: Old option 'f' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
88x2bu.ko 88x2bu.o hal Kconfig Module.symvers rtl8822b.mk
88x2bu.mod.c clean ifcfg-wlan0 Makefile os_dep runwpa
88x2bu.mod.o core include modules.order platform wlan0dhcp
Authentication requested [root] for make clean:
#make -C /lib/modules/4.9.0-6-amd64/build M=/home/user/Downloads/USB-AC55_B1/Linux/RTL88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/driver/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 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
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-6-amd64/build M=/home/user/Downloads/USB-AC55_B1/Linux/RTL88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/driver/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 modules
make[1]: *** /lib/modules/4.9.0-6-amd64/build: No such file or directory. Stop.
Makefile:1986: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
Then I noticed that /lib/modules/4.9.0-6-amd64/build did not exist, so I created build.
$ sudo ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
tar: Old option 'f' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
clean hal include Makefile platform runwpa
core ifcfg-wlan0 Kconfig os_dep rtl8822b.mk wlan0dhcp
Authentication requested [root] for make clean:
#make -C /lib/modules/4.9.0-6-amd64/build M=/home/user/Downloads/USB-AC55_B1/Linux/RTL88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/driver/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 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
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-6-amd64/build M=/home/user/Downloads/USB-AC55_B1/Linux/RTL88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/driver/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 modules
make[1]: Entering directory '/lib/modules/4.9.0-6-amd64/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.9.0-6-amd64/build'
Makefile:1986: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
It seems like it's expecting something in build, but how could that be?
And I just tried to install it on SparkyLinux, which is based on Debian. I got the exact same error.
Last edited by nobodyuknow (2019-09-27 21:57:06)
Offline
user@intel60:~$ sudo apt install build-essential linux-headers-$(uname -r) [sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.9.0-6-amd64 E: Couldn't find any package by glob 'linux-headers-4.9.0-6-amd64' E: Couldn't find any package by regex 'linux-headers-4.9.0-6-amd64' user@intel60:~$
You're running an old kernel version so the matching headers are no longer available in the repositories.
First update your system then reboot into the new kernel version and install the headers:
# apt install module-assistant
# m-a prepare
Then try the script again.
Brianna Ghey — Rest In Power
Offline
THAT'S IT!
At first it didn't work, but after a reboot the make finished to completion.
I really wanted Devuan to work because of Poettering's latest proclamation. I need to be systemd-free.
Thanks a lot for the assistance of fsmithred and Head_on_a_Stick.
Last edited by nobodyuknow (2019-09-28 19:21:26)
Offline