输入sudo service networking restart
时,出现如下错误:
edward@computer:~$ sudo service networking restart
stop: Job failed while stopping
start: Job is already running: networking
当我想networking
在更改mac地址后以及在/etc/network/interfaces
文件中设置静态IP之后重新启动时,遇到此错误。
即使恢复了这些更改并且计算机运行正常,我仍然遇到相同的错误。
在浏览过程中,/var/log/syslog
我发现了这一点:
kernel: [ 6448.036144] init: networking post-stop process (28701)
terminated with status 100
与停止/启动失败有关吗?
我在Ubuntu 14.04上
post-stop
您的日志中的错误()似乎与此相关(在/etc/init/networking.conf
第25ff行中):
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
您会获得退出代码,但会得到更多信息sudo service networking restart
。
此错误报告中有很多有关此问题的详细信息。似乎已弃用的行为。/etc/init.d/networking stop
不再起作用,对Debian Jessiesudo service networking stop
也不起作用。您现在似乎必须在各个网络接口上运行ifup
/ ifdown
,所以我们希望您没有太多。
如果不接受ifup
/ ifdown
,则可以恢复13.10行为。
最终的解决方案是: sudo service network-manager restart
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句