View Issue Details

IDProjectCategoryView StatusLast Update
0006737Kali LinuxKali Package Bugpublic2021-06-24 18:26
Reporternat Assigned Tosteev  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2020.3 
Summary0006737: Errors after installing Kali on Win10 v2004 using WSL 2
Description

I'm installing Kali linux on Windows 10 v2004.19041 using WSL v2 following the video by Networkchuck as recommended on your web page. I've copied across error message from my terminal. I've uninstalled and reinstalled Kali and still get the same errors.

Installation successful!
user@The-Bug-Too:~$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2020.2"
VERSION_ID="2020.2"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

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
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Activities

Michu

Michu

2020-09-23 08:50

reporter   ~0013477

what's your sources.list because it looks like apt having problems with repo's and could you dump what's inside /var/log/dpkg.log and history.log

nat

nat

2020-09-23 09:23

reporter   ~0013480

Sources.list contents below. I tried changing it to deb https...etc. but it is unwritable file. Sorry I don't know how to dump the log files.
user@The-Bug-Too:~$ cat /etc/apt/sources.list

deb http://http.kali.org/kali kali-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Michu

Michu

2020-09-25 17:19

reporter   ~0013495

in think you should uncomment deb-src line because apt use only first and don't do https it's useless

nat

nat

2020-09-26 07:22

reporter   ~0013497

Thanks for your suggestions which I followed but it still doesn't work.

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

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'

Michu

Michu

2020-09-27 15:58

reporter   ~0013500

after modifying sources.list did you do apt update
and for experiment change from http://http.kali.org to https://http.kali.org in both repos and see what you get maybe this will help

nat

nat

2020-09-28 15:17

reporter   ~0013503

Hi Michu, thanks for your help with this. I changed to https as you suggested on both repos and this made no difference, still doesn't update. And yes I did update in answer to your previous question. I'm at a loss at what to do. I've Googled the problem and it seems over the years many people have had similar problems with various versions of Kali but I can't find any answers that work. I would've thought Kali would've answered unless you are Kali but as I said before I'm very grateful for your assistance.

elwood

elwood

2020-09-28 15:24

administrator   ~0013504

The part of the error message that matters is " Temporary failure resolving 'http.kali.org'". Thats a name server resolution issue. You can test by trying to resolve other DNS names inside WSL.

To correct, you need to not be messing about with the sources, but instead look into the networking. In particular
/etc/resolv.conf.

nat

nat

2020-09-28 15:40

reporter   ~0013507

The ip listed in /etc/resolv.conf is 172.18.224.1 which refused to connect.

elwood

elwood

2020-09-28 15:50

administrator   ~0013508

Ok. So change it to something known to be valid. Perhaps the same IP your windows host is using, or just google dns at 8.8.8.8. At this point its just a matter of basic network troubleshooting for you on setting up your DNS. Once you get that resolved, then your next step is a questions of why is it setting DNS to that, and why is it not working. That's going to be general non-Kali specific WSL issue for you to contend with.

nat

nat

2020-09-28 16:31

reporter   ~0013510

I need more help please.

nat

nat

2020-09-28 16:33

reporter   ~0013512

Sorry I just saw your subsequent note. I'll follow that up cheers.

steev

steev

2021-06-24 18:26

manager   ~0014838

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?
If you are still facing the same problem, feel free to re-open the ticket.

Issue History

Date Modified Username Field Change
2020-09-22 10:18 nat New Issue
2020-09-23 08:50 Michu Note Added: 0013477
2020-09-23 09:23 nat Note Added: 0013480
2020-09-25 17:19 Michu Note Added: 0013495
2020-09-26 07:22 nat Note Added: 0013497
2020-09-27 15:58 Michu Note Added: 0013500
2020-09-28 15:17 nat Note Added: 0013503
2020-09-28 15:24 elwood Note Added: 0013504
2020-09-28 15:40 nat Note Added: 0013507
2020-09-28 15:50 elwood Note Added: 0013508
2020-09-28 16:31 nat Note Added: 0013510
2020-09-28 16:33 nat Note Added: 0013512
2020-12-01 10:48 g0tmi1k Priority high => normal
2020-12-01 10:50 g0tmi1k Severity major => minor
2021-06-24 18:26 steev Assigned To => steev
2021-06-24 18:26 steev Status new => closed
2021-06-24 18:26 steev Resolution open => no change required
2021-06-24 18:26 steev Note Added: 0014838