Fix the apt warning on Kali Linux on Windows 10
When Running Kali Linux Subsystem on Windows 10, using
apt will usually produce the following warning like in the graph:
This warning will not prevent you from using using
apt, but it is still really annoying. After some browsing and checking, this is due to the reason that the kernel doesn’t support
seccomp as WSL is an emulation layer for Windows to Linux kernel.
Solving the problem is really easy - Disable the seccomp warning using the following command:
echo 'apt::sandbox::seccomp "false";' | sudo tee /etc/apt/apt.conf.d/999seccomp
After that, the
apt will run normally without the annoying warning.