Ok, here's another solution: open the file /etc/resolv.conf and in nameserver write the ip of the router, through which you can enter its panel. For keenetic it is 192.168.1.1. This, by the way, also appears in the guide I found, but I didn't notice that it is necessary to change something in this file too