Can the update-manager be redirected to proxy ports for downloads?

Asked by Maksym Mykhaylenko

I am in the college and they are have a proxy server here. The setting for it are: 172.18.0.1 :800
The problem is that they are blocking the ports which are needed for some downloads and updates. I was wondering if there is a way of redirecting the updates (downloads) through other ports? That would be of a great use to many people.

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

Yes, use the synaptic program from the administration menu.

System->Administration ->Synaptic package manager

You will be promted for your password, then:

Settings -> Preferences -> Network -> Manual Proxy Configuration

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Open a terminal and type:

gksudo gedit /etc/apt/apt.conf.d/proxy

put a row inside it:

Acquire::http::proxy "http://proxyuser:proxypassword@proxy_ip:proxy_port/";

Example:

The settings in my network ( i use apt-cacher-ng deb proxy ) are:

Acquire::http::proxy "http://192.168.1.40:3128/";

Then still using terminal type:

sudo apt-get update
sudo apt-get dist-upgrade

the system will ask you a password: give your user password, you will not see nothing when you type it, then press enter

If it works please i think you must then set the proxy into your

System→Administration→Package manager (Synaptic)

under Settings→Preferences→Network

Revision history for this message
Maksym Mykhaylenko (mmykhaylenko) said :
#3

First of all thank you very much for answering on such a short-notice.
I think I have done as you said filling in the line in "gksudo gedit /etc/apt/apt.conf.d/proxy". Saved that. All my proxy setting in the Synapic update manager are configered and then when I tried to update it through the terminal it have actually started downloading but when it reaches 20% it either sends an error message or simply moves on to the next on leaving the other one behind with a little sign "ign" which i assume means "ignored".

Any more ideas?

I can send a screenshot if needed.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Please open a terminal and type:

sudo apt-get update

Then copy and paste here the result

Revision history for this message
Maksym Mykhaylenko (mmykhaylenko) said :
#5

