Custom Search

Kamis, 26 Juni 2008

diBLakang proxY nyetINg cLient

Ubuntu memang memiliki fitur-fitur yang memudahkan user untuk memakainya, salah satunya adalah langsung menggunakan apt-get update untuk meng-update ubuntu.
Tetapi untuk melakukan update secara langsung bagi komputer Client yang berada di belakang proxy, maka diperlukan sedikit setting-an, dikarenakan apt atau synaptic harus melewati proxy.

1. Permasalahan.

    Apabila melakukan update terjadi error seperti potongan berikut :

x-man@localhost:~$ sudo apt-get update
Err http://id.archive.ubuntu.com breezy Release.gpg
Could not connect to archive.ubuntu.com:80 (1.0.0.0), connection timed out
Failed to fetch http://id.archive.ubuntu.com/ubuntu/dis...zy/Release.gpg Could
not connect to archive.ubuntu.com:80 (1.0.0.0), connection timed out Reading package lists... Done
W: Couldn't stat source package list http://id.archive.ubuntu.com breezy/main
Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_main_binary i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://id.archive.ubuntu.com
breezy/restricted Packages
(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_restricted_
binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones
used instead.

    Maka itu bukan kesalahan file repository sepenuhnya…(catatan : apabila file repository sudah di edit sesuai aslinya)

2. Pemecahan/ Solusi

    Untuk mengatasi failure yang terjadi seperti diatas maka perlu membuat file proxy yang digunakan sebagai preferensi untuk meng-update. Berikut langkah-langkahnya :

x-man@localhost:~$ sudo gedit /etc/apt/apt.conf.d/proxy

    maka akan keluar gedit dengan file kosong, isikan dengan :

Acquire::http::Proxy "http://no_ip_proxy_kamu : Port_yang_digunakan";

    kemudian simpan.

3. Finishing.

    Setting proxy telah selesai. Refresh nautilus-nya, update tinggal di jalankan dech…..:)
    Selamat meng-update Ubuntu yang penuh pesona….hehehhe…..

Catatan: permasalahan akan bertambah apabila proxy meminta authentificasi untuk username dan password.




Dukungan Sponsor