Configurar apt-get com proxy

1. Configurar apt-get com proxy

Jônatas Taveira
jtaveira

(usa Ubuntu)

Enviado em 17/03/2009 - 10:32h

Olá estou alguns dias tentando configurar o proxy no Ubuntu 8 mas não consigo, olhe a mensagem.

root@jonatas-desktop:/home/jonatas# apt-get update
Ign http://ppa.launchpad.net intrepid Release.gpg
Ign http://packages.medibuntu.org intrepid Release.gpg
Ign http://packages.medibuntu.org intrepid/free Translation-pt_BR
Ign http://ppa.launchpad.net intrepid/main Translation-pt_BR
Ign http://ppa.launchpad.net intrepid Release.gpg
Ign http://packages.medibuntu.org intrepid/non-free Translation-pt_BR
Ign http://ppa.launchpad.net intrepid/main Translation-pt_BR
Ign http://packages.medibuntu.org intrepid Release
Ign http://ppa.launchpad.net intrepid Release.gpg
Ign http://packages.medibuntu.org intrepid/free Packages
Ign http://ppa.launchpad.net intrepid/main Translation-pt_BR
Ign http://ppa.launchpad.net intrepid Release
Ign http://packages.medibuntu.org intrepid/non-free Packages
Err http://packages.medibuntu.org intrepid/free Packages
403 Forbidden
Ign http://ppa.launchpad.net intrepid Release
Ign http://ppa.launchpad.net intrepid Release
Err http://packages.medibuntu.org intrepid/non-free Packages
403 Forbidden
Ign http://ppa.launchpad.net intrepid/main Packages
Ign http://ppa.launchpad.net intrepid/main Packages
Ign http://ppa.launchpad.net intrepid/main Packages
Err http://ppa.launchpad.net intrepid/main Packages
407 Proxy Authentication Required
Err http://ppa.launchpad.net intrepid/main Packages
407 Proxy Authentication Required
Err http://ppa.launchpad.net intrepid/main Packages
407 Proxy Authentication Required
Ign http://dl.google.com stable Release.gpg
Ign http://dl.google.com stable/non-free Translation-pt_BR
Ign http://dl.google.com stable Release
Ign http://dl.google.com stable/non-free Packages
Ign http://security.ubuntu.com intrepid-security Release.gpg
Err http://dl.google.com stable/non-free Packages
407 Proxy Authentication Required
Ign http://security.ubuntu.com intrepid-security/main Translation-pt_BR
Ign http://archive.canonical.com intrepid Release.gpg
Ign http://security.ubuntu.com intrepid-security/restricted Translation-pt_BR
Ign http://archive.canonical.com intrepid/partner Translation-pt_BR
Ign http://security.ubuntu.com intrepid-security/universe Translation-pt_BR
Ign http://archive.canonical.com intrepid Release
Ign http://archive.canonical.com intrepid/partner Packages
Ign http://security.ubuntu.com intrepid-security/multiverse Translation-pt_BR
Ign http://security.ubuntu.com /intrepid Release.gpg
Ign http://archive.canonical.com intrepid/partner Sources
Ign http://security.ubuntu.com /intrepid/main Translation-pt_BR
Err http://archive.canonical.com intrepid/partner Packages
407 Proxy Authentication Required
Ign http://security.ubuntu.com intrepid-security Release
Err http://archive.canonical.com intrepid/partner Sources
407 Proxy Authentication Required
Ign http://security.ubuntu.com /intrepid Release
Ign http://security.ubuntu.com intrepid-security/main Packages
Ign http://security.ubuntu.com intrepid-security/restricted Packages
Ign http://security.ubuntu.com intrepid-security/main Sources
Ign http://security.ubuntu.com intrepid-security/restricted Sources
Ign http://security.ubuntu.com intrepid-security/universe Packages
Ign http://security.ubuntu.com intrepid-security/universe Sources
Ign http://security.ubuntu.com intrepid-security/multiverse Packages
Ign http://security.ubuntu.com intrepid-security/multiverse Sources
Ign http://security.ubuntu.com /intrepid/main Packages
Err http://security.ubuntu.com intrepid-security/main Packages
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/restricted Packages
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/main Sources
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/restricted Sources
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/universe Packages
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/universe Sources
407 Proxy Authentication Required
Ign http://wine.budgetdedicated.com intrepid Release.gpg
Err http://security.ubuntu.com intrepid-security/multiverse Packages
407 Proxy Authentication Required
Err http://security.ubuntu.com intrepid-security/multiverse Sources
407 Proxy Authentication Required
Err http://security.ubuntu.com /intrepid/main Packages
407 Proxy Authentication Required
Ign http://wine.budgetdedicated.com intrepid/main Translation-pt_BR
Ign http://wine.budgetdedicated.com intrepid Release
Ign http://wine.budgetdedicated.com intrepid/main Packages
Err http://wine.budgetdedicated.com intrepid/main Packages
407 Proxy Authentication Required
Ign http://br.archive.ubuntu.com intrepid Release.gpg
Ign http://br.archive.ubuntu.com intrepid/main Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-updates Release.gpg
Ign http://br.archive.ubuntu.com intrepid-updates/main Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-updates/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-updates/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-updates/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-backports Release.gpg
Ign http://br.archive.ubuntu.com intrepid-backports/main Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-backports/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-backports/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid-backports/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com intrepid Release
Ign http://br.archive.ubuntu.com intrepid-updates Release
Ign http://br.archive.ubuntu.com intrepid-backports Release
Ign http://br.archive.ubuntu.com intrepid/main Packages
Ign http://br.archive.ubuntu.com intrepid/restricted Packages
Ign http://br.archive.ubuntu.com intrepid/main Sources
Ign http://br.archive.ubuntu.com intrepid/restricted Sources
Ign http://br.archive.ubuntu.com intrepid/universe Packages
Ign http://br.archive.ubuntu.com intrepid/universe Sources
Ign http://br.archive.ubuntu.com intrepid/multiverse Packages
Ign http://br.archive.ubuntu.com intrepid/multiverse Sources
Ign http://br.archive.ubuntu.com intrepid-updates/main Packages
Ign http://br.archive.ubuntu.com intrepid-updates/restricted Packages
Ign http://br.archive.ubuntu.com intrepid-updates/main Sources
Ign http://br.archive.ubuntu.com intrepid-updates/restricted Sources
Ign http://br.archive.ubuntu.com intrepid-updates/universe Packages
Ign http://br.archive.ubuntu.com intrepid-updates/universe Sources
Ign http://br.archive.ubuntu.com intrepid-updates/multiverse Packages
Ign http://br.archive.ubuntu.com intrepid-updates/multiverse Sources
Ign http://br.archive.ubuntu.com intrepid-backports/main Packages
Ign http://br.archive.ubuntu.com intrepid-backports/restricted Packages
Ign http://br.archive.ubuntu.com intrepid-backports/universe Packages
Ign http://br.archive.ubuntu.com intrepid-backports/multiverse Packages
Ign http://br.archive.ubuntu.com intrepid-backports/main Sources
Ign http://br.archive.ubuntu.com intrepid-backports/restricted Sources
Ign http://br.archive.ubuntu.com intrepid-backports/universe Sources
Ign http://br.archive.ubuntu.com intrepid-backports/multiverse Sources
Err http://br.archive.ubuntu.com intrepid/main Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/restricted Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/main Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/restricted Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/universe Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/universe Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/multiverse Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid/multiverse Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/main Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/restricted Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/main Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/restricted Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/universe Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/universe Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/multiverse Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-updates/multiverse Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/main Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/restricted Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/universe Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/multiverse Packages
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/main Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/restricted Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/universe Sources
407 Proxy Authentication Required
Err http://br.archive.ubuntu.com intrepid-backports/multiverse Sources
407 Proxy Authentication Required
W: Falhou ao buscar http://packages.medibuntu.org/dists/intrepid/free/binary-i386/Packages.gz 403 Forbidden

