Score:3

"Files" File manager is not working on Ubuntu 20.04

gw flag

"Files" File manager is not working on my Ubuntu 20.04 system.

If I try to open it from terminal by using nautilus command, still nothing is happening.

But if I try with sudo nautilus command then It can open. But each time I dont want to open it through terminal command. I want it to open through UI only as it was working before.

I had recently installed docker on my system. I thought this was happening because of docker installation. so I completely uninstalled docker using this steps. https://askubuntu.com/a/1021506/1503528 but still issue has not solved.

I have also tried below solutions. But nothing has worked for me.

  1. reinstalling nautilus-data using below command (https://askubuntu.com/a/770192/1503528)
sudo apt-get install --reinstall nautilus-data
  1. terminating the running nautilus process and restarting it using below commands (https://askubuntu.com/a/875311/1503528)
ps awx | grep nautilus
sudo kill -TERM <id>
  1. Uninstalling and reinstalling Nautilus ( https://askubuntu.com/a/876810/1503528)

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

guiverc avatar
cn flag
You've likely run it before via `sudo nautilus` & made a change that as a consequence, has removed access from your user for one of it's configuration files. It shouldn't be run with `sudo`, or should you do it, you should be careful to not change ownership away from your own $USER and give ownership to root. Look for files in $HOME that aren't owned by you anymore & correct your ownership
gw flag
@guiverc, I managed to change ownership to my USER. 1. I started nautilus through 'sudo nautilus' command. 2. In home directory right click and selected Properties. 3. In permissions tab changed user to my USER. Now I can open "Files" as it was working before. Thank you for your comment which helped me to thoroughly understand what exactly was happened.
guiverc avatar
cn flag
Please feel free to write your own answer then, and you'll be able to accept it & gain rep. points. You're welcome to credit me if you wish; I'm happy you got it solved :)
Score:2
gw flag

Question

The issue was I had changed ownership of nautilus to root user only while doing something. Because of that I was not able to start nautilus from terminal OR "Files" from UI as a my regular USER.

Thanks to @guiverc. His Comment helped me to understand what exactly was happened.

Solution:

  1. I started nautilus through sudo nautilus command.
  2. In home directory right click and selected Properties.
  3. In permissions tab changed user to my USER. Now I can open "Files" as it was working before.

Thanks again @guiverc

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.