darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.57k stars 448 forks source link

Internet is not working #976

Open AKHACKER-program4hack opened 3 years ago

AKHACKER-program4hack commented 3 years ago

Problem I am using Darling and when i use pip3 to install some packages it gives me error.

Command pip3 install flask

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffff4963a30>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/flask/

I have also tried using curl to check internet but again not working.

Command curl ipinfo.io

Output curl: (28) Resolving timed out after 300106 milliseconds

System Information I am using parrot os with kernel version 5.5.0

Kernel: 5.5.0-1parrot1-amd64 x86_64

bugaevc commented 3 years ago

Is domain name resolution the part that is not working, or is the whole internet connectivity broken?

(Try connecting to an explicit IP address.)

AKHACKER-program4hack commented 3 years ago

I Tried to use curl with ip address and its working fine its giving result with my local web server and online server if i use ip address.you are right it's DNS problem in it.

Tell me how to fix this.

I will be very Thankful to you.

i have this in my /etc/resolv.conf file

nameserver 8.8.8.8
nameserver 8.8.4.4
bugaevc commented 3 years ago

I can't say I understand how Darling's resolver is implemented (darling-resolver calls into libresolv... or something), but from where I stand, it should be calling native glibc's APIs; then everything would just work (or not work) the same as it does on the host.

AKHACKER-program4hack commented 3 years ago

I can't say I understand how Darling's resolver is implemented (darling-resolver calls into libresolv... or something), but from where I stand, it should be calling native glibc's APIs; then everything would just work (or not work) the same as it does on the host.

please give me solution. plz..

AKHACKER-program4hack commented 3 years ago

darling-resolver

i am not understanding what i will do

jhay06 commented 3 years ago

i have the same issue , this was caused by default curl installed with darling . curl is not allowing us to connect to a domain name only ip addresses are accepted. so i remove the default curl and copy the linux curl to /usr/bin of darling environment