URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID3
Нить номер: 42586
[ Назад ]

Исходное сообщение
"Раздел полезных советов: Использование http-прокси в APT и при обновлении Ubuntu"

Отправлено auto_tips , 27-Июн-08 15:25 
Для обновления дистрибутива ubuntu до новейшего необходимо выполнить:

   $ sudo update-manager -d

Если сообщения о новом дистрибутиве почему-то нет, но оно должно быть, необходимо настроить "Сервис прокси".
Пример:

   $ http_proxy='http://proxy.test.ru:3128/' sudo update-manager -d

Апдейт менеджер можно заменить на do-release-upgrade

Работа apt-get и некоторых других консольных приложений через прокси осуществляется аналогичным образом:

   export http_proxy=http://username:password@host:port/
   export ftp_proxy=http://username:password@host:port/

Еще один способ конфигурирования работы apt через прокси:
Создаем /etc/apt/apt.conf.d/01proxy:

   Acquire {
      http::Proxy "http://username:password@host:port/";
   }


URL:
Обсуждается: https://www.opennet.ru/tips/info/1667.shtml


Содержание

Сообщения в этом обсуждении
"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено Touch , 27-Июн-08 15:25 
Талант Убунтологов просто налицо! Давайте напишем про то как правильно пользоваться командой ls или каким пальцем правильно нажимать Энтер ))))))))

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено Touch , 27-Июн-08 15:28 
Такие советы просто показатель к какому уровню читателей ты стремишься!

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено Touch , 03-Июл-08 22:52 
Трёте коменты, ну-ну, вышесказаное относилось к Опеннет, а не к автору. Хотите чтобы не было плохих коментов? - НЕ ПИШИТЕ ЕРУНДУ ПОДОБНОГО ПЛАНА!

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено D4rk4 , 27-Июн-08 20:58 
Ппц, сам убунтовод, но такой тупости на опеннете не ожидал.
Давайте в следующий раз выложим куски мана от apt?

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено angra , 28-Июн-08 21:00 
Ну ладно я понимаю, аффтар открыл для себя переменные окружения, написал совет для таких же нюбов. Но почему даже в такой элементарщине надо было сделать ошибки?

>$ http_proxy='http://proxy.test.ru:3128/' sudo update-manager -d

Не будет это работать ибо отсутствует разделитель команд. Иллюстрация:
$ http_proxy='http://proxy.test.ru:3128/' echo $http_proxy

$ http_proxy='http://proxy.test.ru:3128/' ;echo $http_proxy
http://proxy.test.ru:3128/

>export http_proxy=http://username:password@host:port/

Ну а к этому моменту аффтар уже забыл про одиночные кавычки. Самое смешное, что при указании только host:port они не нужны, а вот при наличии пароля со спецсимволами очень даже рекомендуются.


"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено mma , 29-Июн-08 06:33 
>Не будет это работать ибо отсутствует разделитель команд.

Это интересно почему? Если автор и переборщил то только с кавычками - ни к чему они тут.
Всегда так делаю дома когда есть проблемы с каналом то скачиваю через канал который на работе:
http_proxy='ip:port' wget http://server/file

А то что вы показали - это установка переменной окружения для ВСЕХ, а не только для текущей выполняемой команды.


"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено pavel_simple , 29-Июн-08 10:18 

>А то что вы показали - это установка переменной окружения для ВСЕХ,
>а не только для текущей выполняемой команды.

не знаю что Вы имелли в виду под "для ВСЕХ" -- только export -- это не для всех, это для текущего shell'а.

p.s. поправка относительно кавычек верна -- глядиш меньше ошибок будет


"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено ghost , 22-Янв-09 12:00 
Ввожу следующую команду:
sudo export http_proxy='http://a.semenov:qwerty@192.168.88.13:8080/'
и вот такой ответ:
sudo: export: command not found
В чем может быть дело?

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено DEmasik , 21-Май-09 12:02 
спасибо очень помогло и отдельное спасибо за коменты

"Использование http-прокси в APT и при обновлении Ubuntu"
Отправлено Alexey , 12-Янв-10 17:48 
A mne ne pomoglo:(((
http_proxy='http://Name.Surname.domainname:password@PROXY_IP:8080/' sudo update-manager -d
4to ne tak?

Не удалось получить http://dl.google.com/linux/deb/dists/stable/main/binary-i386... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://archive.canonical.com/ubuntu/dists/karmic/partner/bin... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://archive.canonical.com/ubuntu/dists/karmic/partner/sou... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/main... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/rest... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/main... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/rest... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/univ... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/univ... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/mult... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://security.ubuntu.com/ubuntu/dists/karmic-security/mult... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/main/binary... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/restricted/... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/main/source... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/restricted/... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/universe/bi... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/universe/so... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/mai... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/res... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/mai... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/res... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/uni... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/uni... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/mul... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Не удалось получить http://ru.archive.ubuntu.com/ubuntu/dists/karmic-updates/mul... Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Некоторые индексные файлы не скачались, они были проигнорированы или вместо них были использованы старые версии