Monday, August 29, 2022

Fix apt update for Kali Linux on WSL

For lightweight Linux loatform hosted on Windows 10 it is better to use WSL

Avalibale ditstos not so large, but well flawored

PS C:\Windows\system32> wsl --list --online

The following is a list of valid distributions that can be installed.

Install using 'wsl --install -d <Distro>'.


NAME            FRIENDLY NAME

Ubuntu          Ubuntu

Debian          Debian GNU/Linux

kali-linux      Kali Linux Rolling

openSUSE-42     openSUSE Leap 42

SLES-12         SUSE Linux Enterprise Server v12

Ubuntu-16.04    Ubuntu 16.04 LTS

Ubuntu-18.04    Ubuntu 18.04 LTS

Ubuntu-20.04    Ubuntu 20.04 LTS

I need to insall Kali

wsl --install -d kali-linux

But of cource, the distro already little bit absolete in package refereces:

eugene@DESKTOP-78QLU8F:~$ sudo apt update

Get:1 http://kali.koyanet.lv/kali kali-rolling InRelease [30.6 kB]

Err:1 http://kali.koyanet.lv/kali kali-rolling InRelease

  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>

Reading package lists... Done

W: GPG error: http://kali.koyanet.lv/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>

E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.


To fix this problem with brocken repo urls:


# download
wget http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2022.1_all.deb
# install
sudo dpkg -i kali-archive-keyring_2022.1_all.deb
# remove downloaded file again
rm kali-archive-keyring_2022.1_all.deb
# update
sudo apt-get update

Thank you for an answer!

No comments:

debug magazine archive

  71 jounals still available on issuu with great story of netlabels time.  debug_mag Publisher Publications - Issuu