1

Hello everyone I installed fresh Windows 11 and enabled Windows Subsystem for Linux and Virtual Machines and switched to WSL2, and installed Kali Linux from the Microsoft Store.

When I tried to update the repo, It was stuck a 0%

So I changed the http to https in sources.list As it was widely suggested fix.

However even doing so did not change anything what could be the Root cause of this behaviour?

Check the screenshot please

UPDATED:

I tried Going to visiting following URLS in the browser

> http://http.kali.org/kali/
> https://http.kali.org/kali/

Both Opened Successfully!

Then Tried the following command
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
Which threw an error Message:

gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

so I Installed it manually as I couldn't install from apt directly from terminal,
After installing the gnupg2 it threw the same error:

gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation 

Then I tried adding the following repos to sources.list

deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free 

But neither of them succeeded

check the screenshot of gnupg ERROR Message

15
  • Same issue on Windows 11 Pro. From what I have read, it is a Kali issue. I have Kali Virtual Machines in both VMware (as I type here) on Windows 10 and in Hyper-V on Windows 11. Both Kali VMs update just fine. It is not working in WSL2.
    – anon
    Commented Dec 11, 2021 at 1:06
  • A few days back I installed the same way in my cousin's machine who was at my house. Same thing happened with him as well. I just asked him to see if its working on his machine now, It's working just fine so it's my router issue??? Or should I contact my ISP? Commented Dec 11, 2021 at 1:10
  • Ask your ISP and see if they can help.
    – anon
    Commented Dec 11, 2021 at 1:11
  • 1
    Try the solutions listed here
    – Ramhound
    Commented Dec 11, 2021 at 1:19
  • @GamingWorld Just to confirm -- I know you said you installed from the Microsoft Store, right? I know there's a problem when Kali is installed via wsl --install -d kali-linux, but it's different. Commented Dec 11, 2021 at 1:21

1 Answer 1

0

My issue was that in WSL the systemd is not running by default. Solution was to create file /etc/wsl.conf with content:

[boot]
systemd = true

and from PowerShell restart WSL by wsl.exe --shutdown command

2
  • Please do not post the same answer to multiple questions. If the same information really answers both questions, then one question (usually the newer one) should be closed as a duplicate of the other. You can indicate this by voting to close it as a duplicate or, if you don't have enough reputation for that, raise a flag to indicate that it's a duplicate. Otherwise tailor your answer to this question and don't just paste the same answer in multiple places.
    – DavidPostill
    Commented Jun 5 at 13:09
  • @DavidPostill Thank you for a suggestion, but haven't found a Close button on either thread also I am not able to Flag it as a duplicate as this thread has no accepted answer. Posted to both topics as both were in my Google search so I found it useful for other seekers. Commented Jun 6 at 8:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .