I tried a command (sudo chown $username: -R ~/.cache/mozilla/firfox/) to run firefox because I got error when try to open the Firefox. The error is Your Firefox profile cannot be loaded. It may be missing or inaccessible. At the time of troubleshooting with the Firfox it seems like my home directory does not exist. If this is the situation how can I fix the Ubuntu 20.04.
I am attaching the error message herewith
Black portions are my username.
Update the question:
I used this solution to create a home directory. Now if I run the command ls -l /home I can found my username. This is as follows
drwxr-xr-x 3 myusername myusername 4096 Nov 21 13:47 myusername
However when I use sudo chown $myusername: -R ~/.cache/mozilla/ ~/.mozilla/firfox I got the error chown: cannot access '/home/myusername/ .cache/mozilla/':No such file or directory
I can open the home directory but that is empty. Do I need to create a directory in my username within the home directory?
What's wrong with my home directory?
In addition to that, you can see the terminal only have $ sign, no path information there.