Change Proxy For Terminal in Ubuntu

Today, I use Ubuntu in Tokyo donut,Yangon. I try to update but I can’t.It connect to 192.168.0.254. This IP is proxy in SkyWorld cyberber cafe. I also change setting in Network Proxy and Apply System-Wide. But not work. I can use Internet from firefox but not work in terminal. So, I search in google and I try this comment in terminal

$ echo $http_proxy
192.168.0.254:8080

I print the http_proxy environment in terminal.It show IP. So I fixed like that

$ http_proxy=”
$ echo $http_proxy

And then I tryagain.It’s work. I can update and install package from terminal again.

2 Comments

  1. Ahmad says:

    sorry this is not usefull , i have try this under CentOs and i can’t change the proxy of the terminal , it stills null :(

  2. Mansoor says:

    @Ahmad
    if you have trouble with apt then i think you should modify this file:
    /etc/apt/apt.conf

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.