Today, when I opened my laptop, I found that I could not open google.

It’s so weird!

And I found no networking connection that time, here is how I fix this issue to keep my work going on.

Env:

  • OS: LinMint 21.1 Cinnamon
  • VM: virtual machine V17
  • Network mode: NAT

First of all, I checked whether the network enabled or not.

sudo cat /var/lib/NetworkManager/NetworkManager.state

And the result is:

[main]
NetworkingEnabled=false
WirelessEnabled=true
WWANEnabled=true

The NetworkingEnabled is false, this is why my lintmint has no network.

So I needed to update it to true.

Before I updated it, I need to close the network now.

sudo nmcli networking off

After the networking shutting down, I could use sudo vim /var/lib/NetworkManager/NetworkManager.state to edit the state of NetworkingEnabled.

Here is the final result:

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

At last, I turned on the network: sudo nmcli networking on

After some seconds, the network had been re-established.

PS. Due to the Linmint is based on Ubuntu, so you can reference this post if you use Ubuntu.