A "better" approach starts with a proper Termux environment.
# Update packages
pkg update && pkg upgrade -y
fastboot oem unlock
They require an unlock token. Using Termux "better" means you can download the token via wget, then:
fastboot flash unlock_token unlock_token.bin
fastboot oem unlock
pkg update && pkg upgrade -y
pkg install wget unzip tar nano