Cara mengganti APT source list pada linux Debian
Ketika menginstall lewat CD atau DVD, package source list anda terdapat pada CD atu DVD yang anda pakai saat install, Untuk menggantinya menjadi apt repository online, edit file "/etc/apt/sources.list"
Paling mudah adalah menggunakan WinSCP pada windows,lalu dowble klik filenya
Ganti baris berikut
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-2 20180310-11:21]/ stretch contrib main
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-3 20180310-11:21]/ stretch contrib main
Menjadi
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main
deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main
Anda juga dapat menambahkan baris berikut, jika ingin package yang non-free
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
Kalau mau yang berlokasi di Indonesia:
deb http://mirror.unej.ac.id/debian/ stretch main
deb-src http://mirror.unej.ac.id/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://mirror.unej.ac.id/debian/ stretch-updates main
deb-src http://mirror.unej.ac.id/debian/ stretch-updates main
Selamat mencoba

Komentar
Posting Komentar