How do I configure apt to use a Proxy.pac file?

So I have a proxy.pac file at work (it doesn't have a username or password) it's just a simple .pac file.

I've gotten it to work with Chrome so I can surf the web, but apt-get and update do not work. How would I go about making this work?

Im on 10.10 btw.


In system --> preferences --> network proxy, enable Automatic proxy configuration and enter the URL of the PAC.

Then press apply system wide, and that should do the trick.


sudo apt-get update failed (on a fresh 11.04 VM) after following the instructions in DemonWareXT's answer (System -> Preferences -> Network Proxy).

I followed the instructions I found in help.ubuntu.com/community/AptGet (under "APT configuration file method") and then it worked.