apt-get connect (101 network is unreachable) : Quick fix!
Looking forward to resolve apt-get connect (101 network is unreachable)? We can help you in fixing it.
The error usually occurs while accessing the network for updating or installing.
At Bobcares, we often get requests from our customers to fix the error network is unreachable as part of our Server Management Services.
Today, let’s get into the details on how our Support Engineers fix this problem.
What causes apt-get connect (101 network is unreachable)?
The error mainly occurs due to problems in network connections.
This error indicates that either the IPv6 connection is unstable, or the servers are dead, or the file is not found.
For instance, the error appears as follows.
Let’s see how our Support Engineers help the customer to fix this.
Easy way to fix the error
At Bobcares, where we have more than a decade of expertise in managing servers, we see many customers face error apt-get connect (101 network is unreachable).
Now, let’s see the major reasons and how our Support Engineers fix this error.
Recently one of the customers was getting Update information outdated alert then he applied
sudo apt-get update command. Unfortunately, the user got stuck with this error.
On further analysis, we could trace from the logs that the user’s machine was using IPv6 to connect to the internet.
Hence, the reason behind the error was user’s internet service provider does not support IPv6. So we tried disabling IPv6.
To do this system-wide, we edited the file /etc/default/grub by running the below command
sudo nano /etc/default/grub
And added the following.
To the value of GRUB_CMDLINE_LINUX_DEFAULT.
In a default Ubuntu installation, that line reads
so we changed it to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable"
Then, we ran the following command.
Finally, we rebooted the server.
Finally, the connection problem was then resolved.
Enabling secure port
In addition, in certain cases this error results due to closed port 443.
We then open the secure port and the error get disappeared.
[Having trouble with this error? We’ll fix it for you.]
In short, apt-get connect (101 network is unreachable) occurs due to problems in network connection. Today, we saw how our Support Engineers helped the customer in fixing the error.