apt-get proxy

Kubuntu, Xubuntu и другие

Модератор: Модераторы разделов

Logot
Сообщения: 58
ОС: Linux Mandrake 9.1

apt-get proxy

Сообщение Logot »

Здравствуйте.

Поставил Kubuntu 9.04 на работе на виртуальную машину (VMWare). В сеть ходим через прокси. Параметры прокси настроил, в интернет выхожу, но дополнительного софта поставить не могу, apt-get нет работает! Может нужно настраивать прокси для apt-get

на

Код: Выделить всё

# apt-get update

вижу

Код: Выделить всё

Игн cdrom://Kubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Translation-ru
Ош  http://archive.ubuntu.com jaunty Release.gpg
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty/main Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty/restricted Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty/universe Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty/multiverse Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-updates Release.gpg
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-updates/main Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-updates/restricted Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-updates/universe Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-updates/multiverse Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-security Release.gpg
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-security/main Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-security/restricted Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-security/universe Translation-ru
  Не удалось найти IP адрес для http
Ош  http://archive.ubuntu.com jaunty-security/multiverse Translation-ru
  Не удалось найти IP адрес для http
W: Некоторые индексные файлы не загрузились, они были проигнорированы или вместо них были использованы старые версии
W: Вы можете запустить 'apt-get update' для исправления этих ошибок


Код: Выделить всё

/etc/apt/source.list


Код: Выделить всё

deb cdrom:[Kubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty universe
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ua.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.

deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ jaunty-security universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security universe
deb http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4471
Статус: GNU generation
ОС: Debian GNU/Linux

Re: apt-get proxy

Сообщение Rootlexx »

Спасибо сказали:
Logot
Сообщения: 58
ОС: Linux Mandrake 9.1

Re: apt-get proxy

Сообщение Logot »

Rootlexx писал(а):
21.05.2009 20:21
Использование менеджеров пакетов Debian — вопрос №19.


Прочитайте внимательно вопрос. Проблема не в использованиее менджеров пакета, а в том, что apt-get не видит инет, хотя Konquerror выходит в. Сначала, правда, не удалось выйти, но после настройки proxy я получил доступ в инет. Но почему apt-get не видит, я не знаю, может вы знаете?
Спасибо сказали:
Logot
Сообщения: 58
ОС: Linux Mandrake 9.1

Re: apt-get proxy

Сообщение Logot »

Rootlexx писал(а):
21.05.2009 20:21
Использование менеджеров пакетов Debian — вопрос №19.


Прошу прощения. Виноват! Настроил, работает. Спасибо!
Спасибо сказали:
Anti
Сообщения: 4
ОС: Ubuntu 9.10

Re: apt-get proxy

Сообщение Anti »

Знакомая проблема. У меня такая же. Мне подсказали как её решить, но она у меня всё равно не решилась. В любом случае попробуй прописать в /etc/apt/apt.conf Acquire::http::proxy "http://username:password@proxyserver:port/";. Естественно, адрес прокси, пароль, логин должны быть соответствующими. Если без авторизации, то Acquire::http::proxy "http://@proxyserver:port/"; кажется...
Спасибо сказали: