Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had Ubuntu 10.10 on my server since I bought it several years back. I've tried to upgrade in the past but I'm always thwarted by my company's firewall. I receive messages like these:

W:Failed to fetch 407 Proxy Authentication Required (Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

I have my System > Preferences > Network Proxy > HTTP proxy set appropriately (to use Port 80 to get through our firewall.) But still no luck.

I'm looking to upgrade from Ruby 1.8.7 to 1.9.3 and I'm really hesitant to install RVM until I've gotten this Ubuntu upgrade successfully completed. Can anyone suggest what I might be doing wrong / need to change?


Dean Richardson

share|improve this question

marked as duplicate by bodhi.zazen, Eric Carvalho, Uri Herrera, Seth, vasa1 Mar 6 '13 at 6:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The above will show you how to upgrade. On a server it should go smoothly, although you will have to upgrade one version at a time. IMO it is probably easier for you to back up your data and do a fresh install. As far as your proxy problem see… – bodhi.zazen Mar 5 '13 at 18:26
@bodhi.zazen I don't think it's duplicate. OP's main problem is the proxy settings. – Eric Carvalho Mar 5 '13 at 18:31
@EricCarvalho Well it is a dup of the link on proxy settings then, so IMO both parts of the question are duplicates. See my second link. – bodhi.zazen Mar 5 '13 at 18:51
@bodhi.zazen Right, I didn't see that link. – Eric Carvalho Mar 5 '13 at 19:06

Create the file /etc/apt/apt.conf and write this in it:

Acquire::http::Proxy "http://<username>:<password>@<proxy-ip-address>:<port>/";

Then follow How to install software or upgrade from old unsupported release? to learn what to to next.

share|improve this answer
This and bodhi.zazen's suggestions (and the resources you both linked to) worked marvelously. I've successfully upgraded to 11.10 and should have no problem getting to 12.04 now. Thanks for your rapid response! – Dean Richardson Mar 5 '13 at 22:52
Alas, I was premature in my optimism regarding 12.04. Upgrading to that version broke both my ability to download/install rubygems from the web and my connection to my mysql server. :( – Dean Richardson Mar 6 '13 at 22:30

For using a proxy with apt you have to tweak your apt configuration. See man apt.conf


HTTP URIs; http::Proxy is the default http proxy to use. It is in the standard form of http://[[user][:pass]@]host[:port]/. Per host proxies can also be specified by using the form http::Proxy:: with the special keyword DIRECT meaning to use no proxies. If no one of the above settings is specified, http_proxy environment variable will be used.

share|improve this answer

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