Как правильно настроить APT-прокси? [дубликат]

На этот вопрос уже есть ответ здесь:

Я пытаюсь установить прокси для APT, чтобы я мог обновить.

Сервер находится за прокси, который находится в домене. Я пробовал следующее в / etc / apt / apt .conf

  1. для FTP, HTTP, https

     Acquire :: HTTP :: Proxy (скрытый) 
     
  2. Также пробовал

     Acquire :: http :: Proxy (скрытый) {{1 }} 
  3. Также пробовал

     Acquire :: http :: Proxy (hidden) 
     

Я всегда получаю следующую ошибку:

root@canonical:/etc/apt# apt-get update

  407  Proxy Authorization Required

Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://za.archive.ubuntu.com/ubuntu xenial Release' does 

Как правильно настроить прокси?

0
задан 24 May 2018 в 15:35

1 ответ

Acquire::http::Proxy "http://user:password@10.1.1.8:8080";
Acquire::https::Proxy "http://user:password@10.1.1.8:8080";
Acquire::ftp::Proxy "http://user:password@10.1.1.8:8080";
0
ответ дан 29 October 2019 в 06:46

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

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