ubuntu Nautilus won’t open, or fails often

“Files” File manager (Nautilus) is not working on an Ubuntu system. Files either stops working, or won’t load at all.

try:

  1. reinstalling nautilus-data using below command
sudo apt-get install --reinstall nautilus-data  ## this one worked in 22.04
  1. terminating the running nautilus process
ps awx | grep nautilus
sudo kill (process ID) 
  1. Uninstalling and reinstalling Nautilus

sudo apt-get remove nautilus

sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nautilus