daybreakersx / premscript

VPS AutoScript
45 stars 78 forks source link

-bash: /usr/bin/badvpn-udpgw: cannot execute binary file: Exec format error #15

Open ErfanPY opened 1 year ago

ErfanPY commented 1 year ago

I've tried to run badvpn-udpgw64 and badvpn-udpgw script on my Linux VPS which has a aarch64 CPU architecture. And ran into the following error:

-bash: /usr/bin/badvpn-udpgw: cannot execute binary file: Exec format error

I found a general solution for running x86-64 files on arm CPU. Running the following code fixed it:

sudo apt update
sudo apt install -y qemu-user-static binfmt-support
sudo dpkg --add-architecture amd64
sudo apt update
sudo apt install libc6:amd64

Source : https://www.kali.org/docs/arm/x86-on-arm/