Windows10 Installing Kali Subsystem&&https: aptMethod:: Configuration: could not load seccomp policy: Invalid argument Solution - Mrxn's Blog
«

Windows 10 Installing Kali Subsystem&&https: aptMethod:: Configuration: could not load seccomp policy: Invalid argument Solution

admin Published at 15:50 on March 19, 2018 10451 readings Linux   


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. powershell.png

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

 control.png

 linuxs.png

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).

  01.png 02.png 03.png

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.

 start.png

  local.png

The user name and password are the account password set when installing Kali.

 login.png

After entering, select Use default config to load the default configuration.

 desktop-default-config.png

Then enter the desktop: very simple

 desktop.png

Using uname - a, you can see that the old version of kali is not the latest version.

 last.png

When not needed, you can use service xrdp stop to stop the XRDP process

 stop.png

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

Kali windows10

copyright: Mrxn's Blog
Article Title: Windows 10 Installing Kali Subsystem&&https: aptMethod:: Configuration: could not load seccomp policy: Invalid argument Solution
Article link: https://mrxn.net/Linux/windows10-install-wsl-kali.html
All articles on this website are original, and please do not use them for any commercial purpose without authorization

Scan QR code and read on mobile phone

Recommended reading:

18 comments received
 avatar
king 2018-05-22 20:26
Great! This source is easy to use
reply
 commentator
Mrxn 2018-05-28 12:01
@Wang: You're welcome!
reply
 avatar
Zhou Songsong 2018-04-02 14:24
How awesome the blogger is! I admire him!
reply
 commentator
Mrxn 2018-04-02 14:55
@Zhou Songsong: Muzan...
reply
 avatar
fslong 2018-04-01 12:10
Hello, blogger, I made the same mistake as you. I tried this method but failed to solve it.
Later, Google found it and ran: echo 'apt:: sandbox:: seccomp "false";'>/ Etc/apt/apt. conf. d/999seccomp has solved the problem. What's the principle? I don't understand!
reply
 commentator
Mrxn 2018-04-02 14:57
@Fslong: Refer to the official tutorial: https://bugs.kali.org/view.php?id=4361
reply
 avatar
wys 2018-03-29 09:09
Still studying code, ha ha! I found an interesting message box function. Are you interested in using it on EM? Address: pewae point com/2018/03/random_kuso_17.html
reply
 commentator
Mrxn 2018-03-29 18:53
@Wys: It seems that there are such similar plug-ins in the official emlog plug-in library... It's OK to change it a little
reply
 avatar
footprint 2018-03-23 20:36
I used 2k and 2003 systems for remote desktop. I remember that it was 3389 port. Ten years ago, I used this 1433+3389 vulnerability to enter Korean servers
reply
 commentator
Mrxn 2018-03-24 15:07
@Footprint: Wow, master! hey
reply
 commentator
Old feet 2018-03-24 15:47
@Mrxn: Our old one has already been eliminated; I didn't go to that direction to study deeply, and my research was plagued by games hey
reply
 commentator
Mrxn 2018-03-27 14:29
@Old Foot: Hahaha Game Life
reply
 avatar
skywalker 2018-03-23 19:39
Hello, the zenmap scan prompt of wsl failed to open device eth2. Is it the problem of the Windows host or the problem of wsl
reply
 commentator
Mrxn 2018-03-23 19:44
@Skywalker: You can set up your network card and configure it. This is a reminder that you did not know about network card 2
reply
 avatar
WRZ 2018-03-23 09:09
Come and learn!
reply
 commentator
Mrxn 2018-03-23 18:28
@WRZ: Welcome! Ha ha ha
reply
 avatar
ghost 2018-03-21 19:55
Thanks for sharing
reply
 commentator
Mrxn 2018-03-21 21:43
@Ghost: You're welcome
reply