Incorrect DNS/Don't installing packages

1. Check file /etc/resolv.conf (must be empty)

Checking the file via sftp or through the console using the editor
nano /etc/resolv.conf

2. Write in the file:


nameserver 8.8.8.8
nameserver 8.8.4.4


3. Save it.

In the nano editor this is done with the key combination Ctrl + O, then press Enter. Exit the editor with Ctrl + X

4. The problem should be solved.