“Не может инициировать соединение с в archive.ubuntu.com:80”, когда попытка работать “sudo склонный - получает обновление” позади прокси

Я очень плохо знаком с Ubuntu. Я нахожусь позади безопасного прокси также. когда я пытаюсь работать sudo apt-get update Я получаю следующую ошибку.

kishensurajp@kishensurajp-hp-15-notebook-pc:~$ sudo apt-get update
Err http://security.ubuntu.com vivid-security InRelease
Err http://in.archive.ubuntu.com vivid InRelease
Err http://security.ubuntu.com vivid-security Release.gpg
Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err http://in.archive.ubuntu.com vivid-updates InRelease         
Err http://in.archive.ubuntu.com vivid-backports InRelease
Err http://in.archive.ubuntu.com vivid Release.gpg                  
Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err http://in.archive.ubuntu.com vivid-updates Release.gpg
Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80] 
Err http://in.archive.ubuntu.com vivid-backports Release.gpg
Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80] 
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease   
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/vivid-security/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/vivid-security/Release.gpg  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid/Release.gpg  Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid-updates/Release.gpg  Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/vivid-backports/Release.gpg  Cannot initiate the connection to in.archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Кто-либо знает, как начать фиксировать его?

4
задан 25 May 2018 в 11:43

2 ответа

Можно добавить настройки прокси в файл/etc/apt/apt.conf ;

echo "Acquire::http::proxy “http://<proxy_server>:<port>/”;" >> /etc/apt/apt.conf
echo "Acquire::https::proxy “https://<proxy_server>:<port>/”;" >> /etc/apt/apt.conf

После, можно попробовать;

sudo apt-get update
0
ответ дан 1 December 2019 в 11:46

Я также сталкиваюсь с той же проблемой. Для преодоления его необходимо изменить сервер на основной сервер.

Просто перейдите к программному обеспечению и Обновлениям и измените сервер на основной сервер рядом с Загрузкой с.

Software & Updates dialog - Download from: main server

0
ответ дан 1 December 2019 в 11:46

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

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