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.
Disabling ipv6
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.
ipv6.disable=1
To the value of GRUB_CMDLINE_LINUX_DEFAULT.
In a default Ubuntu installation, that line reads
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
so we changed it to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
Then, we ran the following command.
sudo update-grub
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.]
Conclusion
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.
So did you add ipv6.disable, or ipv6.disable=1?
Hello Lynn,
It should be ipv6.disable=1.
Command sudo update-grub did not work at my end.
Hi,
Please contact our support team via live chat(click on the icon at right-bottom)
Try
GRUB_CMDLINE_LINUX=”ipv6.disable=1 …”
Instead of ipv6.disable=1
When you encounter /etc/default/grub: ipv6.disable=1: not found