Come impostare un proxy per apt-cyg, http e calze? Ho provato ad utilizzareCome impostare un proxy per apt-cyg?
export http_proxy=
, ma non ha funzionato.
Come impostare un proxy per apt-cyg, http e calze? Ho provato ad utilizzareCome impostare un proxy per apt-cyg?
export http_proxy=
, ma non ha funzionato.
io non sono sicuro di Cygwin, ma queste sono le linee del mio ~/.bashrc
export http_proxy=http://[user]:[passwd]@[proxy.foo.com]:[portnumber]
export https_proxy=http://[user]:[passwd]@[proxy.foo.com]:[portnumber]
export HTTP_PROXY=http://[user]:[passwd]@[proxy.foo.com]:[portnumber]
export HTTPS_PROXY=http://[user]:[passwd]@[proxy.foo.com]:[portnumber]
Se Cygwin è simile a bash, dovrebbe funzionare.
Questo dovrebbe funzionare:
export ftp_proxy=http://[user]:[passwd]@[proxy.foo.com]:[portnumber]
Questa è una risposta appropriata ad oggi. 'apt-cyg' usa ftp per scaricare pacchetti. – Kosiek
mi ha reso il lavoro impostando due variabili di ambiente Windows: http_proxy e http_proxy. In precedenza avevo HTTP_PROXY, ma non è stato raccolto.
Si noti che poiché Cygwin è un processo di Windows, dopo aver impostato le nuove variabili di ambiente è necessario avviare un nuovo processo Cygwin per raccogliere la modifica.
È inoltre possibile aggiungere tutto in una sola riga (funziona bene con Cygwin/apt-get incorporato in MobaXterm - aggiungerlo al .bashrc):
export {ftp,http,https}_proxy=http://[user]:[passwd]@[proxy.foo.com]:[port]
vecchia questione, ma nessuna delle risposte sembrano destra.
Da quello che posso dire cercando di disinserire un proxy per eseguire questo su una delle mie scatole, mi è stato sempre questo errore: wget: in grado di risolvere l'indirizzo host 'webproxystatic-mywork.com'
Sembra apt -cyg usa wget. Quindi questo ti porta a questa domanda: setting proxy in wget
La risposta dei quali è: set (o nel mio caso non impostato) http_proxy
/https_proxy
in /etc/wgetrc
:
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on
+1 per portare apt-cyg alla mia attenzione – sehe
Non conosco cygwin, ma hai provato proxychain o tsock? Hai provato ad aggiungere impostazioni proxy in wgetrc che apt-cyg dovrebbe usare? Se la natura di apt-cyg è semplice, potresti essere in grado di hackerarlo. – MeaCulpa