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?
sunseApplication DesignerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sunseApplication DesignerAuthor Commented:
The command ping archive.ubuntu.con works
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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
sunseApplication DesignerAuthor Commented:
Do you have the http:// of the Debian archive?
0
sunseApplication DesignerAuthor Commented:
Sorry,  Ignore previous question
0
sunseApplication DesignerAuthor 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.