Код: Выделить всё
sudo apt-get update
Код: Выделить всё
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection
refused) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111:
Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.81). -
connect (111: Connection refused) Could not connect to archive.ubuntu.com:80
(91.189.91.83). - connect (111: Connection refused) Could not connect to
archive.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not
connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused)
Err:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Unable to connect to archive.ubuntu.com:http:
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Unable to connect to archive.ubuntu.com:http:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not
connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused)
Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection
refused) Could not connect to archive.ubuntu.com:80 (91.189.91.81). - connect (111:
Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.83). -
connect (111: Connection refused) Could not connect to archive.ubuntu.com:80
(91.189.91.82). - connect (111: Connection refused) Could not connect to
archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease
Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease
Unable to connect to archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used
instead.
Когда я делаю cat /etc/resolv.conf, ниже отображается содержимое этот файл :-
Код: Выделить всё
# This file was automatically generated by WSL. To stop automatic generation of this
file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 10.21.238.100
nameserver 10.21.238.155
Код: Выделить всё
# See sources.list(5) manpage for more information
# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.
deb http://archive.ubuntu.com/ubuntu bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu bionic main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted
Подробнее здесь: https://stackoverflow.com/questions/790 ... es-used-in