0
点赞
收藏
分享

微信扫一扫

Failed to execute child process "net" when entering Nautilus

 

 

Failed to execute child process "net" when entering Nautilus

Ask Question

Asked 5 years, 3 months ago

Modified 1 year, 7 months ago

Viewed 20k times

 


19

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?

  • command-line
  • nautilus

Share

Improve this question

Follow

 

edited Apr 13, 2018 at 10:04

dessert

39.2k1212 gold badges115115 silver badges163163 bronze badges

asked Apr 13, 2018 at 9:17

preferred_anon

45511 gold badge33 silver badges99 bronze badges

  • 1

    It looks like the warning is caused by the "nautilus-share" package (a Nautilus extension). If you're not using it, you can remove that package. 
    – Logix Apr 13, 2018 at 9:20
  •  
    … or try reinstalling it with sudo apt install --reinstall nautilus-share
    – dessert Apr 13, 2018 at 10:13
  • 2

    Interesting... reinstalling with sudo apt install --reinstall nautilus-share appears to not work, while calling sudo apt-get remove nautilus-share and then sudo apt-get remove nautilus-share separately appears to have resolved it. 
    – preferred_anon Apr 13, 2018 at 10:21 
  •  
    @preferred_anon If that worked kindly post that as an answer and mark that as accepted answer. 
    – Kulfy Nov 28, 2018 at 17:00 
  •  
    I think it worked on my old machine, but trying it on my current one did not resolve the issue. @Yavuz Selim's suggestion worked, so I've accepted it. 
    – preferred_anon Nov 30, 2018 at 9:02

Show 1 more comment


1 Answer

Sorted by:

                         Highest score (default)                                                                     Date modified (newest first)                                                                     Date created (oldest first)                     


24

 

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.

Share

Improve this answer

Follow

 

answered Aug 8, 2018 at 11:16

Yavuz Selim

3563

 

https://askubuntu.com/questions/1024593/failed-to-execute-child-process-net-when-entering-nautilus

https://ubuntuforums.org/showthread.php?t=2424307

https://ubuntuforums.org/showthread.php?t=2424307



举报

相关推荐

0 条评论