How to install git on Windows Subsystem for Linux?Windows Subsystem for Linux (WSL): what can't I do with the Ubuntu application for Microsoft Windows?(12.04 vm/server) Dist-upgrade to 3.2.0-63 wants to remove git (1.9.2) and git-core - is that the correct behavior?Error get while installing ardupilot on virtualbox ubuntu 14.04.3Running gnome-keyring on WSL (Windows Subsystem for Linux)Windows Subsystem for Linux gedit errorWindows Subsystem for Linux display Linux distribution?git kdiff3 on Ubuntu subsystemUnable to update ebtables on WSLHow to remove docker from Windows subsystem?
Get a name removed from a manuscript as co-author
What causes standard door hinges to close up to a certain amount automatically?
Is sleeping on the ground in cold weather better than on an air mattress?
Translation Golf XLVIII — We're sorry to see you go
'Cheddar goes "good" with burgers?' Can "go" be seen as a verb of the senses?
Type and strength of a typical chain
Why is matter-antimatter asymmetry surprising, if asymmetry can be generated by a random walk in which particles go into black holes?
What is this dial on my old SLR for?
Little Endian Number to String Conversion
From Plate to State
When two weapon fighting, can a battle master use a manoeuver on the attack action and another on the bonus action attack?
UK PM is taking his proposal to EU but has not proposed to his own parliament - can he legally bypass the UK parliament?
How can I make "acts of patience" exciting?
How does one prove L'Hôpital's rule?
What is the most damage one can do with a cantrip in one turn?
What is the pattern to appear in the box?
Is It Possible to Make a Virus That Acts as an Anti-virus?
Reference request: Long-term behaviour of the heat equation for bounded initial data
Why did Batman design Robin's suit with only the underwear without pants?
Does Windows 10 Fast Startup feature drain battery while laptop is turned off?
Why is coffee provided during big chess events when it contains a banned substance?
D&D Monsters and Copyright
How could "aggressor" pilots fly foreign aircraft without speaking the language?
What are the different ways one can refer to the home in everyday French
How to install git on Windows Subsystem for Linux?
Windows Subsystem for Linux (WSL): what can't I do with the Ubuntu application for Microsoft Windows?(12.04 vm/server) Dist-upgrade to 3.2.0-63 wants to remove git (1.9.2) and git-core - is that the correct behavior?Error get while installing ardupilot on virtualbox ubuntu 14.04.3Running gnome-keyring on WSL (Windows Subsystem for Linux)Windows Subsystem for Linux gedit errorWindows Subsystem for Linux display Linux distribution?git kdiff3 on Ubuntu subsystemUnable to update ebtables on WSLHow to remove docker from Windows subsystem?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using
sudo apt-get install git
but the result is:
~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
Some suggestions?
git windows-subsystem-for-linux
add a comment
|
As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using
sudo apt-get install git
but the result is:
~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
Some suggestions?
git windows-subsystem-for-linux
2
Did you runapt-get updateyet?
– Thomas Ward♦
Apr 18 at 18:58
add a comment
|
As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using
sudo apt-get install git
but the result is:
~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
Some suggestions?
git windows-subsystem-for-linux
As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using
sudo apt-get install git
but the result is:
~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
Some suggestions?
git windows-subsystem-for-linux
git windows-subsystem-for-linux
asked Apr 18 at 18:55
Leos313Leos313
3971 gold badge2 silver badges16 bronze badges
3971 gold badge2 silver badges16 bronze badges
2
Did you runapt-get updateyet?
– Thomas Ward♦
Apr 18 at 18:58
add a comment
|
2
Did you runapt-get updateyet?
– Thomas Ward♦
Apr 18 at 18:58
2
2
Did you run
apt-get update yet?– Thomas Ward♦
Apr 18 at 18:58
Did you run
apt-get update yet?– Thomas Ward♦
Apr 18 at 18:58
add a comment
|
1 Answer
1
active
oldest
votes
You might need to add the package first:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135023%2fhow-to-install-git-on-windows-subsystem-for-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You might need to add the package first:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
add a comment
|
You might need to add the package first:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
add a comment
|
You might need to add the package first:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
You might need to add the package first:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
answered Apr 18 at 18:59
HugoHugo
9358 silver badges21 bronze badges
9358 silver badges21 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135023%2fhow-to-install-git-on-windows-subsystem-for-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Did you run
apt-get updateyet?– Thomas Ward♦
Apr 18 at 18:58