Shut down the computer, wait 30 seconds, then restart. See if the installation picks up where it left off or if you return to your prior system's Desktop. If the latter, then try this:
Repair the Drive for El Capitan or Later
- Restart the computer. Immediately, at or before the chime, hold down the Command and R keys until the Apple logo and progress bar appear. Wait until the Utility Menu appears.
- Select Disk Utility and press the Continue button.
- Then select the indented (usually, Macintosh HD) volume entry from the side list.
- Click on the First Aid button in the toolbar and wait for the Done button to activate. Click on it, then quit Disk Utility.
- Select Restart from the Apple menu.
Now, try your upgrade again.