W: Falhou ao buscar http://packages.medibuntu.org/dists/intrepid/non-free/binary-i386/Packages.gz 403 Forbidden

W: Falhou ao buscar http://ppa.launchpad.net/ubuntu-clamav/ubuntu/dists/intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://ppa.launchpad.net/openoffice-pkgs/ubuntu/dists/intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://ppa.launchpad.net/tualatrix/ubuntu/dists/intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://dl.google.com/linux/deb/dists/stable/non-free/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/intrepid/partner/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/intrepid/partner/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/main/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/universe/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/intrepid-security/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/pool/main/f/ffmpeg-debian/libpostproc51_0.svn20080206-12ubuntu3.1_i386.deb/dists//intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://wine.budgetdedicated.com/apt/dists/intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/main/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/universe/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/main/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/universe/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-updates/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/main/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/universe/source/Sources.gz 407 Proxy Authentication Required

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/intrepid-backports/multiverse/source/Sources.gz 407 Proxy Authentication Required

E: Alguns arquivos de índice falharam para baixar, eles foram ignorados ou os antigos foram usados no lugar.
root@jonatas-desktop:/home/jonatas#



Alguém sabe o que devo fazer?


  


2. Re: Configurar apt-get com proxy

Richard Andrade
richardandrade

(usa Debian)

