Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Installation & Upgrades
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Installation & Upgrades
For questions about upgrading and installation of your new Ubuntu OS.

 
Thread Tools Display Modes
Old April 15th, 2005   #1
Halfdan
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 3
apt-get & Synaptic

I'm sitting behind a proxy. The emailing and web browsing is OK, but I can't update the system nor by Synaptic nor via terminal.

407 Proxy Authentication Required - the server and the port number is OK, but where and how can I give the username and password for it?

The problem is, that my proxy username is the full email address with @? What is the syntax?

THX, Halfdan absolutely newbie
Halfdan is offline   Reply With Quote
Old April 15th, 2005   #2
speedman
Gee! These Aren't Roasted!
 
speedman's Avatar
 
Join Date: Apr 2005
Location: ON, TN, FL
Beans: 160
Re: apt-get & Synaptic

You will need to create an apt config file here:

/etc/apt/apt.conf

... and specify the proxy/user settings in that file.

From man apt.conf:

http HTTP URIs; http:roxy is the default http proxy to use. It is
in the standard form of http://[[user][***]@]host[ort]/. Per
host proxies can also be specified by using the form
http:roxy::<host> with the special keyword DIRECT meaning to
use no proxies. The http_proxy environment variable will over‐
ride all settings.

Specific apt.conf config examples can be found here:

/usr/share/doc/apt/examples/configure-index.gz

Google can also shed some light for you:

http://www.google.com/search?hl=en&l...th&btnG=Search

HTH


Regards,

SM
speedman is offline   Reply With Quote
Old April 15th, 2005   #3
PeteJ
First Cup of Ubuntu
 
Join Date: Feb 2005
Beans: 10
Re: apt-get & Synaptic

My proxy is for http only, following:
A parent's guide to Linux Web filtering, by Joe Bolin
http://desktops.linux.com/desktops/0...&tid=99&tid=13

I couldn't get apt--get to get through the proxy using various tools including apt-setup, export http_proxy, and editing /etc/apt/apt.conf.d/70debconf.

So...I'm experimenting with upgrading from Warty to Hoary by replacing the http with ftp in my /etc/apt/sources.list repository. It's Get-ting pkg 390 at the moment, with about 30 minutes to go.

Is there any problem with that ftp replacement trick?

I copied the below sources.list from somewhere.

I noticed that deb ftp://jrfonseca.dyndns.org/debian/ ./ doesn't accept ftp--updating my java via ftp is a project for another day.

Thanks,
Pete

petjal@ubuntu:~ $ cat /etc/apt/sources.list
## The following lines pertain to supported packages:
deb ftp://archive.ubuntu.com/ubuntu/ hoary main restricted
deb-src ftp://archive.ubuntu.com/ubuntu/ hoary main restricted

## The following lines pertain to security updates:
deb ftp://security.ubuntu.com/ubuntu/ hoary-security main restricted
deb-src ftp://security.ubuntu.com/ubuntu/ hoary-security main restricted

## Uncomment after release to continue getting updates:
deb ftp://archive.ubuntu.com/ubuntu/ hoary-updates main restricted

## IMPORTANT:
## Software from the following repositories are ENTIRELY UNSUPPORTED by
## the Ubuntu team, and may not be under a free licence. This means that
## software in these repositories WILL NOT receive any review or updates
## from the Ubuntu security team either. These packages are provided as a
## service to our users and nothing more.

## Uncomment the following two lines to add software from the 'universe' and
## 'multiverse' repositories:
deb ftp://archive.ubuntu.com/ubuntu/ hoary universe multiverse
deb-src ftp://archive.ubuntu.com/ubuntu/ hoary universe multiverse

## Uncomment the following line to add Java software:
deb ftp://jrfonseca.dyndns.org/debian/ ./

petjal@ubuntu:~ $
PeteJ is offline   Reply With Quote
Old April 18th, 2005   #4
Halfdan
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 3
Re: apt-get & Synaptic

I've made the changes, made 01acquire file in apt.conf.d folder, but no succes...

What can I do in that case, if my firewall-login is xy@mail.zz.

http_proxy=http://xy@mail.zz***@proxyort/ ??? If I define this, the answer: Couldn't resolve host!
Halfdan is offline   Reply With Quote
Old April 21st, 2005   #5
Halfdan
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 3
Re: apt-get & Synaptic

Succes, the apostrophes

Acquire::http:roxy "http://"xx@yy.zz":"password"@myproxy:3128"
Halfdan is offline   Reply With Quote
Old May 27th, 2005   #6
ReefShark
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 1
Re: apt-get & Synaptic

I've tried the above...
Code:
/etc/apt/apt.conf.d/01aquire
acquire::http::proxy "http://username:pwd@proxyserver:port";
... and a view variations on the theme

When I try to update (as root) I get the errors:
Code:
Err http://security.ubuntu.com hoary-security/main Packages
  502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL).  )
Err http://security.ubuntu.com hoary-security/restricted Packages
  502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL).  )
Err http://security.ubuntu.com hoary-security/universe Packages
  502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL).  )
Err http://security.ubuntu.com hoary-security/multiverse Packages
  502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL).  )
etc...

What am I doing wrong? I can connect to the internet with the same proxysettings (in Firefox) just fine, even the security.ubuntu.com (and any other) website.
ReefShark is offline   Reply With Quote
Old June 20th, 2005   #7
x3ja
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 2
Re: apt-get & Synaptic

I have had the same error (ISA Server denies the specified URL). I have tried all the above plus I tried something from http://wiki.colinux.org/cgi-bin/coLinuxIAQ#A3 where it suggests:

export http_proxy=http://domainname\\userassword@YOUR_PROXY:8080/

But that doesn't work for me either (I've even tried domainname.local)

Any more ideas?
x3ja is offline   Reply With Quote
Old January 11th, 2006   #8
x3ja
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 2
Talking Re: apt-get & Synaptic

FINALLY found my way around this using this script to be a proxy to my ISA Server...
http://ntlmaps.sourceforge.net/.

WOO!
x3ja is offline   Reply With Quote
Old December 28th, 2006   #9
ailanpair
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 2
Re: apt-get & Synaptic

WOW!!! It works across a Novell network too! THANKS HEAPS!!!
ailanpair is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:18 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry