Edw*_*lds 9 networking daemon start-stop-daemon
当我输入sudo service networking restart
时,出现如下所示的错误:
edward@computer:~$ sudo service networking restart
stop: Job failed while stopping
start: Job is already running: networking
Run Code Online (Sandbox Code Playgroud)
当我想networking
在更改 mac 地址后以及在/etc/network/interfaces
文件中设置静态 IP 后重新启动时出现此错误。
即使在恢复这些更改并且我的计算机工作正常后,我也会遇到同样的错误。
在查看时,/var/log/syslog
我发现了这一点:
kernel: [ 6448.036144] init: networking post-stop process (28701)
terminated with status 100
Run Code Online (Sandbox Code Playgroud)
这与失败的停止/启动有关吗?
我在 Ubuntu 14.04
post-stop
您日志中的错误 ( ) 似乎与此有关(第 25/etc/init/networking.conf
行):
post-stop script
if [ -z "$UPSTART_STOP_EVENTS" ]; then
echo "Stopping or restarting the networking job is not supported."
echo "Use ifdown & ifup to reconfigure desired interface."
exit 100
fi
Run Code Online (Sandbox Code Playgroud)
您将获得退出代码,但如果您这样做,则不会获得更多信息sudo service networking restart
。
这个错误报告中有很多关于这个问题的细节。这似乎是不推荐的行为。/etc/init.d/networking stop
不再工作,在 Debian Jessie 上sudo service networking stop
也没有任何影响。您现在似乎必须在各个网络接口上运行ifup
/ ifdown
,所以希望您没有太多它们。
如果使用ifup
/ifdown
是不可接受的,这允许您恢复 13.10 行为。
它的最终解决方案是: sudo service network-manager restart