Setting Proxy Repository APT di Ubuntu
Linux, Ubuntu January 28th, 2010
Tadi sempet bingung kenapa saat sudo apt-get update (baca: update) repository ubuntu kok masih lama. Setelah tanya saya sini akhirnya bang yogap memberikan solusi yang baik dan benar…
Berikut ini tata caranya… klo menyesatkan jangan ditiru.. hehe.. :p
Copy apt.conf di /usr/share/doc/apt/examples/apt.conf
vq@vq-eekucing:~$ sudo cp /usr/share/doc/apt/examples/apt.conf /etc/apt/apt.conf
Kemudian edit apt.conf
vq@vq-eekucing:~$ sudo nano /etc/apt/apt.conf

Pasang proxy seperti ini:
// $Id: apt.conf,v 1.43 1999/12/06 02:19:38 jgg Exp $
/* This file is a sample configuration file with a few harmless sample
options.
*/APT
{
// Options for apt-get
Get
{
Download-Only “false”;
};};
// Options for the downloading routines
Acquire
{
Retries “0″;
http::Proxy “http://10.2.97.10:8080″;;
};// Things that effect the APT dselect method
DSelect
{
Clean “auto”; // always|auto|prompt|never
};DPkg
{
// Probably don’t want to use force-downgrade..
Options {“–force-overwrite”;}
}
keterangan:
http://10.2.97.10:8080 -> proxy yang di gunakan di kantor saya.
Sumber: http://okto.silaban.net/2005/05/general/setting-proxy-untuk-apt-repesitory-ubuntu-linux/

About
