ubuntu16.04挂起长时间后再恢复无法联网

续之前的问题

之前曾经遇到过一次,当时的方法修改了某个系统文件参数,还是不行,最后猜测是使用了rfkill软阻塞了无线网卡的启动,但今天尝试后,发现并不是软阻塞的问题。因为只显示蓝牙的情况,根本不显示无线网卡的情况。
使用ifconfig -a 也找不到无线网卡,iwconfig也没有发现无线网卡。

操作:使用sudo ifconfig wlp3s0 up去打开无线网卡,显示: wlp3s0: 获取接口标志时出错: 没有那个设备。
$:service networking restart:Job for networking.service failed because the control process exited with error code. See “systemctl status networking.service” and “journalctl -xe” for details.

$:systemctl status networking.service : networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: failed (Result: exit-code) since 日 2017-08-27 15:57:23 CST; 19s ago
Docs: man:interfaces(5)
Process: 13959 ExecStart=/sbin/ifup -a –read-environment (code=exited, status
Process: 13954 ExecStartPre=/bin/sh -c [ “$CONFIGURE_INTERFACES” != “no” ] &&
Main PID: 13959 (code=exited, status=1/FAILURE)

8月 27 15:57:23 jjlinux ifup[13959]: than a configuration issue please read the s
8月 27 15:5:q7:23 jjlinux ifup[13959]: bugs on either our web page at www.isc.org o
8月 27 15:57:23 jjlinux ifup[13959]: before submitting a bug. These pages explai
8月 27 15:57:23 jjlinux ifup[13959]: process and the information we find helpful
8月 27 15:57:23 jjlinux ifup[13959]: exiting.
8月 27 15:57:23 jjlinux ifup[13959]: Failed to bring up eth0.
8月 27 15:57:23 jjlinux systemd[1]: networking.service: Main process exited, code
8月 27 15:57:23 jjlinux systemd[1]: Failed to start Raise network interfaces.
8月 27 15:57:23 jjlinux systemd[1]: networking.service: Unit entered failed state
8月 27 15:57:23 jjlinux systemd[1]: networking.service: Failed with result ‘exit

$:vi /etc/network/interfaces:

interfaces(5) file used by ifup(8) and ifdown(8)

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
没有wlp3s0网卡。

猜测:是不是手动添加可修复这个问题?

好像确实是无线网卡被关闭,完全打不开,使用了sudo network-manager restart,使用了service networking restart,仍然没用。
使用iwconfig查看时发现wlp3s0网卡是ESSID:off/any,Access Point:Not-Associated等等。
还使用了ifconfig wlp3s0 up,仍然不行,这个是无线网卡,但是发现了一些信息,提示的是SIOCSIFFLAGS:不被允许的操作。感觉像是系统直接禁止了这个无线的服务。后面在开启服务时又提示的是systemctl无法操作。

解决

貌似使用wicd替换network-manager服务好像可以解决这个问题,因为ubuntu下的network-manager服务管理网络的,很容易出问题。但是原因呢?到底是为什么网卡都启用不了了?
网上还说可以在/etc/modprobe.d/blacklist.conf文件最后加入 blacklist acer-wmi,不知道什么意思。
从这延伸的话:是不是可能某个模块被禁用了?

暂时的解决

删除了network-manager管理网络,使用wicd来管理。

怎么开机自动开启wicd?