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.

I can't ping google.com with my virtual ubuntu 12.04 server.

I have set up a proxy URL in my /etc/apt/apt.conf file and it says
Aquire::http::proxy http://urlname.com:9999;

Now, I don't know a lot about how the proxy works, but I do know when we use it on windows VMachines it's a pac script that we place in internet explorer LAN settings and it automatically detects the script and gives internet access.

I tried including the 9999/proxy.pac in the apt.conf URL and it didn't seem to work any better.

Would ubuntu know how to handle a proxy.pac assuming it was created for windows? Should my URL include the .pac or just end after the port numbers? I've tried both without sucess, but I would like to know.

A quick test to ping a fellow co-workers' PC was sucessful. So I can see network computers, but not google. or other internet sources.

share|improve this question
2  
Do you want to access the web or do you want to download packages through your proxy? I'm not quite sure what you're trying to achieve ehre. –  qbi Nov 1 '12 at 15:21
    
Both actually... but mainly packages. –  Frantumn Nov 1 '12 at 16:06

2 Answers 2

up vote 0 down vote accepted

As far as I'm aware apt doesn't handle PAC files directly. But this file is nothing more than plain text describing the location of your proxy. The Wikipedia page for Proxy auto-config has some details. So I would suggest downloading the PAC file to your computer, open it in a text editor and try to find out the correct URL for your proxy. You can enter this information into the /etc/apt/apt.conf and this should work.

Other software might have seperate ways to handle PAC files. Firefox for instance has network settings. There you can enter the URL to the PAC file.

share|improve this answer

Please try to explain your scenario more clearly. Are you behind a proxy? If so, use CNTLM for proxy authentication. See my "how to use CNTLM" page here.

share|improve this answer

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.