LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2024, 05:58 AM   #1
riahc3
Member
 
Registered: Dec 2002
Posts: 223

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


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
 
Old 03-20-2024, 03:30 PM   #2
adolphcross
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Rep: Reputation: 0
Could be a lot of things - can you reach the repo URLs by curl? if not maybe port 80 (or 443 if you changed that) is blocked by a firewall. can you reach any other website on port 80 or 443 with curl?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Network is Unreachable/Unknown host/Destination Host Unreachable [Debian] denv Linux - Networking 4 03-27-2014 02:58 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
"network is unreachable" but I can ping local machines MrGaiters Linux - Newbie 3 03-24-2006 02:38 AM
Ping can't resolve names; Firefox can tiktok Linux - Networking 7 06-21-2005 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration