-   Fedora (
-   -   How to set up proxy in Apt-Get's apt.conf? (

rykel 12-13-2004 01: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 (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?




MarioT 12-15-2004 08:32 AM

define in apt.conf

Acquire {
Retries "0";
Proxy "";

rykel 12-16-2004 02: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,


muditagarwal88 08-15-2011 06: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 06: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

sudo YOUR_FAVORITE_TEXT_EDITOR_HERE /etc/apt/apt.conf

brianL 08-15-2011 07:08 AM

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

TobiSGD 08-15-2011 07:26 AM

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

brianL 08-15-2011 07:42 AM

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

penguin359 12-18-2011 02:35 AM


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

Acquire {
Retries "0";
Proxy "";

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

Acquire::http::Proxy "";
Retries defaults to 0 so it isn't needed.

dotancohen 10-09-2013 03: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 02:58 PM.