LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   How to set up proxy in Apt-Get's apt.conf? (http://www.linuxquestions.org/questions/fedora-35/how-to-set-up-proxy-in-apt-gets-apt-conf-265793/)

rykel 12-13-2004 02:51 AM

How to set up proxy in Apt-Get's apt.conf?
 
Hi there,

I am using Fedora Core 3, and have just installed Apt-Get from FreshRPMs.

However, when I try to download the package listings from the repositories, it does not work.

I am using dial-up, and I believe that apt.conf is not configured to use my ISP proxy. (yes, no problem surfing the net etc.)

My current ISP proxy is http://proxy.mystarhub.com.sg (port: 8080).

Could you please show me how to edit my apt.conf file in order to use the proxy?

Or is there another possible reason why apt-get cannot seem to connect to the freshrpms servers?

Thanks!!!


Regards,

Rykel
Singapore

MarioT 12-15-2004 09:32 AM

define in apt.conf

Acquire {
Retries "0";
HTTP {
Proxy "http://proxy.mystarhub.com.sg:8080";
};
};

rykel 12-16-2004 03:59 AM

It works - thanks buddy!!!

tat was sooo simple... my problem was tat i tried to state my proxy AFTER tat semi-colon... :P

btw, i am now taking the effort to learn how i may install programs WITHOUT using RPMs, OR to create my own RPMs like what Thomas Chung from FedoraNews taught... (yupp, managed to create working copies of firefox 1.0 and thunderbird for FC1)... so wish me success!


best regards,

rykel
singapore

muditagarwal88 08-15-2011 07:48 AM

user type changed to root
 
i am using ubuntu 11.04 and i am new to linux.. now i have changed my user type from custom to administrator...
and i want to access apt.conf to add proxy informtion. which i cant not.. it is a readonly file.. how can i change it back.

is there any difference between administrator and root.. because the file says it as read and write permission to root.

TobiSGD 08-15-2011 07:53 AM

Yes, there are differences between root and administrator. I don't know which, but being an administrator is not the same as being root. if you want to edit that file you have to do it as root with
Code:

sudo YOUR_FAVORITE_TEXT_EDITOR_HERE /etc/apt/apt.conf

brianL 08-15-2011 08:08 AM

Are you sure you want to ask a Ubuntu question in the Fedora forum? :)

TobiSGD 08-15-2011 08:26 AM

LOL, that question was asked in 2004, muditagarwal88 revived an old thread.

brianL 08-15-2011 08:42 AM

Ha! Never noticed the thread date. :)
muditagarwal88
Press the Report button and ask for your question to be moved to the Ubuntu forum.

penguin359 12-18-2011 03:35 AM

Quote:

Originally Posted by MarioT (Post 1351786)
define in apt.conf

Acquire {
Retries "0";
HTTP {
Proxy "http://proxy.mystarhub.com.sg:8080";
};
};

Since this thread has been revived, I thought I'd post a shorter, but identical answer to what MarioT wrote. Try just using this:
Code:

Acquire::http::Proxy "http://proxy.mystarhub.com.sg:8080";
Retries defaults to 0 so it isn't needed.

dotancohen 10-09-2013 04:24 AM

Do note that the default apt-cacher port is 3142, not 8080 as suggested by the posts above.


All times are GMT -5. The time now is 05:06 AM.