Fedora This forum is for the discussion of the Fedora Project. |
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.
|
|
12-13-2004, 02:51 AM
|
#1
|
Member
Registered: Jan 2004
Location: Singapore
Distribution: Main Distros: Ubuntu & SUSE, OTHERS: MEPIS, FC, Mandriva, Linspire, Xandros, Knoppix
Posts: 58
Rep:
|
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
|
|
|
12-15-2004, 09:32 AM
|
#2
|
Member
Registered: May 2004
Posts: 52
Rep:
|
define in apt.conf
Acquire {
Retries "0";
HTTP {
Proxy "http://proxy.mystarhub.com.sg:8080";
};
};
Last edited by MarioT; 12-15-2004 at 09:33 AM.
|
|
|
12-16-2004, 03:59 AM
|
#3
|
Member
Registered: Jan 2004
Location: Singapore
Distribution: Main Distros: Ubuntu & SUSE, OTHERS: MEPIS, FC, Mandriva, Linspire, Xandros, Knoppix
Posts: 58
Original Poster
Rep:
|
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
|
|
|
08-15-2011, 07:48 AM
|
#4
|
LQ Newbie
Registered: Aug 2011
Posts: 1
Rep:
|
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.
|
|
|
08-15-2011, 07:53 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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
|
|
|
08-15-2011, 08:08 AM
|
#6
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Are you sure you want to ask a Ubuntu question in the Fedora forum?
|
|
|
08-15-2011, 08:26 AM
|
#7
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
LOL, that question was asked in 2004, muditagarwal88 revived an old thread.
|
|
|
08-15-2011, 08:42 AM
|
#8
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Ha! Never noticed the thread date.
muditagarwal88
Press the Report button and ask for your question to be moved to the Ubuntu forum.
|
|
|
12-18-2011, 03:35 AM
|
#9
|
LQ Newbie
Registered: Jul 2007
Distribution: Gentoo Linux
Posts: 3
Rep:
|
Quote:
Originally Posted by MarioT
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.
|
|
|
10-09-2013, 04:24 AM
|
#10
|
Member
Registered: Dec 2004
Location: Haifa
Distribution: Fedora Core 4, Kubuntu
Posts: 235
Rep:
|
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 03:20 AM.
|
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
|
|