Upgrade fault

Sorry if this is and oldie - sure I’m not the first but cannot find in history.
I have msg on startup "version 1.16.6 ready to install. Must restart to complete. Selecting restart gives me a JavaScript error (uncaught exception). I have got into habit of bypassing problem by rejecting restart so no error but no upgrade. Is there a solution?