进入 Nautilus 时无法执行子进程“net”

pre*_*non 12 command-line nautilus

在输入任一命令nautilus .xdg-open .输入终端时,它们会正确执行,但会出现警告:

Nautilus-Share-Message: Called "net usershare info" but it failed:
Failed to execute child process “net” (No such file or directory)
Run Code Online (Sandbox Code Playgroud)

正如我所说,它正确打开了文件管理器,我无法检测到进一步的问题。有几个用户在其他问题(1) (2) (3) 中遇到此消息的实例,但每个问题要么解决我没有遇到的附带问题,要么只是没有得到答复。

这条消息是什么意思,我能做些什么来阻止它吗?

小智 14

错误说,找不到 net 命令,所以我尝试了net命令。Ubuntu 建议我安装samba-common-bin

找不到命令“net”,但可以使用以下命令安装:

apt 安装 samba-common-bin

所以,我已经安装了那个包。

sudo apt-get install samba-common-bin
Run Code Online (Sandbox Code Playgroud)

那个错误消失了,但就我而言,抛出了新错误。

称为“net usershare info”但它失败了:“net usershare”返回错误 255:net usershare:无法打开 usershare 目录 /var/lib/samba/usershares。错误没有那个文件或目录

然后我创建了目录

mkdir /var/lib/samba/usershares
Run Code Online (Sandbox Code Playgroud)

最后,我没有错误。