I switched display managers from lightdm to gdm and it fixed the issue
sudo systemctl status display-manager
sudo dpkg-reconfigure lightdm
systemctl status gdm.service
sudo apt install --reinstall ubuntu-session
reboot machine
Info about the issue: https://bbs.archlinux.org/viewtopic.php?id=150017
https://askubuntu.com/questions/1245071/cant-lock-screen-with-shortcut-on-ubuntu-20-04-gnome
I switched display managers from lightdm to gdm and it fixed the issue
sudo systemctl status display-manager
sudo dpkg-reconfigure lightdm
systemctl status gdm.service
sudo apt install --reinstall ubuntu-session
reboot machine
Info about the issue: /bbs.archlinux. org/viewtopic. php?id= 150017
https:/
https:/ /askubuntu. com/questions/ 1245071/ cant-lock- screen- with-shortcut- on-ubuntu- 20-04-gnome