After a debian stretch server was setup, pinging external domain always failed. That makes installing any packages / software impossible because it cannot access the ftp.debian.org 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.

nameserver 192.168.0.1

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>

Share