How to use “apt-get” via “Http-proxy” like this?'apt-get' does not work with ProxyHow to configure proxy authentication to work with Ubuntu Software Center?How do I configure apt-get to use a Pac file for a proxy?How to configure system wide proxy with user authenticationapt-get works via proxy, but nothing else doesApt proxy settings are not transmitting username/passwordApt-get update through an evil proxy

Huygens Lander: Why The Short Battery Life?

How to solve system equations with sum and vectors

Why only sine waves?

Is there a specific reason Delta Air Lines is allowed to have a call sign that's also code word in the NATO phonetic alphabet?

Is there a difference between downloading / installing a list of packages and downloading each packge by its own?

If thermodynamics says entropy always increases, how can the universe end in heat death?

Are there any surviving Ancient Greek letters (epistolary)?

Learn university maths or train for high school competitions: which is better?

Can airpod with wrong spelling on the case be original?

Can we upgrade Dell's basic Server R240 (which still uses HDD 7200RPM) to an SSD?

What happens when an outsider changes alignment?

What is the meaning of "wiped my face with a planet"?

Is it safe to push a lens to "fold" it?

Is this DIN connector suited for MIDI devices?

Am I being exploited by my supervisor?

How much piloting did the Apollo astronauts actually do?

Can I say "guess what" to acknowledge new information?

Harmonic sums and elementary number theory

Can one get into trouble if one doesn't show up at the gate 30 minutes before departure (or whatever time window the boarding pass is indicating)?

what are these letters in unicode?

Life insurance as a lottery ticket

Name for geostationary orbit around another planet

How does Overleaf render LaTeX online?

How does a Mandalorian eat food if he never takes his helmet off?



How to use “apt-get” via “Http-proxy” like this?


'apt-get' does not work with ProxyHow to configure proxy authentication to work with Ubuntu Software Center?How do I configure apt-get to use a Pac file for a proxy?How to configure system wide proxy with user authenticationapt-get works via proxy, but nothing else doesApt proxy settings are not transmitting username/passwordApt-get update through an evil proxy






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









20


















I'm trying to use apt-get command on a network that uses a proxy, like this:



We use 10.114.7.7 on port 80 as Http-proxy, and after that an authentication window comes up, asking for user name and password.



Our Username/Domain is like this: username@urmia.ac.ir



I'm wondering, how i can use http_proxy=http://User:Pass@Proxyserver:Port in this situation!?
I also tried both, 10.114.7.7 and urmia.ac.ir as Proxy server but no result!










