Link to home
Start Free TrialLog in
Avatar of sunse
sunseFlag for United States of America

asked on

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?
Avatar of David Sankovsky
David Sankovsky
Flag of Israel image

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.
ASKER CERTIFIED SOLUTION
Avatar of Dr. Klahn
Dr. Klahn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunse

ASKER

The command ping archive.ubuntu.con works
Avatar of Dr. Klahn
Dr. Klahn

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.
Avatar of sunse

ASKER

Do you have the http:// of the Debian archive?
Avatar of sunse

ASKER

Sorry,  Ignore previous question
Avatar of sunse

ASKER

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?