Enviado em 17/03/2009 - 10:50h

vamo la amigao:

edite o arquivo /etc/apt/apt.conf adicionando as seguintes linhas:

Acquire { HTTP::proxy "http://usuario:senha@ip_servidor:porta_proxy";
FTP::proxy "http://usuario:senha@ip_servidor:porta_proxy";
}

saia salvando



edite o arquivo /etc/environment e adicione as seguintes linhas:

caso o servidor necessite de autenticacao faca:

http_proxy="http://usuario:senha@ip_servidor:porta_proxy"
ftp_proxy="http://usuario:senha@ip_servidor:porta_proxy"

Acquire { HTTP::proxy usuario:senha@ip_servidor:porta_proxy";
FTP::proxy usuario:senha@ip_servidor:porta_proxy";
};
alias wget="wget --proxy-user=usuario --proxy-passwd=senha"

se o servidor nao precisar de autenticacao faca:

http_proxy="http://ip_servidor:porta"
ftp_proxy="http://ip_servidor:porta"

Acquire { HTTP::proxy ip_servidor:porta;
FTP::proxy ip_servidor:porta;
};

agora edite o arquivo /etc/profile adicionando as seguintes linhas:

export http_proxy ftp_proxy

pronto.

valeu e abraco


3. Re: Configurar apt-get com proxy

Jônatas Taveira
jtaveira

(usa Ubuntu)

Enviado em 17/03/2009 - 11:26h

Valeu pela dica,

Mas já tinha executado esses passos...

Um amigo resolveu o meu problema. Faltava configurar o Proxy, inclusive a Autenticação (usuário e senha) no Gerenciador de Pacotes Synaptic (em Sistema -> Administração), em Configurar -> Referênicas -> Rede (aba).

