407 Autenticação de proxy Obrigatório ao tentar instalar um pacote, mas não há proxy

0

Seguindo estas instruções link de como instalar o mongodb, recebi um erro :

$ sudo apt-get install  mongodb-org
[sudo] password for alex: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjpeg62 python-colorama python-distlib python-html5lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 15 not upgraded.
Need to get 50.7 MB of archives.
After this operation, 157 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools
  mongodb-org
Install these packages without verification? [y/N] y
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-shell amd64 3.0.5
  407  Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-server amd64 3.0.5
  407  Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-mongos amd64 3.0.5
  407  Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-tools amd64 3.0.5
  407  Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org amd64 3.0.5
  407  Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-shell_3.0.5_amd64.deb  407  Proxy Authentication Required

E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-server_3.0.5_amd64.deb  407  Proxy Authentication Required

E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-mongos_3.0.5_amd64.deb  407  Proxy Authentication Required

E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-tools_3.0.5_amd64.deb  407  Proxy Authentication Required

E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org_3.0.5_amd64.deb  407  Proxy Authentication Required

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Não há proxy para acessar a Internet.

    
por アレックス 06.08.2015 / 17:42

1 resposta

1

Na sua linha de comando, veja se você pode fazer o seguinte:

$ echo "GET / HTTP/1.1
> 
> " | nc repo.mongodb.org 80

note preste atenção nas aspas, existem dois retornos na string pipped para o netcat (pode ser chamado nc no seu sistema). Você deve obter uma resposta como abaixo. Se o netcat não estiver instalado, você também poderá usar o telnet se ele estiver instalado.

% bl0ck_qu0te%

Se você não obtiver isso, sua conexão HTTP será interceptada por um proxy de algum tipo, possivelmente um proxy TCP ou proxy transparente - e você precisaria conversar com seu provedor de rede para obter mais informações.

    
por cgseller 06.08.2015 / 19:43