I tried installing kali-win-kex
by following the official guide.
$ sudo apt install kali-win-kex -y
dpkg: error processing archive /var/cache/apt/archives/kali-win-kex_2.7_amd64.deb (--unpack):
new kali-win-kex package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/kali-win-kex_2.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Trying apt install -f
solve the problem changes package status from half-installed
to uninstalled
.
Trying to install the package directly leads to the following error:
$ sudo dpkg -i /var/cache/apt/archives/kali-win-kex_2.7_amd64.deb
(Reading database ... 102450 files and directories currently installed.)
Preparing to unpack .../kali-win-kex_2.7_amd64.deb ...
This package is for WSL 2. Nothing to be done here.
dpkg: error processing archive /var/cache/apt/archives/kali-win-kex_2.7_amd64.deb (--install):
new kali-win-kex package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/kali-win-kex_2.7_amd64.deb
How can I install kali-win-kex
?
Windows version: 19042.746
Kali version: 2020.4 (kali-rolling)
NOTE: This should probably be the same as this question: Cannot install Kali-WIn-Kex because of Dpkg error but reviewer decided this should be a new question.