Ubuntu 16.04 When the computer wakes up again after sleeping, sometimes the network cannot be connected. In addition to restarting, you can also solve it by executing commands.
1. Click the terminal icon on the launcher bar on the left side of the Ubuntu desktop, or simply press: Ctrl Alt t key combination to start the terminal.
2. Enter the command: sudo systemctl restart NetworkManager.service, and press Enter.
3. The network connection icon located in the upper right corner of the desktop will change to "Disconnected" status, and a bubble prompt that the network has been disconnected will appear on the desktop.
4. Soon, the network icon returns to the connected state, and a bubble prompt that the network is connected appears on the desktop.
5. If you need to disconnect and restart the connection later, you can use the following commands:
sudo systemctl stop NetworkManager.service
sudo systemctl start NetworkManager.service
6. Let me mention here that if it is Ubuntu 14.04, you need to use the following command:
sudo /etc/init.d/networking stop or sudo service networking stop
The reason why Ubuntu 16.04 has changed is because of the use of systemd; while 14.04 or older versions use upstart.
related suggestion:
How to set up Ubuntu 16.04 system after installation?
How to record screen in ubuntu16.04? Tutorial on recording desktop video in ubuntu
How to connect to the Internet in Ubuntu 16.04? Tips for setting up a broadband connection in Ubuntu
The above is the detailed content of How to solve the problem of being unable to connect to the network after waking up from sleep in Ubuntu 16.04?. For more information, please follow other related articles on the PHP Chinese website!