It's possible use IPs instead of URLs for the repositories in sources.list?
(And how)
It's possible use IPs instead of URLs for the repositories in sources.list?
(And how)
You can use an IP instead of an url in your sources.list.
here is an example: To convert deb http://deb.debian.org/debian buster main, you need to get the ip of the url, but in this case it is a redirector! . The right URL to convert is the url of the debian mirror e,g: ftp2.de.debian.org/debian/
nslookup ftp2.de.debian.org Use dig, nslookup ... to get the IP address
sample output:
... Non-authoritative answer: ftp2.de.debian.org canonical name = ftp.halifax.rwth-aachen.de. Name: ftp.halifax.rwth-aachen.de Address: 137.226.34.46 Name: ftp.halifax.rwth-aachen.de Address: 2a00:8a60:e012:a00::21 then edit your /etc/apt/sources.list as follows:
deb http://137.226.34.46/debian buster main The debian security repository:
deb http://20.49.228.237/debian-security/ buster/updates main