Failed to execute child process "net" when entering Nautilus

 

 

Asked 5 years, 3 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?

  • 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.   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.   Nov 30, 2018 at 9:02

1 Answer

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.

posted @   a318013800  阅读(280)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
历史上的今天:
2021-07-23 fontSize adjustTextFontSize
2020-07-23 在Ubuntu上为Android系统编写Linux内核驱动程序
2020-07-23 Android系统源码学习步骤 ,linux学习方向
2019-07-23 RFID相关知识总结(超高频UHF)
点击右上角即可分享
微信分享提示