PDA

View Full Version : Win-KeX install problems.



Akore
2020-08-20, 21:55
I am trying to install Win-Kex and I am having a heck of a hard time getting it to install.

I have a Lenovo T520 laptop running: Windows 10 Pro version 2004 OS build 19041.450

C:\WINDOWS\system32>wsl --list --verbose
NAME STATE VERSION
* kali-linux Running 2

I have everything setup correctly with version 2 of wsl

akore@LenovoT520:/mnt/c/WINDOWS/system32$ sudo apt update && sudo apt install -y kali-win-kex
Err:1 http://http.kali.org/kali kali-rolling InRelease
Temporary failure resolving 'http.kali.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kali-win-kex

This seems to be where the main problem is. Anyone know how to get this to actually install?

Rakshith R Acharya
2020-09-28, 06:14
Check kali version by the command cat /etc/os-release after this if the kali version is not 2020.3 update it.And the do sudo apt upgrade && sudo apt install kali-win-kex -y

sharkscott
2020-12-16, 22:04
After putting in this: sudo apt upgrade && sudo apt install kali-win-kex -y

I get this:

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 (--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)

I've checked and I am pretty sure I am running WSL2.

kaj
2021-01-28, 14:40
does that error persist, it looks like dns could not resolve, which could be any number of short term problems relating to DNS resolve.

AayushBoliya
2021-02-04, 12:22
It is the latest version, I just set up my WSL2 and Kali Linux 2020.4, and because xrdp is throwing errors, I'm trying to install kex and it is showing:

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)

please help.