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'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 http://security.ubuntu.co/ubuntu/dists/natty-security/main/source/Sources.gz 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?

Thanks,

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 askubuntu.com/questions/89437/… –  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
add comment

2 Answers 2

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
add comment

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

http

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
add comment

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