untuk menambahkan repository kali rolling ke dalam WSL ikuti cara berikut:
edit /etc/apt/source.list atau buat directory baru dalam /etc/apt/source.list.d/kali.list, lalu tambahkan line berikut:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
setelah itu save
lalu jalankan apt-get update yang nanti akan muncul error:
root@DESKTOP-M8GIURV:~# apt-fast update
Get:1 http://kambing.ui.ac.id/ubuntu xenial InRelease [247 kB]
Get:2 http://kambing.ui.ac.id/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://kambing.ui.ac.id/ubuntu xenial-security InRelease [102 kB]
Get:5 http://kambing.ui.ac.id/ubuntu xenial-backports InRelease [102 kB]
Get:6 http://kambing.ui.ac.id/ubuntu xenial-proposed InRelease [253 kB]
Get:4 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Ign:4 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease
Fetched 837 kB in 2s (309 kB/s)
Reading package lists... Done
W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
W: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
jalankan command berikut:
gpg --keyserver keyserver.ubuntu.com --recv-key ED444FF07D8D0BF6
key samakan dengan error yang diberikan pada saat apt-get update dalam hal ini key adalah ED444FF07D8D0BF6
lalu jalankan:
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
coba lagi untuk mengupdate repo dengan apt-get update
edit /etc/apt/source.list atau buat directory baru dalam /etc/apt/source.list.d/kali.list, lalu tambahkan line berikut:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
setelah itu save
lalu jalankan apt-get update yang nanti akan muncul error:
root@DESKTOP-M8GIURV:~# apt-fast update
Get:1 http://kambing.ui.ac.id/ubuntu xenial InRelease [247 kB]
Get:2 http://kambing.ui.ac.id/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://kambing.ui.ac.id/ubuntu xenial-security InRelease [102 kB]
Get:5 http://kambing.ui.ac.id/ubuntu xenial-backports InRelease [102 kB]
Get:6 http://kambing.ui.ac.id/ubuntu xenial-proposed InRelease [253 kB]
Get:4 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Ign:4 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease
Fetched 837 kB in 2s (309 kB/s)
Reading package lists... Done
W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
W: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
jalankan command berikut:
gpg --keyserver keyserver.ubuntu.com --recv-key ED444FF07D8D0BF6
key samakan dengan error yang diberikan pada saat apt-get update dalam hal ini key adalah ED444FF07D8D0BF6
lalu jalankan:
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
coba lagi untuk mengupdate repo dengan apt-get update
Comments