Failed to execute child process "net" when entering Nautilus
When typing either of the commands nautilus .
or xdg-open .
into terminal, they execute correctly, but with a warning:
Nautilus-Share-Message: Called "net usershare info" but it failed:
Failed to execute child process “net” (No such file or directory)
As I say, it opens the file manager correctly and I can detect no further problems. There are several instances of users experiencing this message in other questions (1)(2)(3), but each of the questions either addresses a side-issue I'm not experiencing, or simply goes unanswered.
What does this message mean, and can I do anything to prevent it?
1 Answer
Error says, net command not found, so I tried net command. Ubuntu suggested me to install samba-common-bin
Command 'net' not found, but can be installed with:
apt install samba-common-bin
So, I've installed that package.
sudo apt-get install samba-common-bin
That error gone, but in my case new error was thrown.
Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
And then I've created directory
mkdir /var/lib/samba/usershares
Finally, I have no error.
sudo apt install --reinstall nautilus-share
.sudo apt install --reinstall nautilus-share
appears to not work, while callingsudo apt-get remove nautilus-share
and thensudo apt-get remove nautilus-share
separately appears to have resolved it.