Hello!
Could you let me know what model and year Mac you are using?
The issue may be that you computer is not compatible with the current operating system (macOS Mojave). Also, it could be that you have to upgrade to macOS High Sierra first then transition to macOS Mojave. Check out the following links to check the compatibility of your computer and for detailed steps on how to properly upgrade.
How To Upgrade To macOS Mojave: https://support.apple.com/en-us/HT201475
How To Upgrade To macos High Sierra: https://support.apple.com/en-us/HT208969
Let me know if this helps or if you have any further questions!