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

 


Dernière réponse
Sujet : debian apt-get http_proxy [résolu]
nico168 merci à vous pour ces solutions.

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
nico168 merci à vous pour ces solutions.
Jar Jar

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/

houplaboom42 dans le fichier /etc/apt/apt.conf
 

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

philou_a7 Faut pas passer par apt-setup pour declarer un proxy au systeme apt ?  :heink:
nico168 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


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