share|improve this question

































    20


















    I'm trying to use apt-get command on a network that uses a proxy, like this:



    We use 10.114.7.7 on port 80 as Http-proxy, and after that an authentication window comes up, asking for user name and password.



    Our Username/Domain is like this: username@urmia.ac.ir



    I'm wondering, how i can use http_proxy=http://User:Pass@Proxyserver:Port in this situation!?
    I also tried both, 10.114.7.7 and urmia.ac.ir as Proxy server but no result!










    share|improve this question





























      20













      20









      20


      9






      I'm trying to use apt-get command on a network that uses a proxy, like this:



      We use 10.114.7.7 on port 80 as Http-proxy, and after that an authentication window comes up, asking for user name and password.



      Our Username/Domain is like this: username@urmia.ac.ir



      I'm wondering, how i can use http_proxy=http://User:Pass@Proxyserver:Port in this situation!?
      I also tried both, 10.114.7.7 and urmia.ac.ir as Proxy server but no result!










      share|improve this question
















      I'm trying to use apt-get command on a network that uses a proxy, like this:



      We use 10.114.7.7 on port 80 as Http-proxy, and after that an authentication window comes up, asking for user name and password.



      Our Username/Domain is like this: username@urmia.ac.ir



      I'm wondering, how i can use http_proxy=http://User:Pass@Proxyserver:Port in this situation!?
      I also tried both, 10.114.7.7 and urmia.ac.ir as Proxy server but no result!







      apt internet proxy synaptic authentication






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 3 '12 at 14:17









      v2r

      7,08911 gold badges41 silver badges49 bronze badges




      7,08911 gold badges41 silver badges49 bronze badges










      asked Mar 3 '12 at 13:57









      McferryMcferry

      2011 gold badge2 silver badges4 bronze badges




      2011 gold badge2 silver badges4 bronze badges























          3 Answers
          3






          active

          oldest

          votes


















          35



















          To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:



          Acquire::http::Proxy "http://username:password@proxy.server:port/";


          Simply replace username and password with your login details, and replace proxy.server:port with the correct address (in your case, 10.114.7.7:80), so your line will end up something like this:



          Acquire::http::Proxy "http://username:password@10.114.7.7:80";


          If you're required to use the @ symbol in your username, you'll have to escape it with a backslash (username@urmia.ac.ir)



          While escaping characters by using the backlash does not work (e.g. @ in export and wget), special characters can be escaped with URL encoding. For instance, username:my@pass@server.com:port becomes username:my%40pass@server.com:port. See this list of URL-encoded characters for more information.






          share|improve this answer



























          • The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

            – Peter Sanza
            Sep 25 at 21:04



















          6



















          Alternatively, you can place the following in /etc/apt/apt.conf



          Acquire::http::Proxy "http://proxy.server.port:8080";


          8080 is the port number and I think is standard.



          Don't forget the quotes or the trailing semicolon.






          share|improve this answer


































            4



















            This should solve your problem:



            export http_proxy=http://username:password@10.114.7.7:80/





            share|improve this answer



























            • EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

              – David Foerster
              May 18 '15 at 9:36











            • Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

              – s3lph
              May 18 '15 at 11:42







            • 5





              works for curl, but not for apt.

              – FGM
              Jul 27 '16 at 13:17










            protected by Community Sep 25 at 21:05



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?














            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            35



















            To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:



            Acquire::http::Proxy "http://username:password@proxy.server:port/";


            Simply replace username and password with your login details, and replace proxy.server:port with the correct address (in your case, 10.114.7.7:80), so your line will end up something like this:



            Acquire::http::Proxy "http://username:password@10.114.7.7:80";


            If you're required to use the @ symbol in your username, you'll have to escape it with a backslash (username@urmia.ac.ir)



            While escaping characters by using the backlash does not work (e.g. @ in export and wget), special characters can be escaped with URL encoding. For instance, username:my@pass@server.com:port becomes username:my%40pass@server.com:port. See this list of URL-encoded characters for more information.






            share|improve this answer



























            • The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

              – Peter Sanza
              Sep 25 at 21:04
















            35



















            To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:



            Acquire::http::Proxy "http://username:password@proxy.server:port/";


            Simply replace username and password with your login details, and replace proxy.server:port with the correct address (in your case, 10.114.7.7:80), so your line will end up something like this:



            Acquire::http::Proxy "http://username:password@10.114.7.7:80";


            If you're required to use the @ symbol in your username, you'll have to escape it with a backslash (username@urmia.ac.ir)



            While escaping characters by using the backlash does not work (e.g. @ in export and wget), special characters can be escaped with URL encoding. For instance, username:my@pass@server.com:port becomes username:my%40pass@server.com:port. See this list of URL-encoded characters for more information.






            share|improve this answer



























            • The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

              – Peter Sanza
              Sep 25 at 21:04














            35















            35











            35









            To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:



            Acquire::http::Proxy "http://username:password@proxy.server:port/";


            Simply replace username and password with your login details, and replace proxy.server:port with the correct address (in your case, 10.114.7.7:80), so your line will end up something like this:



            Acquire::http::Proxy "http://username:password@10.114.7.7:80";


            If you're required to use the @ symbol in your username, you'll have to escape it with a backslash (username@urmia.ac.ir)



            While escaping characters by using the backlash does not work (e.g. @ in export and wget), special characters can be escaped with URL encoding. For instance, username:my@pass@server.com:port becomes username:my%40pass@server.com:port. See this list of URL-encoded characters for more information.






            share|improve this answer
















            To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:



            Acquire::http::Proxy "http://username:password@proxy.server:port/";


            Simply replace username and password with your login details, and replace proxy.server:port with the correct address (in your case, 10.114.7.7:80), so your line will end up something like this:



            Acquire::http::Proxy "http://username:password@10.114.7.7:80";


            If you're required to use the @ symbol in your username, you'll have to escape it with a backslash (username@urmia.ac.ir)



            While escaping characters by using the backlash does not work (e.g. @ in export and wget), special characters can be escaped with URL encoding. For instance, username:my@pass@server.com:port becomes username:my%40pass@server.com:port. See this list of URL-encoded characters for more information.







            share|improve this answer















            share|improve this answer




            share|improve this answer








            edited Nov 14 '16 at 14:34

























            answered Mar 26 '12 at 13:21









            JaseJase

            6514 silver badges10 bronze badges




            6514 silver badges10 bronze badges















            • The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

              – Peter Sanza
              Sep 25 at 21:04


















            • The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

              – Peter Sanza
              Sep 25 at 21:04

















            The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

            – Peter Sanza
            Sep 25 at 21:04






            The proposed solution for adding a proxy entry inside /etc/apt worked for me, but I note that if your proxy server caches credentials, you can avoid embedding your credentials in the configuration file by simply authenticating through your proxy server in a different process (e.g. web browser in Windows), prior to running the apt commands in your bash shell. By doing this I was able to specify the proxy entry inside /etc/apt as "server:port" instead of "username:password@server:port".

            – Peter Sanza
            Sep 25 at 21:04














            6



















            Alternatively, you can place the following in /etc/apt/apt.conf



            Acquire::http::Proxy "http://proxy.server.port:8080";


            8080 is the port number and I think is standard.



            Don't forget the quotes or the trailing semicolon.






            share|improve this answer































              6



















              Alternatively, you can place the following in /etc/apt/apt.conf



              Acquire::http::Proxy "http://proxy.server.port:8080";


              8080 is the port number and I think is standard.



              Don't forget the quotes or the trailing semicolon.






              share|improve this answer





























                6















                6











                6









                Alternatively, you can place the following in /etc/apt/apt.conf



                Acquire::http::Proxy "http://proxy.server.port:8080";


                8080 is the port number and I think is standard.



                Don't forget the quotes or the trailing semicolon.






                share|improve this answer
















                Alternatively, you can place the following in /etc/apt/apt.conf



                Acquire::http::Proxy "http://proxy.server.port:8080";


                8080 is the port number and I think is standard.



                Don't forget the quotes or the trailing semicolon.







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited May 18 '15 at 7:45









                muru

                1




                1










                answered May 18 '15 at 7:42









                Justin PeterJustin Peter

                611 silver badge1 bronze badge




                611 silver badge1 bronze badge
























                    4



















                    This should solve your problem:



                    export http_proxy=http://username:password@10.114.7.7:80/





                    share|improve this answer



























                    • EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                      – David Foerster
                      May 18 '15 at 9:36











                    • Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                      – s3lph
                      May 18 '15 at 11:42







                    • 5





                      works for curl, but not for apt.

                      – FGM
                      Jul 27 '16 at 13:17















                    4



















                    This should solve your problem:



                    export http_proxy=http://username:password@10.114.7.7:80/





                    share|improve this answer



























                    • EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                      – David Foerster
                      May 18 '15 at 9:36











                    • Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                      – s3lph
                      May 18 '15 at 11:42







                    • 5





                      works for curl, but not for apt.

                      – FGM
                      Jul 27 '16 at 13:17













                    4















                    4











                    4









                    This should solve your problem:



                    export http_proxy=http://username:password@10.114.7.7:80/





                    share|improve this answer
















                    This should solve your problem:



                    export http_proxy=http://username:password@10.114.7.7:80/






                    share|improve this answer















                    share|improve this answer




                    share|improve this answer








                    edited May 18 '15 at 11:52









                    Fabby

                    30.7k19 gold badges73 silver badges175 bronze badges




                    30.7k19 gold badges73 silver badges175 bronze badges










                    answered May 18 '15 at 7:47









                    Abasi BoAbasi Bo

                    411 bronze badge




                    411 bronze badge















                    • EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                      – David Foerster
                      May 18 '15 at 9:36











                    • Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                      – s3lph
                      May 18 '15 at 11:42







                    • 5





                      works for curl, but not for apt.

                      – FGM
                      Jul 27 '16 at 13:17

















                    • EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                      – David Foerster
                      May 18 '15 at 9:36











                    • Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                      – s3lph
                      May 18 '15 at 11:42







                    • 5





                      works for curl, but not for apt.

                      – FGM
                      Jul 27 '16 at 13:17
















                    EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                    – David Foerster
                    May 18 '15 at 9:36





                    EXPORT HTTP_proxy=http://username:password@10.114.7.7:80/ run in Bash results in EXPORT: command not found.

                    – David Foerster
                    May 18 '15 at 9:36













                    Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                    – s3lph
                    May 18 '15 at 11:42






                    Both export and http in lower case. Bash is case-sensitive. Else it should work. At least it has been working for me for two years.

                    – s3lph
                    May 18 '15 at 11:42





                    5




                    5





                    works for curl, but not for apt.

                    – FGM
                    Jul 27 '16 at 13:17





                    works for curl, but not for apt.

                    – FGM
                    Jul 27 '16 at 13:17





                    protected by Community Sep 25 at 21:05



                    Thank you for your interest in this question.
                    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                    Would you like to answer one of these unanswered questions instead?



                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?