Cannot upgrade to new Ubuntu version behind proxy server

Asked by Nickolas Holloway

I'm currently running Ubuntu 10.04 (Lucid Lynx), and I would like to upgrade from Lucid Lynx to Natty Narwhal. I'm currently running behind a proxy server, and it will download all but three repositories, which is strange, considering apt-get install and apt-get update works. I don't need to configure the proxy server to get on the Internet. Just because of how this server functions, as long as I enter my user name and password into the login page in my browser, I can browse the net. Thinking that may have been the problem, I configured the proxy settings, applied it to all proxy forms, and set it as system-wide, to no avail. I followed the instructions given in Question #156495 (https://answers.launchpad.net/ubuntu/+source/update-manager/+question/156495) but was unsuccessful. My terminal output follows below, when I enter the commands in Question #156495.

nickolas@nickolas-laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
nickolas@nickolas-laptop:~$ sudo apt-get update
[sudo] password for nickolas:
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Hit http://security.ubuntu.com lucid-security/restricted Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists... Done
nickolas@nickolas-laptop:~$ sudo apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
nickolas@nickolas-laptop:~$ sudo apt-get -y dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
nickolas@nickolas-laptop:~$ sudo do-release-upgrade
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade toolmin 34s
Done downloading
extracting 'maverick.tar.gz'
authenticate 'maverick.tar.gz' against 'maverick.tar.gz.gpg'
tar: Removing leading `/' from member names

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Updating repository information
WARNING: Failed to read mirror file
91% [Working] 0s
Error during update

A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.

W:Failed to fetch
http://us.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz
Connection failed [IP: 91.189.92.179 80]
, W:Failed to fetch
http://us.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz
Connection failed [IP: 91.189.92.181 80]
, E:Some index files failed to download, they have been ignored, or
old ones used instead.

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
nickolas@nickolas-laptop:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

tell apt about your proxy, either be exporting the http_proxy variable

export http_proxy=http://your.proxy.com:12345

or by modifying your apt.conf file

http://www.debian-administration.org/articles/177

Revision history for this message
Nickolas Holloway (nholloway2007) said :
#2

My proxy server is in this format - 11.1.11.1:8080. Do I enter that the same way?

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#3

Enter it like http://11.1.11.1:8080, yes. So, if you use the first method, it will look like:

export http_proxy=http://11.1.11.1:8080

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Or you can download the alternate ISO, mount it then use the upgrader there in an offline style.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#5

However, you would have to download two alternate .iso images -- one for Maverick, and one for Natty.

Since Ubuntu 11.04 Natty Narwhal is not a Long-Term Support release, you cannot upgrade directly to it from Ubuntu 10.04 LTS Lucid Lynx. You must first upgrade to Ubuntu 10.10 Maverick Meerkat, and then upgrade from Maverick to Natty.

(This applies equally when upgrading in the Update Manager or via the do-release-upgrade utility, but it's only when upgrading using alternate CD's that you're likely to make a mistake as a consequence of not taking heed of it.)

Can you help with this problem?

Provide an answer of your own, or ask Nickolas Holloway for more information if necessary.

To post a message you must log in.