Fix: activation of network connection failed on Linux
Networking is used for sharing resources across the network. However, it is also useful to communicate across the network with other users. In Linux, the user can not perform operations like downloading, upgrading, installing, and much more without activating the network. This connection of the network must be in an active state before using the Linux services.
The objective of this article is to demonstrate the reasons and the possible solution to the error “activation of network connection failed on Linux”. The outline of this guide is as follows:
- Reason 1: Network Not Configured
- Reason 2: Incorrect Date and Time
- Solution 1: Activate the Network
- Solution 2: Set the Correct Date and Time
- Solution 3: Manage the Network Manager Through CLI
Let’s get into the reasons and their solutions.
Reason 1: Network Not Configured
The first reason for the error “activation of network connection failed on Linux” is the misconfiguration of the network. Due to some reasons, the internet does not activate on the system. That’s why no function such as installation or upgradation can be performed on the Linux system.
Reason 2: Incorrect Date and Time
Here is another reason for the error “activation of network connection failed” is incorrect date and time. Sometimes the date and time of the system are not set accurately. So, the internet connection does not run on the current system.
Before moving to the solutions, ensure that your system is connected to the internet and the service is active.
Solution 1: Activate the Network
Open the “Settings” of the system first. To perform this task, open the “Show Applications” menu Type “Settings” in the “Search” bar, and click on the shown results:
The “Settings” window will be opened. Navigate to the “Network” option in the left pane of the “Settings” window and activate the connection via enable/disable button:
Note: The whole process can also be done by utilizing the “Wired Settings” option via the setting menu available in the top right corner of the Ubuntu Desktop:
Solution 2: Set the Correct Date and Time
If the error occurs due to the incorrect date and time then correct the system date and time. To do so, open the “Setting” tool from the application menu. Scroll down the left pane of “Settings” windows and move on to the “Date & Time”. From this section on the “Automatic Date & Time” that detects the correct time and date automatically:
Solution 3: Manage the Network Manager Through CLI
In the end, if both of the above solutions do not resolve the error, then try the third solution. In this solution, we will use the command line interface. The following instructions are carried out to handle the above error.
Step 1: Restart the Network Manager
In Linux, the network manager controls all the networks. Sometimes it does not activate when the system starts. To restart this, run the below command on the terminal:
$ sudo systemctl restart NetworkManager
The output displays that the command ran successfully, and the “Network icon” is shown in the menu bar of the desktop:
Step 2: Show the Network Interface(Recommended)
If the connection does not come by the above command then first check the connection. Run the following command in the terminal and press enter to check the “Network Interface” :
$ sudo nmcli connection show
In the current output, the connection is “Wired connection 1”.
Step 3: Verify the Network Activation
Verify that the available connection is activated or not. For this purpose, execute the “nmcli” command in the terminal:
$ sudo nmcli connection up “Wired connection 1”
The output verifies that the “Wired connection 1” is successfully activated.
That’s how the network failure can be fixed.
Conclusion
In Linux, the “activation of network connection failed” can be resolved by “Activate the Network” and “Set the correct Date & Time” via GUI. Moreover, the user can also be fixed this error by using the command “$ sudo systemctl restart NetworkManager” command. This guide explains all the possible solutions to resolve the error “activation of network connection failed” on Linux.
[d-parser.text.asis count=»4-9″]
[d-parser.text.asis count=»1-4″]