Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-24-2003, 08:12 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
apt-get through a proxy connection?
Hey all,
just wondering how in the world I can get apt-get to work through my internet connection, which runs through a proxy server to my windows machine...
Using pretty standard ports,
http: 8080
https 8081
ftp 8021
socks 1021
etc... I can also set up ports for pass-through, but how do I get apt-get to connect through that proxy server?
Thanks 
-Shade
|
|
|
06-25-2003, 06:33 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Original Poster
Rep:
|
bumpity... I'd love to be able to do this
-Shade
|
|
|
06-29-2003, 09:15 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Original Poster
Rep:
|
Just one more bump to see if anyone has an answer....
|
|
|
06-29-2003, 11:45 PM
|
#4
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Try setting the HTTP_PROXY enviro variable. You do this by typing: "export HTTP_PROXY=proxyserver.com  ort". Substitute FTP for the HTTP in the previous statement to do the same for the ftp proxies.
|
|
|
06-29-2003, 11:48 PM
|
#5
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Sorry I jusr realised that a colon (  and a p make a smiley. So where you see the smiley above substitute in a colon followed by a p with no spaces.
|
|
|
06-29-2003, 11:49 PM
|
#6
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
GODDAM SMILIES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
07-01-2003, 08:23 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Original Poster
Rep:
|
Actually, that environment is already set, I can browse with lynx, etc.
I will see if wget works through it as well.
But apt-get is just not working...
-Shade
|
|
|
07-01-2003, 08:44 PM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Original Poster
Rep:
|
Hot DAMN!
After a couple hours of searching obscure web pages through google, I came up with something from a very old post on another bbs.
Adding this line to apt.conf did it. I couldn't find this anywhere in the documentation or manpages. Maybe I missed it, but totally didn't see this.
Acquire::http::Proxy "http://proxy.server.here:8080/";
and that's all
-Shade
|
|
|
09-13-2003, 11:21 AM
|
#9
|
Member
Registered: Jun 2003
Location: Slovakia
Distribution: Debian unstable i586
Posts: 38
Rep:
|
I got it
It seems for me apt-get is ignoring apt.conf configuration.
Even if I specify the proxy servers in apt.conf, nothing happens.
Must set env. vars :
$ export ftp_proxy=http://192.168.1.1:80/
$ export http_proxy=http://192.168.1.1:80/
$ apt-get update
...
Bad thing :
$ export http_proxy=192.168.1.1:80/
$ apt-get update
will result in:
> 0% [Connecting to 80]
and some error message
Note : Internet connection in our university residence is weird. No gateway, no DNS, just proxy.

|
|
|
All times are GMT -5. The time now is 10:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|