I'm using kali wsl(version 1) on Windows 10, and I installed it on non-C drive with this method here.
This is the return of uname -r
:
4.4.0-19041-Microsoft
I got this error while apt update:
user@host:~$ sudo apt update
[sudo] password for user:
Get:1 <mirror_site> kali-rolling InRelease [30.5 kB]
Err:1 <mirror_site> kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Fetched 30.5 kB in 2s (12.5 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: <mirror_site> kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Then I tried fix this with gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6
, got this error:
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
So, I tried install gnupg_2.2.27-2_all.deb
manually from Debian Package. However, there's more dependency problems appeared.
user@host:~$ sudo dpkg -i gnupg_2.2.27-2_all.deb
(Reading database ... 17159 files and directories currently installed.)
Preparing to unpack gnupg_2.2.27-2_all.deb ...
Unpacking gnupg (2.2.27-2) over (2.2.27-2) ...
dpkg: dependency problems prevent configuration of gnupg:
gnupg depends on dirmngr (<< 2.2.27-2.1~); however:
Package dirmngr is not installed.
gnupg depends on dirmngr (>= 2.2.27-2); however:
Package dirmngr is not installed.
gnupg depends on gnupg-l10n (= 2.2.27-2); however:
Package gnupg-l10n is not installed.
gnupg depends on gnupg-utils (<< 2.2.27-2.1~); however:
Package gnupg-utils is not installed.
gnupg depends on gnupg-utils (>= 2.2.27-2); however:
Package gnupg-utils is not installed.
gnupg depends on gpg (<< 2.2.27-2.1~); however:
Package gpg is not installed.
gnupg depends on gpg (>= 2.2.27-2); however:
Package gpg is not installed.
gnupg depends on gpg-agent (<< 2.2.27-2.1~); however:
Package gpg-agent is not installed.
gnupg depends on gpg-agent (>= 2.2.27-2); however:
Package gpg-agent is not installed.
gnupg depends on gpg-wks-client (<< 2.2.27-2.1~); however:
Package gpg-wks-client is not installed.
gnupg depends on gpg-wks-client (>= 2.2.27-2); however:
Package gpg-wks-client is not installed.
gnupg depends on gpg-wks-server (<< 2.2.27-2.1~); however:
Package gpg-wks-server is not installed.
gnupg depends on gpg-wks-server (>= 2.2.27-2); however:
Package gpg-wks-server is not installed.
gnupg depends on gpgsm (<< 2.2.27-2.1~); however:
Package gpgsm is not installed.
gnupg depends on gpgsm (>= 2.2.27-2); however:
Package gpgsm is not installed.
gnupg depends on gpgv (>= 2.2.27-2); however:
Version of gpgv on system is 2.2.12-1.
dpkg: error processing package gnupg (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gnupg
I don't know what to do next after this. do I really need to download and install all these dependency manually? What I gotta do to make apt works?