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 responses to “Change Proxy For Terminal in Ubuntu”

  1. 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. @Ahmad
    if you have trouble with apt then i think you should modify this file:
    /etc/apt/apt.conf

Leave a Reply

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

Discover more from Saturngod

Subscribe now to keep reading and get access to the full archive.

Continue reading