大家好,我安裝了全新的 Windows 11,啟用了適用於 Linux 和虛擬機器的 Windows 子系統,切換到 WSL2,並從 Microsoft Store 安裝了 Kali Linux。
當我嘗試更新存儲庫時,它卡在 0%
所以我將sources.list中的http更改為https,因為它被廣泛建議修復。
然而,即使這樣做也沒有改變任何事情,這種行為的根本原因是什麼?
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