Systemwide proxy settings in ubuntu
Solution 1:
Solved it finally:
(Follow the steps serially)
1. For gtk3 programs such as rhythmbox and online accounts:
First you need to enter proxy settings in network settings (along with authentication):
Then apply system wide.
2. For apt,software center etc
edit the file /etc/apt/apt.conf
And then replace all the existing text by 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/";
3. Environment variables
edit the file /etc/environment
And then add the following lines after PATH="something here"
http_proxy=http://username:password@host:port/
ftp_proxy=ftp://username:password@host:port/
https_proxy=https://username:password@host:port/
That's all..
Solution 2:
To download packages by wget proxy have to be setup in /etc/environment, and to download packages by apt-get proxy have to be setup in /etc/apt/apt.conf