How do I set system wide proxy in Ubuntu 18.04? Unicorn Meta Zoo #1: Why another podcast? ...

Co-worker works way more than he should

What to do with someone that cheated their way through university and a PhD program?

How to not starve gigantic beasts

std::is_constructible on incomplete types

Why isn't everyone flabbergasted about Bran's "gift"?

What is the term for a person whose job is to place products on shelves in stores?

Protagonist's race is hidden - should I reveal it?

Why is an operator the quantum mechanical analogue of an observable?

Married in secret, can marital status in passport be changed at a later date?

A strange hotel

c++ diamond problem - How to call base method only once

As an international instructor, should I openly talk about my accent?

Will I lose my paid in full property

Multiple fireplaces in an apartment building?

What's the difference between using dependency injection with a container and using a service locator?

Is it acceptable to use working hours to read general interest books?

Can you stand up from being prone using Skirmisher outside of your turn?

Trumpet valves, lengths, and pitch

Israeli soda type drink

What *exactly* is electrical current, voltage, and resistance?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Did the Roman Empire have penal colonies?

How would I use different systems of magic when they are capable of the same effects?

Implementing 3DES algorithm in Java: is my code secure?



How do I set system wide proxy in Ubuntu 18.04?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraIs there an anonymous proxy application for Ubuntu?Incomplete system-wide proxy settings on Ubuntu 12.10How to remove proxy set in the office when working at home?The “OpenStack” package ignores system-wide network proxy settingsHow to configure user-wide proxy in non-gnome Linux?Real system wide proxyProxy with authentication in Ubuntu 18.04How can I configure proxy setting system-wide in Lubuntu 18.04?unable to setup proxy system wide in kubuntu 18.04Set system proxy automatically on connecting to wifi network on ubuntu 18.04 Bionic





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







4















There is no 'Apply System Wide' option.I have to manually change /etc/apt/apt.conf file every time I set or unset proxy.



How do I configure it so that it applies system wide proxy settings - with apt.conf updating accordingly in Ubuntu 18.04?



EDIT:



Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?










share|improve this question




















  • 1





    Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

    – muru
    Jun 25 '18 at 6:14











  • You have to specifiy http:// in front of the hostname, everything else irritates apt

    – Marged
    Sep 10 '18 at 12:48


















4















There is no 'Apply System Wide' option.I have to manually change /etc/apt/apt.conf file every time I set or unset proxy.



How do I configure it so that it applies system wide proxy settings - with apt.conf updating accordingly in Ubuntu 18.04?



EDIT:



Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?










share|improve this question




















  • 1





    Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

    – muru
    Jun 25 '18 at 6:14











  • You have to specifiy http:// in front of the hostname, everything else irritates apt

    – Marged
    Sep 10 '18 at 12:48














4












4








4


2






There is no 'Apply System Wide' option.I have to manually change /etc/apt/apt.conf file every time I set or unset proxy.



How do I configure it so that it applies system wide proxy settings - with apt.conf updating accordingly in Ubuntu 18.04?



EDIT:



Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?










share|improve this question
















There is no 'Apply System Wide' option.I have to manually change /etc/apt/apt.conf file every time I set or unset proxy.



How do I configure it so that it applies system wide proxy settings - with apt.conf updating accordingly in Ubuntu 18.04?



EDIT:



Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?







networking 18.04 proxy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 25 '18 at 11:39







Trial

















asked Jun 25 '18 at 4:54









TrialTrial

26114




26114








  • 1





    Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

    – muru
    Jun 25 '18 at 6:14











  • You have to specifiy http:// in front of the hostname, everything else irritates apt

    – Marged
    Sep 10 '18 at 12:48














  • 1





    Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

    – muru
    Jun 25 '18 at 6:14











  • You have to specifiy http:// in front of the hostname, everything else irritates apt

    – Marged
    Sep 10 '18 at 12:48








1




1





Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

– muru
Jun 25 '18 at 6:14





Bug report: bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/… You might want to add yourself as being affected.

– muru
Jun 25 '18 at 6:14













You have to specifiy http:// in front of the hostname, everything else irritates apt

– Marged
Sep 10 '18 at 12:48





You have to specifiy http:// in front of the hostname, everything else irritates apt

– Marged
Sep 10 '18 at 12:48










2 Answers
2






active

oldest

votes


















3














Set proxy details in Environment variables;

Edit /etc/environment and add following lines (replace username, password, host and port with your proxy details).



http_proxy=http://username:password@host:port/
ftp_proxy=ftp://username:password@host:port/
https_proxy=https://username:password@host:port/


For apt,software center & etc;

edit /etc/apt/apt.conf.d/80proxy (if its not exist create it) and add the following lines



