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/

0 comments:
Post a Comment