Score:0

Git installed but still gets "command not found"

do flag

I am working on a remote ubuntu server.

When I run git which, nothing happens. And when I run git --version, nothing happens either. Which would suggest that git is not installed on the server.

Yet, when I try to install git with apt install git, the response is

git is already the newest version (1:2.25.1-1ubuntu3.10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I am very confused...

us flag
What is the result of `which git`?
krimo33 avatar
do flag
No result. Nothing shows up.
us flag
Try `sudo apt remove git && sudo apt install git`
krimo33 avatar
do flag
This worked! Thank you
Score:0
us flag

It seems that your git installation was corrupted. Remove and reinstall git with:

sudo apt remove git && sudo apt install git
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.