Article 6KE4D Ubuntu Server 20.04 apt-get Network is unreachable but I can ping and resolve names

Ubuntu Server 20.04 apt-get Network is unreachable but I can ping and resolve names

by
riahc3
from LinuxQuestions.org on (#6KE4D)
Hello

Just setup a Ubuntu Server 20.04 and I can ping IPs and resolve names but when I try a apt-get, I get a network is unreachable

Route is correct.

I can ping the gateway.

DNS resolves.

Why? I remember this is something that happed with Ubuntu Server but it makes no sense as everything is setup right
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments