Wednesday, March 25, 2020

Apt-get "NO_PUBKEY" issue

After enabling Windows Subsystem for Linux (WSL), I was trying Kali Linux on Windows after installing it from Microsoft Store. During the distro update, a public key error appeared:

"The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ..."

According to this page: https://github.com/yarnpkg/yarn/issues/4453, you can solve the issue using 

"curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -"

Monday, March 23, 2020

Enabling WSL using Powershell

If you want to enable Linux Subsystem for Windows (WSL), you can run the following command on Powershell. You need to open Powershell as administrator.

Enable-WindowsOptionalFeature -Online -FeatureName 
Microsoft-Windows-Subsystem-Linux