sudo apt-get update command does not work

I am trying to install git and a bunch of other dependencies in Ubuntu17.10.  For that I use the command sudo apt-get install git and the same command for other software.  The response is "E: Package git has ot installation candidate. Is there any thing I have to add to the sources.fle?
sunseAsked:
Who is Participating?
 
Dr. KlahnPrincipal Software EngineerCommented:
Check the Debian packages repository (Ubuntu is Debian underneath).

https://www.debian.org/distrib/packages

Quite often the name of a package is not the same as the name of the software.
0
 
David SankovskySenior SysAdminCommented:
Hi Sunse,

For starters, are you certain your machine can access the internet?
Please verify that first (Ping a certain address using a URL not an IP address, we want to make sure your DNS resolvers are working and not only the network)
If you certain that your machine has proper DNS resolution and internet access then please Copy and past the result of the following commands:
cat /etc/apt/sources.list

Open in new window

and
ls -l /etc/apt/sources.list.d/

Open in new window

and last but not least:
 sudo apt-get install git 

Open in new window



Also, it's usually a good Idea to run
sudo apt-get update

Open in new window

if you haven't done that in a while as it can help.
0
 
sunseAuthor Commented:
The command ping archive.ubuntu.con works
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Dr. KlahnPrincipal Software EngineerCommented:
Quite often the name of a package is not the same as the name of the software.

Be sure that there is such a package with that exact name.  The easiest way to do that is to check the proposed package name at the Debian archive.  It must be exactly correct.

Being able to ping the Ubuntu archive does not bear on the problem; all that means is that you can get to it.
0
 
sunseAuthor Commented:
Do you have the http:// of the Debian archive?
0
 
sunseAuthor Commented:
Sorry,  Ignore previous question
0
 
sunseAuthor Commented:
Hello,

The problem has been solved.  It seems that at work there is a proxy and I do not know how to configure it.  The problem is solved by working from home.  Does any one know how to configure the proxy in Linux Ubuntu 17.04 installed in VM workstation player 14 - 64 bit?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.