I can't install Sonoma on my MacBook Air
I was given this MacBook air, intel version 2018. It was setup to start up with new user. I set it up and used it with the Mojave OS. I went to software update, where it showed that it could be updated to macOS Sonoma. I attempted this update. It restarted into internet recovery mode. Command R does not work. Using internet recovery mode, I attempted to reinstall Mojave. It gets to 2 minutes remaining and reboots into internet recovery mode. I fear that at some point while attempting to install Mojave, that I may have erased the recovery partition. Now when attempting to use internet recovery, it gives the message that the startup disk needs an update. I does not update, it restarts into internet recovery yet again. Please help.
[Re-Titled by Moderator]
MacBook Air 13″, macOS 10.14