smaksym@maksym-laptop:~$ sudo apr-get update
[sudo] password for maksym:
sudo: apr-get: command not found
maksym@maksym-laptop:~$ sudo apt-get update
Ign http://gb.archive.ubuntu.com lucid Release.gpg
Ign cdrom://Kubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)/ maverick/main Translation-en_GB
Ign cdrom://Kubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)/ maverick/restricted Translation-en_GB
Ign cdrom://Ubuntu 10.04.1 LTS _Lucid Lynx_ - Release i386 (20100816.1)/ lucid/main Translation-en_GB
Ign cdrom://Ubuntu 10.04.1 LTS _Lucid Lynx_ - Release i386 (20100816.1)/ lucid/restricted Translation-en_GB
Ign http://archive.canonical.com lucid Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB
Ign http://archive.canonical.com lucid Release
Ign http://archive.canonical.com lucid/partner Packages
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
Ign http://archive.canonical.com lucid/partner Sources
Ign http://gb.archive.ubuntu.com lucid-updates Release.gpg
Ign http://archive.canonical.com lucid/partner Packages
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Ign http://archive.canonical.com lucid/partner Sources
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Err http://archive.canonical.com lucid/partner Packages
  407 Proxy Authentication Required
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Err http://archive.canonical.com lucid/partner Sources
  407 Proxy Authentication Required
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com lucid-security Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com lucid-proposed Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-proposed/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-proposed/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-proposed/multiverse Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-proposed/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com lucid Release
Ign http://gb.archive.ubuntu.com lucid-updates Release
Ign http://gb.archive.ubuntu.com lucid-security Release
Ign http://gb.archive.ubuntu.com lucid-proposed Release
Ign http://gb.archive.ubuntu.com lucid/main Packages
Ign http://gb.archive.ubuntu.com lucid/restricted Packages
Ign http://gb.archive.ubuntu.com lucid/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid/restricted Sources
Ign http://gb.archive.ubuntu.com lucid/main Sources
Ign http://gb.archive.ubuntu.com lucid/universe Sources
Ign http://gb.archive.ubuntu.com lucid/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid/universe Packages
Ign http://gb.archive.ubuntu.com lucid-updates/main Packages
Ign http://gb.archive.ubuntu.com lucid-updates/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-updates/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-updates/main Sources
Ign http://gb.archive.ubuntu.com lucid-updates/universe Sources
Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-updates/universe Packages
Ign http://gb.archive.ubuntu.com lucid-security/main Packages
Ign http://gb.archive.ubuntu.com lucid-security/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-security/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-security/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-security/main Sources
Ign http://gb.archive.ubuntu.com lucid-security/universe Sources
Ign http://gb.archive.ubuntu.com lucid-security/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-security/universe Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/main Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/universe Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/main Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/universe Sources
Ign http://gb.archive.ubuntu.com lucid/main Packages
Ign http://gb.archive.ubuntu.com lucid/restricted Packages
Ign http://gb.archive.ubuntu.com lucid/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid/restricted Sources
Ign http://gb.archive.ubuntu.com lucid/main Sources
Ign http://gb.archive.ubuntu.com lucid/universe Sources
Ign http://gb.archive.ubuntu.com lucid/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid/universe Packages
Ign http://gb.archive.ubuntu.com lucid-updates/main Packages
Ign http://gb.archive.ubuntu.com lucid-updates/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-updates/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-updates/main Sources
Ign http://gb.archive.ubuntu.com lucid-updates/universe Sources
Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-updates/universe Packages
Ign http://gb.archive.ubuntu.com lucid-security/main Packages
Ign http://gb.archive.ubuntu.com lucid-security/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-security/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-security/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-security/main Sources
Ign http://gb.archive.ubuntu.com lucid-security/universe Sources
Ign http://gb.archive.ubuntu.com lucid-security/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-security/universe Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/restricted Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/main Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/multiverse Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/universe Packages
Ign http://gb.archive.ubuntu.com lucid-proposed/restricted Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/main Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/multiverse Sources
Ign http://gb.archive.ubuntu.com lucid-proposed/universe Sources
Err http://gb.archive.ubuntu.com lucid/main Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/restricted Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/multiverse Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/restricted Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/main Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/universe Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/multiverse Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid/universe Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/main Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/restricted Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/restricted Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/main Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/universe Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-updates/universe Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/main Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/restricted Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/multiverse Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/restricted Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/main Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/universe Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/multiverse Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-security/universe Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/restricted Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/main Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/multiverse Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/universe Packages
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/restricted Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/main Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/multiverse Sources
  407 Proxy Authentication Required
Err http://gb.archive.ubuntu.com lucid-proposed/universe Sources
  407 Proxy Authentication Required
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/lucid/partner/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/lucid/partner/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/universe/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/main/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/main/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/universe/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/restricted/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/main/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/multiverse/source/Sources.gz 407 Proxy Authentication Required

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-proposed/universe/source/Sources.gz 407 Proxy Authentication Required

E: Some index files failed to download, they have been ignored, or old ones used instead.

Revision history for this message
Maksym Mykhaylenko (mmykhaylenko) said :
#6

This what I get from trying to update, the other problem which is arissing from now on is when I try to edit (proxy) document which I access trough (gksudo gedit etc/apt/apt.conf.d/proxy) does not save the changes any more. I am running from an administrator account but it still said that I don't have enaugh rights to do this changes.

I have undone all the proxy setting, thinking that it might then let me edit the file, but no. I still have this problem.

Any ideas?

Revision history for this message
mrabaey (marc-rabaey) said :
#7

on my 10.04 LTS I had to add the line
Acquire::http::proxy "http://uid:pwd@server:port/";
Acquire::ftp::proxy "ftp://http://uid:pwd@server:port/";
Acquire::https::proxy "https://http://uid:pwd@server:port/"

into /etc/apt/apt.conf

and then it worked.

uid is your userid for the proxyserver
pwd your passwor
server the address of your proxyserver
port the port at your proxyserver requesting calls for outside going requests

Can you help with this problem?

Provide an answer of your own, or ask Maksym Mykhaylenko for more information if necessary.

To post a message you must log in.