After following @juergh updates. I realized the problem was the nouveau drivers, also I saw my fresh installation (Ubuntu 22.04.3) was not detecting my RTX 3070. So I fixed both problems installing the drivers.
> sudo apt install nvidia-driver-535
Now, I can shutdown and/or restart my machine without issues. The only problem is this driver is the propertary one. However in my case is not a problem.
After following @juergh updates. I realized the problem was the nouveau drivers, also I saw my fresh installation (Ubuntu 22.04.3) was not detecting my RTX 3070. So I fixed both problems installing the drivers.
> sudo apt install nvidia-driver-535
Now, I can shutdown and/or restart my machine without issues. The only problem is this driver is the propertary one. However in my case is not a problem.
Regards
Juan