As i said previously, you should try download Bitcoin Core tarball file inside/from your VM.
Whats the code to do that?
No code needed. Just open browser inside your VM, visit
https://bitcoincore.org/en/download/ and then download Bitcoin Core tarball file.