If you use Internet connection that needs proxy, user name and password, then in order to update your system (installing security patches/bug-patches) or upgrade to new version following configuration can be done from command line:
1. Open apt.conf file with root privileges by simply typing following command in terminal:
$ sudo gedit /etc/apt/apt.conf
2. If IP address of your Internet proxy is 10.1.1.1 and port is 8080, then add following lines in the apt.conf:
Acquire::http::proxy "http://10.1.1.1:8080/";Acquire::ftp::proxy "ftp://10.1.1.1:8080/";
Acquire::https::proxy "https://10.1.1.1:8080/";
2. If your proxy requires username and password for authentication, then add following lines:
Acquire::http::proxy “http://username:password@10.1.1.1:8080/";Acquire::ftp::proxy “ftp://username:password@10.1.1.1:8080/";
Acquire::https::proxy “https://username:password@10.1.1.1:8080/";
Note that:
- If your proxy doesn't allow PING, then you won't be able to ping.
- If you are using special characters such as !,@,#,$,%... in your password, then you must use URL encoding for each of them. For example, "#" in password would be "%23". You can get the encoded values for special characters from online encoders available on Internet, for example:
http://www.opinionatedgeek.com/dotnet/tools/urlencode/Encode.aspx
3. Now, to update (packages), simply type:
$ sudo apt-get update$ sudo apt-get upgrade
Note that:
- Synaptic Package Manager has been dropped from Ubuntu 11.10
- Ubuntu 11.10 Update Manager should also work with this settings.
No comments:
Post a Comment