Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My University Campus has Ubuntu Repos on the Local Server.

Also, we use a proxy server to connect to the Internet.

Now, my Repository is the Campus Local Server, but I do have a lot PPAs installed in my system.

When I do apt-get update through the Proxy Server, even the connections to the Local Server go via the Proxy Server, making the whole process very slow.

If I don't use the Proxy Server, then the PPAs don't get updated.

How can I do apt-get update, such that only PPAs use the Proxy Server, and the other Repos get updated directly from the Local Server without going through the Proxy Server.

share|improve this question
    
Contact your system admin in Campus and tell to add PPA deatails to server or other way is make such adjustment to connect ISP without proxy only for you. –  K.K Patel Dec 10 '12 at 4:29
    
The sysadmins in the Institute are not very flexible. They won't make changes for individual users. So, making changes in the server side is out of the question. I just would like to know if something can be done from my side. I am sure this should be possible. –  Karthik Dec 10 '12 at 4:57
add comment

1 Answer

Does this make sense - Disable proxy and update-upgrade to get the repository upgrades, and then enable proxy for the PPAs - you can script this by using the $http_proxy env var.

Edit: this method is still not good enough. This post suggests another idea. Perhaps you can setup a proxy of your own locally, and that proxy can redirect to the university for all URLs except for your local server.

share|improve this answer
    
What do you mean by update-upgrade? –  Karthik Dec 10 '12 at 5:05
    
sudo apt-get update and sudo apt-get upgrade –  Karthik T Dec 10 '12 at 5:19
    
But once I enable proxy, the repository gets updated once again. –  Karthik Dec 10 '12 at 5:20
    
hmm yes, this method would finish the upgrades using a direct connection, but update would still be slow.. let me think more –  Karthik T Dec 10 '12 at 5:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.