After a debian stretch server was setup, pinging external domain always failed. That makes installing any packages / software impossible because it cannot access the server.

After a lengthy searching on Google, finally the problem was nailed down and solved easily. The cause of the problem is the Debian Network Manager. To solve this problem, please execute the following command line commands in a terminal.

apt-get remove --purge network-manager
nano /etc/resolv.conf

Add the following line to the resolv.conf file.


You should change the IP address based on your wireless network accordingly.

After the change, reboot your computer to a fresh start. Then execute the following commands.

apt-get update
apt-get install <your package name>


Tags: , ,