Results 1 to 15 of 15

Thread: Kali on Windows 10 subsystem for linux

  1. #1
    Join Date
    2018-Jan
    Posts
    1

    Kali on Windows 10 subsystem for linux

    I am able to install everything following the steps from the Kali website. https://www.kali.org/tutorials/kali-...tem-for-linux/
    The first 2 portions are my pc specs. Once I try to update i get the errors below. I added screenshots as well. I am not sure which version the subsystem downloads, but the issue is with the update or trying to install any software. I get the same error.


    Hardware:

    Intel Core i7-6700K 8m Skylake Quad-Core 4.0 GHz
    MSI Z170A Gaming M7 LGA 1151 Intel Z170 HDMI Sata 6gb usb 301 atx intel motherboard
    WD Black 6TB Performance Desktop Hard Disk Drive
    Corsair Hydro Series H100i GTX water/liquid cpu cooler
    Corsair Axi series Ax1200i 1200w
    Samsung 950 ori m.2 512 gb pci-express 3.0 sd
    G.Skill Ripjaws V Series 32GB ddr4 2133

    OS:

    Windows 10 pro
    Eset AV


    Error:

    PS C:\WSL-Distribution-Switcher-master> bash
    root@UIW-Ragnar:/mnt/c/WSL-Distribution-Switcher-master# export Lang=C
    root@UIW-Ragnar:/mnt/c/WSL-Distribution-Switcher-master# apt-get update

    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Temporary failure resolving 'http.kali.org'
    Reading package lists... Done
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    root@UIW-Ragnar:/mnt/c/WSL-Distribution-Switcher-master#

  2. #2
    Join Date
    2018-Feb
    Posts
    1
    I'm having the same issue

    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument

    For the error "Temporary failure resolving 'http.kali.org'" you need to modify your resolv.conf to point to a public DNS server such as 8.8.8.8.

    echo nameserver 8.8.8.8 > /etc/resolv.conf

  3. #3
    Join Date
    2018-Feb
    Posts
    3
    I'm facing a similar problem. I just installed Kali WSL and I'm unable to update/upgrade it due an error with an expired key.
    I tried to update the key, but I can't because the GNUPG isn't installed, then I tried to install GNUPG, but it broke the system (I had to reinstall it).
    Do anybody know how to bypass this issue?

    root@host:/# cat /etc/issue
    Kali GNU/Linux Rolling \n \l
    root@host:/# apt-get update
    Get:1 http://mirror.pwnieexpress.com/kali kali-rolling InRelease [30.5 kB]
    Err:1 http://mirror.pwnieexpress.com/kali kali-rolling InRelease
    The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    Fetched 30.5 kB in 5s (6490 B/s)
    Reading package lists... Done
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirror.pwnieexpress.com/kali kali-rolling InRelease: The following signatures
    were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    root@host:/# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

    and then, if I execute the following, my system get broken:

    root@host:/# apt-get install gnupg

    Any ideas?

  4. #4
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Quote Originally Posted by SysF41L3r View Post
    I'm facing a similar problem. I just installed Kali WSL and I'm unable to update/upgrade it due an error with an expired key.
    I tried to update the key, but I can't because the GNUPG isn't installed, then I tried to install GNUPG, but it broke the system (I had to reinstall it).
    Do anybody know how to bypass this issue?

    root@host:/# cat /etc/issue
    Kali GNU/Linux Rolling \n \l
    root@host:/# apt-get update
    Get:1 http://mirror.pwnieexpress.com/kali kali-rolling InRelease [30.5 kB]
    Err:1 http://mirror.pwnieexpress.com/kali kali-rolling InRelease
    The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    Fetched 30.5 kB in 5s (6490 B/s)
    Reading package lists... Done
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirror.pwnieexpress.com/kali kali-rolling InRelease: The following signatures
    were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    root@host:/# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

    and then, if I execute the following, my system get broken:

    root@host:/# apt-get install gnupg

    Any ideas?
    See --- https://forums.kali.org/showthread.p...or-key-expired --- this is solved!!!

  5. #5
    Join Date
    2018-Feb
    Posts
    3
    Hello Bigbiz! Thanks for you reply!

    Actually I had already tried that... But it gave me the following output:

    root@host:/# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

    So then I tried to install gnupg, but it generates a lot of errors (due dependencies problems) and broke my WLS and I need reinstall it (three times ).
    Do you know if is there other way to install gnupg for Kali WLS? I mean, I know there is, but I don't know how.

  6. #6
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    What does your /etc/apt/sources.list look like? Echo

  7. #7
    Join Date
    2018-Feb
    Posts
    3
    Looks like that:

    root@host:/# cat /etc/apt/sources.list
    deb http://http.kali.org/kali kali-rolling main

  8. #8
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Quote Originally Posted by SysF41L3r View Post
    Looks like that:

    root@host:/# cat /etc/apt/sources.list
    deb http://http.kali.org/kali kali-rolling main
    apt-key adv --keyserver pgp.mit.edu --recv.keys (key#) this command is posted. Worked for me.

  9. #9
    Join Date
    2017-Mar
    Posts
    4
    Hi all,

    My issue is when I try to use python to get the kali pre-built docker. Here's a paste of the error and a list (ls) to ensure that get-prebuilt.py is in the directory.


    PS C:\WINDOWS\system32\WSL-Distribution-Switcher> python get-prebuilt.py kalilinux/kali-linux-docker
    (null): can't open file 'get-prebuilt.py': [Errno 2] No such file or directory
    PS C:\WINDOWS\system32\WSL-Distribution-Switcher> ls


    Directory: C:\WINDOWS\system32\WSL-Distribution-Switcher


    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    d----- 2018-02-21 12:09 PM ntfsea
    -a---- 2018-02-21 12:09 PM 82 .gitignore
    -a---- 2018-02-21 12:09 PM 3324 get-prebuilt.py
    -a---- 2018-02-21 12:09 PM 5380 get-source.py
    -a---- 2018-02-21 12:09 PM 10329 hook_postinstall_all.sample.sh
    -a---- 2018-02-21 12:09 PM 16990 install.py
    -a---- 2018-02-21 12:09 PM 1118 LICENSE.md
    -a---- 2018-02-21 12:09 PM 7762 ntfsea.py
    -a---- 2018-02-21 12:09 PM 13824 ntfsea_x64.dll
    -a---- 2018-02-21 12:09 PM 11264 ntfsea_x86.dll
    -a---- 2018-02-21 12:09 PM 1192 pyinstaller.spec
    -a---- 2018-02-21 12:09 PM 17827 README.md
    -a---- 2018-02-21 12:09 PM 4685 switch.py
    -a---- 2018-02-21 12:09 PM 15650 utils.py

  10. #10
    Join Date
    2018-Feb
    Posts
    1
    Quote Originally Posted by KrakenTech View Post
    Hi all,

    My issue is when I try to use python to get the kali pre-built docker. Here's a paste of the error and a list (ls) to ensure that get-prebuilt.py is in the directory.


    PS C:\WINDOWS\system32\WSL-Distribution-Switcher> python get-prebuilt.py kalilinux/kali-linux-docker
    (null): can't open file 'get-prebuilt.py': [Errno 2] No such file or directory
    PS C:\WINDOWS\system32\WSL-Distribution-Switcher> ls


    Directory: C:\WINDOWS\system32\WSL-Distribution-Switcher


    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    d----- 2018-02-21 12:09 PM ntfsea
    -a---- 2018-02-21 12:09 PM 82 .gitignore
    -a---- 2018-02-21 12:09 PM 3324 get-prebuilt.py
    -a---- 2018-02-21 12:09 PM 5380 get-source.py
    -a---- 2018-02-21 12:09 PM 10329 hook_postinstall_all.sample.sh
    -a---- 2018-02-21 12:09 PM 16990 install.py
    -a---- 2018-02-21 12:09 PM 1118 LICENSE.md
    -a---- 2018-02-21 12:09 PM 7762 ntfsea.py
    -a---- 2018-02-21 12:09 PM 13824 ntfsea_x64.dll
    -a---- 2018-02-21 12:09 PM 11264 ntfsea_x86.dll
    -a---- 2018-02-21 12:09 PM 1192 pyinstaller.spec
    -a---- 2018-02-21 12:09 PM 17827 README.md
    -a---- 2018-02-21 12:09 PM 4685 switch.py
    -a---- 2018-02-21 12:09 PM 15650 utils.py

    Same error, any update from anyone?

  11. #11
    Join Date
    2018-Mar
    Posts
    1
    Quote Originally Posted by SysF41L3r View Post
    Hello Bigbiz! Thanks for you reply!

    Actually I had already tried that... But it gave me the following output:

    root@host:/# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

    So then I tried to install gnupg, but it generates a lot of errors (due dependencies problems) and broke my WLS and I need reinstall it (three times ).
    Do you know if is there other way to install gnupg for Kali WLS? I mean, I know there is, but I don't know how.
    Hey SysF41L3r,

    I had the same issue you did. I found this fix:

    wget http://http.kali.org/kali/pool/main/...2018.1_all.deb
    apt install ./kali-archive-keyring_2018.1_all.deb


    Hope this works for you as well!

  12. #12
    Join Date
    2018-Mar
    Posts
    1
    Kali on Windows 10 subsystem for linux

    So I have followed the installation instructions which were pretty straight forward in terms of enabling WSL and after restarting actually installing Kali from the Windows 10 store. All fine and dandy right? Nope, wrong! The one thing I have always had a major pet hate and issue with when it comes to things like this is it not being fully tested before rolled out or preparing simple instructions for what to do with you encounter what it seems a lot of people are encountering right now which is a trove of error messages for example let's just take the first couple of very easy steps.

    apt-get update
    apt-get dist-upgrade

    What error does this throw? The following:

    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument

    Obviously you get this twice when typing in both of the simple apt-get commands and yes before some smart guy comes along and says "oh but you have to put SUDO at the beginning" - already done that too so save ya breath!

    Move on to the next steps from the oh so simple tutorial:

    apt-get install metasploit-framework

    Again errors:

    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Oh and finally for installing the Xfce4? Get a load of this:

    Resolving kali.sh (kali.sh)... 45.79.158.143
    Connecting to kali.sh (kali.sh)|45.79.158.143|:443... connected.
    ERROR: The certificate of ‘kali.sh’ is not trusted.
    ERROR: The certificate of ‘kali.sh’ hasn't got a known issuer.

    Fresh install of the Kali image from Windows 10 Store so no other commands or anything have been input just the simple set up of username and password.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->

    Anyone wanna pitch in with some actual useful tutorial or answers to these issues? I can't be the only one that is having them and someone somewhere must know how to get over them? Christ if it is this difficult just to get Kali Linux up and running so you can use the GNU and tools, they might as well just give it up now and pack in all these ideas of running on WSL.

    Don't roll things out if you can't bring a fully working, fairly simple to install package or idea to the table because to me that is like the boss saying "Gary got that big pres tomorrow, you got 18 hours to come up with something good and it better work" only for the said employee to come rolling into the presentation trying to dazzle all the corporate heads with jargon knowing full well he don't have nothing that actually works.

    Will things work 100% **** no, that would mean perfection and that isn't possible in this day and age even now, however 95% working now that is achievable if people actually bother to test things thoroughly first instead of trying for weeks on end to get Microsoft to let him have it on Windows Store and the basic bash works but everything else doesn't!

  13. #13
    Join Date
    2018-Feb
    Posts
    12
    Quote Originally Posted by kalinoob80 View Post
    Kali on Windows 10 subsystem for linux

    So I have followed the installation instructions which were pretty straight forward in terms of enabling WSL and after restarting actually installing Kali from the Windows 10 store. All fine and dandy right? Nope, wrong! The one thing I have always had a major pet hate and issue with when it comes to things like this is it not being fully tested before rolled out or preparing simple instructions for what to do with you encounter what it seems a lot of people are encountering right now which is a trove of error messages for example let's just take the first couple of very easy steps.

    apt-get update
    apt-get dist-upgrade

    What error does this throw? The following:

    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument

    Obviously you get this twice when typing in both of the simple apt-get commands and yes before some smart guy comes along and says "oh but you have to put SUDO at the beginning" - already done that too so save ya breath!

    Move on to the next steps from the oh so simple tutorial:

    apt-get install metasploit-framework

    Again errors:

    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Oh and finally for installing the Xfce4? Get a load of this:

    Resolving kali.sh (kali.sh)... 45.79.158.143
    Connecting to kali.sh (kali.sh)|45.79.158.143|:443... connected.
    ERROR: The certificate of ‘kali.sh’ is not trusted.
    ERROR: The certificate of ‘kali.sh’ hasn't got a known issuer.

    Fresh install of the Kali image from Windows 10 Store so no other commands or anything have been input just the simple set up of username and password.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->

    Anyone wanna pitch in with some actual useful tutorial or answers to these issues? I can't be the only one that is having them and someone somewhere must know how to get over them? Christ if it is this difficult just to get Kali Linux up and running so you can use the GNU and tools, they might as well just give it up now and pack in all these ideas of running on WSL.

    Don't roll things out if you can't bring a fully working, fairly simple to install package or idea to the table because to me that is like the boss saying "Gary got that big pres tomorrow, you got 18 hours to come up with something good and it better work" only for the said employee to come rolling into the presentation trying to dazzle all the corporate heads with jargon knowing full well he don't have nothing that actually works.

    Will things work 100% **** no, that would mean perfection and that isn't possible in this day and age even now, however 95% working now that is achievable if people actually bother to test things thoroughly first instead of trying for weeks on end to get Microsoft to let him have it on Windows Store and the basic bash works but everything else doesn't!
    Launch Kali WSL via an Administrative command prompt in Windows. I had the same issues until I ran an elevated command prompt in windows to launch Kali.

    Ultimately, I uninstalled the WSL because it was simply too slow to be functional even for mundane task for me. I just wanted to run a bare bones Kali with libreoffice on it for my Windows 10 machine, but it couldn't even keep up with my typing. Given, I'm not running the highest spec-ed machine, but I don't have that kind of lag in Windows 10 nor when I install Kali directly.

  14. #14
    Join Date
    2018-Apr
    Posts
    1
    There seems to be an issue with the seccomp policy in WSL. It shows a warning "W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument", which is not an error. The current workaround is to execute the following command:

    echo 'apt::sandbox::seccomp "false";'> /etc/apt/apt.conf.d/999seccomp

    Thanks to R3dB0b. This was originally posted on GitHub.

  15. #15
    Join Date
    2018-Jun
    Posts
    1
    Quote Originally Posted by mr.babadook View Post
    Hey SysF41L3r,

    I had the same issue you did. I found this fix:

    wget http://http.kali.org/kali/pool/main/...2018.1_all.deb
    apt install ./kali-archive-keyring_2018.1_all.deb


    Hope this works for you as well!

    Thank you very much!

Similar Threads

  1. Installing Kali Linux on windows subsystem minimal install need help
    By Tyler Dotson in forum Installing Archive
    Replies: 1
    Last Post: 2021-10-28, 09:51
  2. kali installed in Windows-Subsystem for linux on on Windows 11
    By AxelMahle in forum Installing Archive
    Replies: 0
    Last Post: 2021-10-28, 09:49
  3. Replies: 0
    Last Post: 2020-03-06, 05:49
  4. Kali on Windows Subsystem for Linux
    By vital in forum Installing Archive
    Replies: 5
    Last Post: 2018-12-31, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •