Could not connect to mirrors.linode.com:80

I could not connect to http://mirrors.linode.com/ubuntu and not able to install anything using apt.


apt-get -o Acquire::ForceIPv4=true update

0% [Connecting to mirrors.linode.com (139.162.94.246)] [Connecting to security.
0% [Connecting to mirrors.linode.com (139.162.94.246)] [Connecting to security.
0% [Connecting to mirrors.linode.com (139.162.94.246)] [Connecting to security.
Err:1 http://mirrors.linode.com/ubuntu bionic InRelease A
Could not connect to mirrors.linode.com:80 (139.162.94.246), connection timedt
Err:2 http://mirrors.linode.com/ubuntu bionic-updates InRelease
Unable to connect to mirrors.linode.com:http:
Err:3 http://mirrors.linode.com/ubuntu bionic-backports InRelease
Unable to connect to mirrors.linode.com:http:
Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not connect to security.ubuntu.com:80 (91.189.91.24), connection timed t
Reading package lists… Done
W: Failed to fetch http://mirrors.linode.com/ubuntu/dists/bionic/InRelease Cout
W: Failed to fetch http://mirrors.linode.com/ubuntu/dists/bionic-updates/InRele:
W: Failed to fetch http://mirrors.linode.com/ubuntu/dists/bionic-backports/InRe:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRet
W: Some index files failed to download. They have been ignored, or old ones use.

2 Replies

Hello,

I've double checked and the mirrors are working normally. Is it possible that your Linode doesn't have any outbound network connectivity? I'd recommend checking with:

curl -I linode.com
curl -I google.com

It may be that certain connections are blocked in your Linode's firewall. You can check your firewall rules in iptables with:

iptables -L -nv --line-numbers

If there's no block in iptables, but it's still not working for you, open up a ticket and myself or another member of the support team will be happy to help.

I did

# This is an autoconfigured IPv6 interface
auto eth0
iface eth0 inet6 dhcp

/etc/network/interfaces

And also moved it to the bottom of the file. Previously I had inet6 entered manually and static. I did reboot and downloads work now.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct