Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial hg clone error - "abort: error: Name or service not known"

I have installed the latest hg package available for Fedora Linux. However, hg clone reports an error.

hg clone http://localmachine001:8000/ repository

reports:

"abort: error: Name or service not known"

localmachine001 is a computer within the local network. I can ping it from my Linux box without any problems. I can also use the same http address and browse the existing code. However, hg clone does not work.

If I execute the same command from my Macintosh machine, I can easily clone the repository.

Some Internet resources recommend editing .hgrc file, and adding proxy to it:

[http_proxy]
host=proxy:8080

I have tried that without any success. Also, I assume that proxy is not needed in this case, since the hg server machine is in my local network.

Can anyone recommend me what should I do, or how could I track the problem?

Thank you in advance.

like image 727
Bojan Milankovic Avatar asked Dec 17 '22 00:12

Bojan Milankovic


1 Answers

Running hg as root solved the problem for me. But still don't know why.

like image 128
redochka Avatar answered Apr 29 '23 03:04

redochka