Acquire::http::proxy "http://username:password@host:port/";
Acquire::ftp::proxy "ftp://username:password@host:port/";
Acquire::https::proxy "https://username:password@host:port/";





share|improve this answer



















  • 1





    Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

    – Trial
    Jun 25 '18 at 5:44













  • what is the Desktop Environment you use? Gnome?

    – Gayan Sampath
    Jun 25 '18 at 5:45











  • check this for Gnome. but everytime you setting proxy you will need to type them in. link

    – Gayan Sampath
    Jun 25 '18 at 5:49











  • :) if you found answer mark it.

    – Gayan Sampath
    Jun 25 '18 at 5:54











  • Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

    – Trial
    Jun 25 '18 at 11:39



















0














18.04 uses GNOME as the default desktop manager, although I prefer Unity which was used in several previous LTS releases. When I installed and switched to Unity, the "apply system wide" option was restored in the network/proxy settings menu.



To switch to Unity, run sudo apt update && sudo apt install ubuntu-unity-desktop, and select the lightdm option when prompted. I had to first edit /etc/environment by hand to include my proxy server before apt could reach the repositories for the update/install. This link gives a detailed description of how to switch to Unity.






share|improve this answer








New contributor




tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1049440%2fhow-do-i-set-system-wide-proxy-in-ubuntu-18-04%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Set proxy details in Environment variables;

    Edit /etc/environment and add following lines (replace username, password, host and port with your proxy details).



    http_proxy=http://username:password@host:port/
    ftp_proxy=ftp://username:password@host:port/
    https_proxy=https://username:password@host:port/


    For apt,software center & etc;

    edit /etc/apt/apt.conf.d/80proxy (if its not exist create it) and add the following lines



    Acquire::http::proxy "http://username:password@host:port/";
    Acquire::ftp::proxy "ftp://username:password@host:port/";
    Acquire::https::proxy "https://username:password@host:port/";





    share|improve this answer



















    • 1





      Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

      – Trial
      Jun 25 '18 at 5:44













    • what is the Desktop Environment you use? Gnome?

      – Gayan Sampath
      Jun 25 '18 at 5:45











    • check this for Gnome. but everytime you setting proxy you will need to type them in. link

      – Gayan Sampath
      Jun 25 '18 at 5:49











    • :) if you found answer mark it.

      – Gayan Sampath
      Jun 25 '18 at 5:54











    • Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

      – Trial
      Jun 25 '18 at 11:39
















    3














    Set proxy details in Environment variables;

    Edit /etc/environment and add following lines (replace username, password, host and port with your proxy details).



    http_proxy=http://username:password@host:port/
    ftp_proxy=ftp://username:password@host:port/
    https_proxy=https://username:password@host:port/


    For apt,software center & etc;

    edit /etc/apt/apt.conf.d/80proxy (if its not exist create it) and add the following lines



    Acquire::http::proxy "http://username:password@host:port/";
    Acquire::ftp::proxy "ftp://username:password@host:port/";
    Acquire::https::proxy "https://username:password@host:port/";





    share|improve this answer



















    • 1





      Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

      – Trial
      Jun 25 '18 at 5:44













    • what is the Desktop Environment you use? Gnome?

      – Gayan Sampath
      Jun 25 '18 at 5:45











    • check this for Gnome. but everytime you setting proxy you will need to type them in. link

      – Gayan Sampath
      Jun 25 '18 at 5:49











    • :) if you found answer mark it.

      – Gayan Sampath
      Jun 25 '18 at 5:54











    • Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

      – Trial
      Jun 25 '18 at 11:39














    3












    3








    3







    Set proxy details in Environment variables;

    Edit /etc/environment and add following lines (replace username, password, host and port with your proxy details).



    http_proxy=http://username:password@host:port/
    ftp_proxy=ftp://username:password@host:port/
    https_proxy=https://username:password@host:port/


    For apt,software center & etc;

    edit /etc/apt/apt.conf.d/80proxy (if its not exist create it) and add the following lines



    Acquire::http::proxy "http://username:password@host:port/";
    Acquire::ftp::proxy "ftp://username:password@host:port/";
    Acquire::https::proxy "https://username:password@host:port/";





    share|improve this answer













    Set proxy details in Environment variables;

    Edit /etc/environment and add following lines (replace username, password, host and port with your proxy details).



    http_proxy=http://username:password@host:port/
    ftp_proxy=ftp://username:password@host:port/
    https_proxy=https://username:password@host:port/


    For apt,software center & etc;

    edit /etc/apt/apt.conf.d/80proxy (if its not exist create it) and add the following lines



    Acquire::http::proxy "http://username:password@host:port/";
    Acquire::ftp::proxy "ftp://username:password@host:port/";
    Acquire::https::proxy "https://username:password@host:port/";






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 25 '18 at 5:41









    Gayan SampathGayan Sampath

    314




    314








    • 1





      Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

      – Trial
      Jun 25 '18 at 5:44













    • what is the Desktop Environment you use? Gnome?

      – Gayan Sampath
      Jun 25 '18 at 5:45











    • check this for Gnome. but everytime you setting proxy you will need to type them in. link

      – Gayan Sampath
      Jun 25 '18 at 5:49











    • :) if you found answer mark it.

      – Gayan Sampath
      Jun 25 '18 at 5:54











    • Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

      – Trial
      Jun 25 '18 at 11:39














    • 1





      Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

      – Trial
      Jun 25 '18 at 5:44













    • what is the Desktop Environment you use? Gnome?

      – Gayan Sampath
      Jun 25 '18 at 5:45











    • check this for Gnome. but everytime you setting proxy you will need to type them in. link

      – Gayan Sampath
      Jun 25 '18 at 5:49











    • :) if you found answer mark it.

      – Gayan Sampath
      Jun 25 '18 at 5:54











    • Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

      – Trial
      Jun 25 '18 at 11:39








    1




    1





    Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

    – Trial
    Jun 25 '18 at 5:44







    Is there anyway to automatically update /etc/apt/apt.conf.d/80proxy? I have to manually set it each time - in previous versions of Ubuntu, I needn't have done that - just clicking on the button 'Apply System Wide' through GUI was good enough.

    – Trial
    Jun 25 '18 at 5:44















    what is the Desktop Environment you use? Gnome?

    – Gayan Sampath
    Jun 25 '18 at 5:45





    what is the Desktop Environment you use? Gnome?

    – Gayan Sampath
    Jun 25 '18 at 5:45













    check this for Gnome. but everytime you setting proxy you will need to type them in. link

    – Gayan Sampath
    Jun 25 '18 at 5:49





    check this for Gnome. but everytime you setting proxy you will need to type them in. link

    – Gayan Sampath
    Jun 25 '18 at 5:49













    :) if you found answer mark it.

    – Gayan Sampath
    Jun 25 '18 at 5:54





    :) if you found answer mark it.

    – Gayan Sampath
    Jun 25 '18 at 5:54













    Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

    – Trial
    Jun 25 '18 at 11:39





    Despite setting apt.conf manually, I'm not able to install anything through Ubuntu Software because an "Unsupported proxy configured: proxy.server.com//8080" error comes up. How do I fix this?

    – Trial
    Jun 25 '18 at 11:39













    0














    18.04 uses GNOME as the default desktop manager, although I prefer Unity which was used in several previous LTS releases. When I installed and switched to Unity, the "apply system wide" option was restored in the network/proxy settings menu.



    To switch to Unity, run sudo apt update && sudo apt install ubuntu-unity-desktop, and select the lightdm option when prompted. I had to first edit /etc/environment by hand to include my proxy server before apt could reach the repositories for the update/install. This link gives a detailed description of how to switch to Unity.






    share|improve this answer








    New contributor




    tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      18.04 uses GNOME as the default desktop manager, although I prefer Unity which was used in several previous LTS releases. When I installed and switched to Unity, the "apply system wide" option was restored in the network/proxy settings menu.



      To switch to Unity, run sudo apt update && sudo apt install ubuntu-unity-desktop, and select the lightdm option when prompted. I had to first edit /etc/environment by hand to include my proxy server before apt could reach the repositories for the update/install. This link gives a detailed description of how to switch to Unity.






      share|improve this answer








      New contributor




      tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        18.04 uses GNOME as the default desktop manager, although I prefer Unity which was used in several previous LTS releases. When I installed and switched to Unity, the "apply system wide" option was restored in the network/proxy settings menu.



        To switch to Unity, run sudo apt update && sudo apt install ubuntu-unity-desktop, and select the lightdm option when prompted. I had to first edit /etc/environment by hand to include my proxy server before apt could reach the repositories for the update/install. This link gives a detailed description of how to switch to Unity.






        share|improve this answer








        New contributor




        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        18.04 uses GNOME as the default desktop manager, although I prefer Unity which was used in several previous LTS releases. When I installed and switched to Unity, the "apply system wide" option was restored in the network/proxy settings menu.



        To switch to Unity, run sudo apt update && sudo apt install ubuntu-unity-desktop, and select the lightdm option when prompted. I had to first edit /etc/environment by hand to include my proxy server before apt could reach the repositories for the update/install. This link gives a detailed description of how to switch to Unity.







        share|improve this answer








        New contributor




        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 11 hours ago









        tpm1510tpm1510

        1013




        1013




        New contributor




        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        tpm1510 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1049440%2fhow-do-i-set-system-wide-proxy-in-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...