If you install the Kali Linux subsystem in windwos10 and update the system later, the following error occurs:
https: aptMethod::Configuration: could not load seccomp policy: Invalid argument
Generally, there is a problem with your source. You can try to modify your source. I cured this problem by modifying the source! (Note: The following commands are executed under root authority. You can switch to root authority through sudo su)
nano /etc/apt/sources.list
It is modified as follows (for reference only, you can test the available fast ones by yourself, but there are always errors - _ - | in China anyway):
#deb http://http.kali.org/kali kali-rolling main
deb http://ftp.ne.jp/Linux/packages/kali/kali kali-rolling main
Then execute the following command to update:
apt-get update && apt-get dist-upgrade && apt-get install wget -y
Then you can install apt install apt transport https and try to use the official source (deb https://http.kali.org/kali Kali rolling main).
After executing the above steps, you can execute the wget command. If the following information is returned, it means that your wget is installed!
root@mrxn :/# wget
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
I can run around 560KB/s on my side. If I feel slow, I can turn on VPN/proxy acceleration.
The meaning error occurs because when I want to get something from wget, I am prompted that the command is not found, and then I install wget. If it fails, I switch to the source and successfully install wget. If it succeeds, I need to download something from wget... There is this Japanese Sutra post!
Briefly remember how to install the kali Linux subsystem on Windows 10:
Refer to official documents: https://docs.microsoft.com/en-us/windows/wsl/install-win10
Win+Q searches the powershell, opens it as an administrator, and executes the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows - Subsystem-Linux
The official document says that after executing the command, restart according to the prompt. But my hint is RESTARTNEEED: FALSE.
so, I don't need to reboot@_@|| I can't remember clearly. Maybe I started the Linux subsystem before, Wangle!...
Insert a sentence: Start the Linux subsystem, and check the Linux subsystem check box on the control panel Programs and Functions Enable or disable Windows functions
Next, go to the app store to search for kali, and then install it! More than one hundred trillion, very fast. The next step is to solve the above problems...
Next, install xfce4,
wget https://raw.githubusercontent.com/Mr-xn/server-bash-script/master/xfce-xrdp.sh
sh xfce-xrdp.sh
It will be ready in about thirty minutes (slag book, better configuration will be faster).
Then use the command service xrdp start to start xrdp, and use the remote desktop connection 127.0.0.1:3390 locally to open the GUI interface.
The user name and password are the account password set when installing Kali.
After entering, select Use default config to load the default configuration.
Then enter the desktop: very simple
Using uname - a, you can see that the old version of kali is not the latest version.
When not needed, you can use service xrdp stop to stop the XRDP process
Conclusion: The Linux subsystem under Windows can be used, but it is not very good. However, the hardware requirements are relatively high, and the graphics card or memory is not high or causes slow operation... Of course, SSDs are necessary in this era!
Reference article link:
https://github.com/meefik/linuxdeploy/issues/869
https://whitedome.com.au/re4son/voodoo-kali/
https://www.rootlinks.net/2018/03/10/windows-10-wsl%E3%81%AEkali -linux%E3%81%AB%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E7%92%B0%E5%A2%83%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB/
https://docs.microsoft.com/en-us/windows/wsl/install-win10