Home  >  Article  >  System Tutorial  >  How to solve the problem of being unable to connect to the network after waking up from sleep in Ubuntu 16.04?

How to solve the problem of being unable to connect to the network after waking up from sleep in Ubuntu 16.04?

PHPz
PHPzforward
2024-01-01 10:45:471403browse

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.

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

2. Enter the command: sudo systemctl restart NetworkManager.service, and press Enter.

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

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.

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

4. Soon, the network icon returns to the connected state, and a bubble prompt that the network is connected appears on the desktop.

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

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

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

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.

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete