How to update and add repository in Ubuntu 11.04 Natty and 11.10 oneiric ocelot behind a proxy | FAQs
Question: How to install , update packages and add PPA repository behind a proxy Server in Ubuntu 10.10, 11.04 Natty and 11.10 oneiric ocelot?
Open terminal and add the following lines to /etc/apt/apt.conf.
And add these 2 line :
save and exit. Now apt-get update and should work behind a proxy, but you will notice that still something is not working, is the add-apt-repositoy command.
To be able to add repository behind a proxy, type the following commands:
# export https_proxy="http://192.168.1.5:8080"
# sed -i 's/"keyserver.ubuntu.com"/"hkp://keyserver.ubuntu.com:80"/' /usr/share/pyshared/softwareproperties/ppa.py
Now you can add repositories in Lucid and Natty using LANG=C add-apt-repository
root@ubuntu:~# LANG=C add-apt-repository ppa:motumedia/mplayer-daily
This method was tested under Ubuntu 11.04 and 10.10 and is working fine:)
Please feel free to ask any question by posting in the Forum.