Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I checked the answer in above link and ping but I get:
3 packets transmitted, 0 received, 100% packet loss, time 2016ms
man ip;man ip-route
ip route show
ping -c3 188.8.131.52
ls -al /etc/resolv.conf
It was a network issue, I connected it with my mobile wifi and it worked.
Because in my network I was able to ping with the gateway and unable to ping 184.108.40.206, so I changed the network and it worked.
Required, but never shown