Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1592 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  debian apt-get http_proxy [résolu]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

debian apt-get http_proxy [résolu]

n°169289
nico168
Posté le 08-10-2002 à 11:20:54  profilanswer
 

salut
 
j'ai besoin de telecharger les sources de php, j'ai donc ajouter la ligne qui va bien dans le sources.list  
 

Code :
  1. deb-src http://ftp.fr.debian.org/debian stable main non-free contrib


 
Je passe par un proxy au boulot.
j'ai donc taper la commande  
 

Code :
  1. export http_proxy=1.2.3.4:8080


 
ca marche tres bien quand je wget www.google.com
par contre... quand je fait un apt-get update :
 

Code :
  1. pcdevweb2:~# apt-get update
  2. Err http://ftp.fr.debian.org stable/main Sources
  3.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  4. Err http://ftp.fr.debian.org stable/main Release
  5.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  6. Err http://ftp.fr.debian.org stable/non-free Sources
  7.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  8. Err http://ftp.fr.debian.org stable/non-free Release
  9.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  10. Err http://ftp.fr.debian.org stable/contrib Sources
  11.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  12. Err http://ftp.fr.debian.org stable/contrib Release
  13.   Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  14. Failed to fetch http://ftp.fr.debian.org/debian/di [...] rces  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  15. Failed to fetch http://ftp.fr.debian.org/debian/di [...] ease  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  16. Failed to fetch http://ftp.fr.debian.org/debian/di [...] rces  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  17. Failed to fetch http://ftp.fr.debian.org/debian/di [...] ease  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  18. Failed to fetch http://ftp.fr.debian.org/debian/di [...] rces  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  19. Failed to fetch http://ftp.fr.debian.org/debian/di [...] ease  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)
  20. Reading Package Lists... Done
  21. Building Dependency Tree... Done
  22. E: Some index files failed to download, they have been ignored, or old ones used instead.
  23. pcdevweb2:~#


 
et je ne sais plus quoi faire.
qq'un vois une solution ?
merci


Message édité par nico168 le 08-10-2002 à 14:57:46
mood
Publicité
Posté le 08-10-2002 à 11:20:54  profilanswer
 

n°169290
philou_a7
\_o< coin ! >o_/
Posté le 08-10-2002 à 11:24:01  profilanswer
 

Faut pas passer par apt-setup pour declarer un proxy au systeme apt ?  :heink:

n°169291
houplaboom​42
Posté le 08-10-2002 à 11:27:03  profilanswer
 

dans le fichier /etc/apt/apt.conf
 

Code :
  1. Acquire::http::Proxy "http://nom_du_proxy:port/";


Message édité par houplaboom42 le 08-10-2002 à 12:26:45
n°169314
Jar Jar
Intaigriste
Posté le 08-10-2002 à 12:57:50  profilanswer
 

nico168 a écrit a écrit :

Je passe par un proxy au boulot.
j'ai donc taper la commande  

Code :
  1. export http_proxy=1.2.3.4:8080




La syntaxe de http_proxy, c'est :

Code :
  1. http_proxy=http://proxy:8080/


---------------
« No question is too silly to ask, but, of course, some are too silly to answer. » -- Perl book
n°169386
nico168
Posté le 08-10-2002 à 14:57:30  profilanswer
 

merci à vous pour ces solutions.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  debian apt-get http_proxy [résolu]

 

Sujets relatifs
[Debian]Probleme avec les drivers Nvidia :/XFree4.2.1 sorti sur Debian Unstable
[SQUID + IPTABLES] Problème de proxy transparent incompréhensibleMDK 9 Red Hat 8 Debian woody 3
[Debian] demirror : mirroir local partiel non-US[Debian Debutant] Script ou commande au demarrage
[debutant] Debian - pb d'ecran, impossible de lancer X[Sshd] Bouhhh, j'y arriverai jamais [RESOLU]
peut on eteindre sa carte video sous debian?debian: installer une carte son?
Plus de sujets relatifs à : debian apt-get http_proxy [résolu]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR