Не может использовать sudo Кв. - получают обновление в linux 18.04

Это - вывод, который я получаю, когда я пытаюсь работать, sudo Кв. - получают обновление или когда я пытаюсь установить что-либо.

sudo apt-get update 
Err:1 http://dl.google.com/linux/chrome/deb stable InRelease
  Could not resolve ‘dl.google.com’
Err:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
  Could not resolve ‘gb.archive.ubuntu.com’
Err:3 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Could not resolve ‘gb.archive.ubuntu.com’
Err:4 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Could not resolve ‘gb.archive.ubuntu.com’
Err:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Could not resolve ‘security.ubuntu.com’
Reading package lists... Done
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not resolve ‘gb.archive.ubuntu.com’
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Could not resolve ‘gb.archive.ubuntu.com’
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Could not resolve ‘gb.archive.ubuntu.com’
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Could not resolve ‘security.ubuntu.com’
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  Could not resolve ‘dl.google.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.

Я также не могу получить доступ к GitHub, говоря мне, что GitHub не мог быть разрешен.

Какая-либо подсказка, что могло бы вызвать это?

ОБНОВЛЕНИЕ: вывод от traceroute

traceroute dl.google.com
traceroute to dl.google.com (216.58.210.46), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * peer7-et-0-0-1.telehouse.ukcore.bt.net (62.172.103.158)  20.930 ms peer8-et-0-1-4.telehouse.ukcore.bt.net (109.159.252.106)  20.638 ms
 7  109.159.253.235 (109.159.253.235)  22.406 ms 195.99.126.75 (195.99.126.75)  25.586 ms 109.159.253.93 (109.159.253.93)  24.234 ms
 8  * * *
 9  72.14.236.224 (72.14.236.224)  27.654 ms 108.170.234.160 (108.170.234.160)  27.338 ms 74.125.252.128 (74.125.252.128)  28.687 ms
10  * * *
11  * * lhr25s11-in-f14.1e100.net (216.58.210.46)  20.101 ms
1
задан 13 July 2018 в 18:42

1 ответ

Это походит на проблему DNS. Для фиксации его необходимо гарантировать это

/etc/resolv.conf имеет хорошие записи для серверов DNS.

Google имеет общедоступные серверы DNS, которые можно использовать.

Так, например, Вы могли добавить следующие 2 строки к вершине Вашего/etc/resolv.conf файла (они указывают на серверы Google DNS), как детализировано выше:

сервер имен 8.8.4.4 сервера имен 8.8.8.8

Кроме того, если Вы используете прокси, быть уверенными, что Вы создали/изменили файл/etc/apt/apt.conf для определения прокси как указано ниже:

Получите:: http:: Прокси "http://Your_Proxy:Port";

Получите:: https:: Прокси "http://Your_Proxy:Port";

Получите:: ftp:: Прокси "http://Your_Proxy:Port";

0
ответ дан 8 December 2019 в 00:15

Другие вопросы по тегам:

Похожие вопросы: