Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to check internet connection from CLI?

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
andrei186
Posts: 115
Joined: 2014-10-23 10:54

How to check internet connection from CLI?

#1 Post by andrei186 »

freshly installed Debian-netinst, configured internet connection. Pinged Google - all transmitted packets were received, 0% loss.
Yet I am not sure if I have internet connection for what ever package I am trying to install using apt-get install package_name, I receive
E: Unable to locate package package_name

How can I check internet connection from CLI?

peter_irich
Posts: 1406
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: How to check internet connection from CLI?

#2 Post by peter_irich »

Code: Select all

ping www.google.com
Peter.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: How to check internet connection from CLI?

#3 Post by 4D696B65 »

andrei186 wrote:Pinged Google - all transmitted packets were received, 0% loss.
This tells you that you do have an internet connection,
andrei186 wrote:I am trying to install using apt-get install package_name, I receive
E: Unable to locate package package_name
What package are you trying to install?
Post your /etc/apt/sources.list

andrei186
Posts: 115
Joined: 2014-10-23 10:54

Re: How to check internet connection from CLI?

#4 Post by andrei186 »

4D696B65 wrote:
andrei186 wrote:
Post your /etc/apt/sources.list
Thank you for the right question. I looked up this file and noticed that all the entries there were commented out.
Un-commented and it started working

Post Reply