There should be a version string above the log in prompt on the text console at least (e.g. Ubuntu 22.04.4 LTS).
If not, and as you can log in on the text console, you can also get the version by entering the command
Knowing which version you are running gives a starting point for people to help.
While you are logged in on the text console, the output from
might help to show if there are any services which failed to start.
Says oops an error hassle occurred log out.
I'd guess this is a message you get on the default graphical screen? Can you describe in steps what happens, e.g. does the graphical log in appear, if you try to log in on the graphical screen, do you see any desktop elements or just the error? And so on.
Not sure what to do messed with sudo apt update/upgrade.
Was this before or after the message started appearing?