FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian ISP

 
 
LinkBack Thread Tools
 
Old 01-06-2008, 03:40 PM
"john_re"
 
Default access proxy for apt-get, ISP - howto?

How do I get the apt package system to go through my isp's http access
proxy?

====
BACKGROUND: METROPCS HTTP ACCESS PROXY
I'm trying to get the KUbuntu 7.10 apt system to work properly through
my internet connection. For example, doing an "apt-get update".

Metropcs (my isp) has an http access proxy, which any sw in my computer
wanting to get http must be informed to go through (wap.metropcs.net
port 3128), instead of just sending it's request directly to the net.
Metropcs's routers kill all http trafic directly to the internet, only
letting packets through that make use of the wap.metropcs.net proxy.

My internet connection is through the metropcs cell phone service. I've
got the connection established, and can browse web pages with firefox,
using the settings in firefox:
edit>preferences>advanced>network>connection.setti ngs>manual.proxy.configuration>:
HTTP.Proxy=wap.metropcs.net, port=3128

=====
GOAL: APT THROUGH METROPCS ACCESS PROXY, WHICH IS NOT AN "APT-PROXY"
So, now I want the apt system to work properly, so apt has to be
directed to use the wap.metropcs.net http access proxy.

Note that such an access proxy is NOT an "apt-proxy" (which is a local
proxy which can be set up to cache .deb packages for a local network.
See: ---
apt-proxy - Linux Man Page
apt-proxy is a python program designed to be run as an stand alone
server via twistd, and provides a clean, caching, intelligent proxy for
apt-get, ...
linux.com.hk/penguin/man/8/apt-proxy.html - 9k -
---

=====
APT CONFIGURATION SETTINGS - HOW? - "man apt.conf"
Trying to find the configuration setting to get apt to go through the
wap.metropcs.net access proxy, I located & read the man page for
apt.conf(5).

I see a section "THE ACQUIRE GROUP" with subsection "http" which says:

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

Is this the correct configurations setting? I've tried several settings
using this, & can't get it to work.

=====
FAILED SETTINGS
In /etc/apt/apt.conf.d there are about 10 configuration files, each file
name starting with two digits then text. I created a file there
"03metroproxy", and in it put the following lines, one at a time, but
none of these work.

1) Using in 03metroproxy the line:
http::Proxy "http://wap.metropcs.net:3128/";
gives multiple error messages, one error message for each http apt
source in /etc/apt/sources.list, of the format:
Err http://ppa.launchpad.net gutsy Release.gpg
Could not connect to ppa.launchpad.net:80 (91.189.90.217). - connect
(111 Connection refused)

2) Thinking maybe I had the format wrong, I changed the line in
03metropcs to:
http::Proxy::http://wap.metropcs.net:3128/
Which gave just one error
apt-get update
E: Syntax error /etc/apt/apt.conf.d/03metroproxy:3: Extra junk at end of
file

3) I also tried using the "toonel" proxy (client on my box runs in java
sw, which directs http traffic through wap.metropcs.net then through the
toonel proxy; it's main purpose is to compress http traffic for low
bandwith devices like http through cellphone wireless transmission), but
it didn't make any improvement. (www.toonel.net)

=====
YOUR SUGGESTIONS?
Do you know how to get this working???
--

john_re@fastmail.us

--
http://www.fastmail.fm - mmm... Fastmail...


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-06-2008, 03:59 PM
Adam McGreggor
 
Default access proxy for apt-get, ISP - howto?

On Sun, Jan 06, 2008 at 08:40:23AM -0800, john_re wrote:
> How do I get the apt package system to go through my isp's http access
> proxy?

[...]

> ====
> BACKGROUND: METROPCS HTTP ACCESS PROXY
> I'm trying to get the KUbuntu 7.10 apt system to work properly through
> my internet connection. For example, doing an "apt-get update".

Probably more a question for the kubuntu-users list, but still...

https://help.ubuntu.com/community/AptGetHowto is the first link in a
"Acquire::http::Proxy site:help.ubuntu.com" google-search

[...[

> =====
> FAILED SETTINGS
> In /etc/apt/apt.conf.d there are about 10 configuration files, each file
> name starting with two digits then text. I created a file there

[...]

But as you've asked here, try whacking the lines in /etc/apt/apt.conf


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org