You're trying to use the gcc-riscv64-unknown-elf , but you don't install it in your "apt install" line .
Add gcc-riscv64-unknown-elf to the apt install line.