How do you log in?The same exact problem happened to me, using proxmox v7 image for a scaleway/online.net dedibox server, why ? (and the problem is not related with gnome...)
If you are using
su
the problem might be related to the change of implementation:https://unix.stackexchange.com/questions/460478/debian-su-and-su-path-differences/460769#460769
You should use
su -