Em seguida foi adicionado no arquivo /etc/bash.bashrc (com o comando: #vim /etc/meu_usuario:minha_senha@ip_do_proxy:porta) as seguintes linhas de comando:

http_proxy="meu_usuario:minha_senha@ip_do_proxy:porta"
ftp_proxy="meu_usuario:minha_senha@ip_do_proxy:porta"
export http_proxy ftp_proxy

Obs1: Para editar o arquivo bash.bashrc basta posicionar o cursor na ultima linha teclar a letra 'i' (sem as aspas) inserir as linhas de código ao terminar teclar ESC e em seguinda ':x' (dois pontos x, sem as aspas).

Obs2: Descrevi os passo que foram feitos porque se alguém tiver o mesmo problema poderá resolver seguindo os passos acima descrito, vejo que muitas pessoas nos forúns resolvo o problema e não dizem como

Mais uma vez obrigado.
Valeu!




4. Configurar apt-get com proxy - RESOLVIDO

Jônatas Taveira
jtaveira

(usa Ubuntu)

Enviado em 17/03/2009 - 11:26h

Valeu pela dica,

Mas já tinha executado esses passos...

Um amigo resolveu o meu problema. Faltava configurar o Proxy, inclusive a Autenticação (usuário e senha) no Gerenciador de Pacotes Synaptic (em Sistema -> Administração), em Configurar -> Referênicas -> Rede (aba).

Em seguida foi adicionado no arquivo /etc/bash.bashrc (com o comando: #vim /etc/meu_usuario:minha_senha@ip_do_proxy:porta) as seguintes linhas de comando:

http_proxy="meu_usuario:minha_senha@ip_do_proxy:porta"
ftp_proxy="meu_usuario:minha_senha@ip_do_proxy:porta"
export http_proxy ftp_proxy

Obs1: Para editar o arquivo bash.bashrc basta posicionar o cursor na ultima linha teclar a letra 'i' (sem as aspas) inserir as linhas de código ao terminar teclar ESC e em seguinda ':x' (dois pontos x, sem as aspas).

Obs2: Descrevi os passo que foram feitos porque se alguém tiver o mesmo problema poderá resolver seguindo os passos acima descrito, vejo que muitas pessoas nos forúns resolvo o problema e não dizem como

Mais uma vez obrigado.
Valeu!




5. erro

Yuri Abraão P. M. de Almeida
yuriabraao

(usa Debian)

Enviado em 05/11/2009 - 10:26h

bom dia. Estou há semanas tentando utilizar o apt-get aqui na empresa onde trabalho, mais fiz todos esses passos q você disse ae, mais uns outros q peguei em outros foruns e ate agora nao consegui utiliza lo.
Aqui onde eu trabalho, temos proxy autenticado, configurei o apt.config e o etc/envoriment todos pra usarem a autenticaçao do proxy, mais continua dando erro.
Aqui temos dominio, e qdo vamos autenticar na navegação, temos que colocar dominio\usuario + a senha .. tenho q colocar essa mesma configuração dentro dos arquivos conf. para poder o apt entender que existe um dominio e o respectivo usuario ?
Um parceiro da faculdade me indicou colocar no lugar da porta 8080(porta q esta configurada meu proxy) utilizar a porta 3128 que daria certo, mais ate agora naaao deu nao.

Se puderem me ajudar a solucionar esse problema ficaria grato. Obrigado desde já.


6. Re: Configurar apt-get com proxy

Jefferson Teixeira dos Santos
marvinn

(usa Debian)

Enviado em 19/04/2010 - 13:51h

Estava com o mesmo problema, porém conseguir resolver da seguinte forma:

Edite as seguintes linhas no arquivo:

#vim /etc/profile

http_proxy="http://seu_usuario_rede:sua_senha@ip_ou_nome_proxy:porta(mais comun 3128)"
ftp_proxy="http://seu_usuario_rede:sua_senha@ip_ou_nome_proxy:porta(mais comun 3128)"
export http_proxy ftp_proxy

Digite o comando:

#vim /etc/apt/apt.conf.d/02proxy

Depois adicione as seguintes linhas:

Acquire {
HTTP::PROXY=usuario:senha@ip_ou_nome_proxy:porta(mais comun 3128);
FTP::PROXY=usuario:senha@ip_ou_nome_proxy:porta(mais comun 3128);
}

Digite o seguinte comando:

#vim /root/.bashrc

E adicione a seguinte linha:

alias wget='wget --proxy-user=usuario_de_rede --proxy-passwd=sua_senha'


Após finalizar, faça um logoff e acesse novamente e digite:


#apt-get update

eeee.....


Obtendo:1 http://security.ubuntu.com hardy-security Release.gpg [189B]
Ign http://security.ubuntu.com hardy-security/main Translation-pt_BR
Ign http://security.ubuntu.com hardy-security/restricted Translation-pt_BR
Ign http://security.ubuntu.com hardy-security/universe Translation-pt_BR
Ign http://security.ubuntu.com hardy-security/multiverse Translation-pt_BR
Obtendo:2 http://security.ubuntu.com hardy-security Release [58,5kB]
Obtendo:3 http://security.ubuntu.com hardy-security/main Packages [211kB]
Obtendo:4 http://security.ubuntu.com hardy-security/restricted Packages [10,6kB]
Obtendo:5 http://security.ubuntu.com hardy-security/main Sources [36,0kB]
Obtendo:6 http://security.ubuntu.com hardy-security/restricted Sources [943B]
Obtendo:7 http://br.archive.ubuntu.com hardy Release.gpg [189B]
Obtendo:8 http://security.ubuntu.com hardy-security/universe Packages [110kB]
Obtendo:9 http://br.archive.ubuntu.com hardy/main Translation-pt_BR [77,6kB]
Obtendo:10 http://br.archive.ubuntu.com hardy/restricted Translation-pt_BR [919B]
Obtendo:11 http://br.archive.ubuntu.com hardy/universe Translation-pt_BR [205kB]
Obtendo:12 http://br.archive.ubuntu.com hardy/multiverse Translation-pt_BR [542B]
Obtendo:13 http://br.archive.ubuntu.com hardy-updates Release.gpg [189B]
Obtendo:14 http://security.ubuntu.com hardy-security/universe Sources [17,5kB]
Ign http://br.archive.ubuntu.com hardy-updates/main Translation-pt_BR
Ign http://br.archive.ubuntu.com hardy-updates/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com hardy-updates/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com hardy-updates/multiverse Translation-pt_BR
Obtendo:15 http://br.archive.ubuntu.com hardy Release [65,9kB]
Obtendo:16 http://security.ubuntu.com hardy-security/multiverse Packages [12,3kB]
Obtendo:17 http://br.archive.ubuntu.com hardy-updates Release [58,5kB]
Obtendo:18 http://security.ubuntu.com hardy-security/multiverse Sources [1122B]
Obtendo:19 http://br.archive.ubuntu.com hardy/main Packages [1178kB]
Obtendo:20 http://br.archive.ubuntu.com hardy/restricted Packages [6986B]
Obtendo:21 http://br.archive.ubuntu.com hardy/main Sources [338kB]
Obtendo:22 http://br.archive.ubuntu.com hardy/restricted Sources [1488B]
Obtendo:23 http://br.archive.ubuntu.com hardy/universe Packages [4293kB]
Obtendo:24 http://br.archive.ubuntu.com hardy/universe Sources [1323kB]
Obtendo:25 http://br.archive.ubuntu.com hardy/multiverse Packages [179kB]
Obtendo:26 http://br.archive.ubuntu.com hardy/multiverse Sources [60,9kB]
Obtendo:27 http://br.archive.ubuntu.com hardy-updates/main Packages [495kB]
Obtendo:28 http://br.archive.ubuntu.com hardy-updates/restricted Packages [10,6kB]
Obtendo:29 http://br.archive.ubuntu.com hardy-updates/main Sources [123kB]
Obtendo:30 http://br.archive.ubuntu.com hardy-updates/restricted Sources [943B]
Obtendo:31 http://br.archive.ubuntu.com hardy-updates/universe Packages [235kB]
Obtendo:32 http://br.archive.ubuntu.com hardy-updates/universe Sources [48,2kB]
Obtendo:33 http://br.archive.ubuntu.com hardy-updates/multiverse Packages [29,3kB]
Obtendo:34 http://br.archive.ubuntu.com hardy-updates/multiverse Sources [5229B]
Baixados 9195kB em 51s (178kB/s)
Lendo lista de pacotes... Pronto




7. Re: Configurar apt-get com proxy

andre uebe
andreuebe

(usa Linux Mint)

Enviado em 17/05/2012 - 21:52h

richardandrade escreveu:

vamo la amigao:

edite o arquivo /etc/apt/apt.conf adicionando as seguintes linhas:

Acquire { HTTP::proxy "http://usuario:senha@ip_servidor:porta_proxy";
FTP::proxy "http://usuario:senha@ip_servidor:porta_proxy";
}

saia salvando



edite o arquivo /etc/environment e adicione as seguintes linhas:

caso o servidor necessite de autenticacao faca:

http_proxy="http://usuario:senha@ip_servidor:porta_proxy"
ftp_proxy="http://usuario:senha@ip_servidor:porta_proxy"

Acquire { HTTP::proxy usuario:senha@ip_servidor:porta_proxy";
FTP::proxy usuario:senha@ip_servidor:porta_proxy";
};
alias wget="wget --proxy-user=usuario --proxy-passwd=senha"

se o servidor nao precisar de autenticacao faca:

http_proxy="http://ip_servidor:porta"
ftp_proxy="http://ip_servidor:porta"

Acquire { HTTP::proxy ip_servidor:porta;
FTP::proxy ip_servidor:porta;
};

agora edite o arquivo /etc/profile adicionando as seguintes linhas:

export http_proxy ftp_proxy

pronto.

valeu e abraco


Salvou a pátria!!!

Tua solução, mais:

Access Synaptic Package Manager and enter this in the settings

Settings -> Preferences -> Network ->

Code:
username:password@whatever.proxy.com (and port like 8080 in next column)

de: http://ubuntuforums.org/showthread.php?t=83401

Resolveram o problema.

Obrigado!






8. dicas no youtube

Silvio Rodrigues Azevedo
clipper1965

(usa Debian)

Enviado em 30/07/2012 - 11:09h

Pessoal, essa dica é quente.

http://www.youtube.com/watch?v=zhkpmPK4GdE&noredirect=1


Até mais ver!!!!!



9. Configurar apt-get com proxy

André
andrealatus

(usa Outra)

Enviado em 02/02/2017 - 11:10h

recompilando o que richardandrade escreveu:
Altere adicione ou crie os seguintes arquivos:
----------------------------------------------------------------

/etc/apt/apt.conf

adicione:
Acquire::http::proxy "http://usuario:senha@ip:porta/";
Acquire::https::proxy "https://usuario:senha@ip:porta/";
Acquire::ftp::proxy "ftp://usuario:senha@ip:porta/";
-------------------------------------------------------------------------------------------------------
/etc/environment

http_proxy="http://usuario:senha@ip_servidor:porta_proxy"
ftp_proxy="http://usuario:senha@ip_servidor:porta_proxy"

Acquire { HTTP::proxy usuario:senha@ip_servidor:porta_proxy";
FTP::proxy usuario:senha@ip_servidor:porta_proxy";
};
alias wget="wget --proxy-user=usuario --proxy-passwd=senha"

se o servidor nao precisar de autenticacao faça:

http_proxy="http://ip_servidor:porta"
ftp_proxy="http://ip_servidor:porta"

Acquire { HTTP::proxy ip_servidor:porta;
FTP::proxy ip_servidor:porta;
};

-----------------------------------------------------------------------------------------

agora edite o arquivo /etc/profile adicionando as seguintes linhas:

export http_proxy ftp_proxy
----------------------------------------------------------------------------

/root/.synaptic/synaptic.conf

delHistory "-1";
useProxy "1";
httpProxy "ip";
httpProxyPort "ip";
ftpProxy "ip";
ftpProxyPort "porta";
noProxy "ipNoProxy";
Install-Recommends "1";
httpProxyUser "usuario";
httpProxyPass "senha";
--------------------------------------------------






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts