View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006582 | Kali Linux | [All Projects] Kali Websites & Docs | public | 2020-07-17 12:19 | 2021-06-23 16:18 |
Reporter | microlaser | Assigned To | Gamb1t | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 2020.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0006582: error on documentation for building kali with debootstrap | ||||
Description | I used the instructions here for building kali with debootstrap: https://www.kali.org/tutorials/build-kali-with-live-build-on-debian-based-systems/ To build this shell script with the contents of the doc. The contents of my shell script are identical to the contents of the doc. #!/bin/bash sudo apt update sudo apt -y upgrade wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb wget https://archive.kali.org/kali/pool/main/l/live-build/live-build_20180618kali1_all.deb sudo apt -y install git live-build cdebootstrap debootstrap curl sudo dpkg -i kali-archive-keyring_2018.1_all.deb sudo dpkg -i live-build_20180618kali1_all.deb cd /usr/share/debootstrap/scripts/ (echo "default_mirror http://http.kali.org/kali"; sed -e "s/debian-archive-keyring.gpg/kali-archive-keyring.gpg/g" sid) > kali sudo ln -s kali kali-rolling cd ~ git clone git://gitlab.com/kalilinux/build-scripts/live-build-config.git cd live-build-config/ # Check we have a good debootstrap ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap) if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then if ! echo "$ver_debootstrap" | grep -q kali; then echo "ERROR: You need debootstrap >= 1.0.97 (or a Kali patched debootstrap). Your current version: $ver_debootstrap" >&2 # exit 1 fi fi | ||||
Steps To Reproduce | 1) Use the contents of the doc to make a shell script like i did. 2) run it to build kali with debootstrap. the output is as follows: michael@ghost:~/Documents$ sh kali2.sh Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease Hit:6 https://download.docker.com/linux/ubuntu focal InRelease Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Fetched 205 kB in 6s (36.3 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. 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. --2020-07-17 08:15:10-- https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb Resolving http.kali.org (http.kali.org)... 192.99.200.113 Connecting to http.kali.org (http.kali.org)|192.99.200.113|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-07-17 08:15:10 ERROR 404: Not Found. --2020-07-17 08:15:10-- https://archive.kali.org/kali/pool/main/l/live-build/live-build_20180618kali1_all.deb Resolving archive.kali.org (archive.kali.org)... 192.99.45.140 Connecting to archive.kali.org (archive.kali.org)|192.99.45.140|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-07-17 08:15:10 ERROR 404: Not Found. Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version (1:2.25.1-1ubuntu3). cdebootstrap is already the newest version (0.7.7ubuntu2). curl is already the newest version (7.68.0-1ubuntu2.1). debootstrap is already the newest version (1.0.118ubuntu1.1). live-build is already the newest version (3.0~a57-1ubuntu38.20.04.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. dpkg: error: cannot access archive 'kali-archive-keyring_2018.1_all.deb': No such file or directory dpkg: error: cannot access archive 'live-build_20180618kali1_all.deb': No such file or directory kali2.sh: 11: cannot create kali: Permission denied ln: failed to create symbolic link 'kali-rolling': File exists Cloning into 'live-build-config'... fatal: read error: Connection reset by peer kali2.sh: 17: cd: can't cd to live-build-config/ michael@ghost:~/Documents$ the crux of the problem is the two wget commands in the docs both produce 404's --2020-07-17 08:15:10-- https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb Resolving http.kali.org (http.kali.org)... 192.99.200.113 Connecting to http.kali.org (http.kali.org)|192.99.200.113|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-07-17 08:15:10 ERROR 404: Not Found. --2020-07-17 08:15:10-- https://archive.kali.org/kali/pool/main/l/live-build/live-build_20180618kali1_all.deb Resolving archive.kali.org (archive.kali.org)... 192.99.45.140 Connecting to archive.kali.org (archive.kali.org)|192.99.45.140|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-07-17 08:15:10 ERROR 404: Not Found. | ||||
Additional Information | I would be willing to work on fixing the scripting, I actually have been doing it in my free time with little success, I have a lot going on. If someone can fix this fast please do, I think good documentation is important for open source projects so I have opened this bug to bring it to the community attention that the documentation is in need of updating. Thank you. | ||||
|
I know this page does not present these commands as a shell script, but I had wanted to put them together like a shell script, and they did not work. I have worked out why and have put the commands together as the following shell script. It successfully builds a kali iso. Is it possible for someone to give me access to this URL to rewrite the documentation to include these corrections? If this is not possible can someone else update it? Thanks. #!/bin/bash # Install dependencies (debootstrap) sudo apt -y install git live-build cdebootstrap debootstrap curl # Fetch the latest Kali debootstrap script from git wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb wget https://archive.kali.org/kali/pool/main/l/live-build/live-build_20191221_all.deb sudo apt -y install git live-build cdebootstrap debootstrap curl sudo dpkg -i kali-archive-keyring_2020.2_all.deb sudo dpkg -i live-build_20191221_all.deb cd /usr/share/debootstrap/scripts/ (echo "default_mirror http://http.kali.org/kali"; sed -e "s/debian-archive-keyring.gpg/kali-archive-keyring.gpg/g" sid) > kali ln -s kali ./kali-rolling cd ~ git clone https://gitlab.com/kalilinux/build-scripts/live-build-config cd live-build-config/ sudo ./build.sh --variant light --verbose |
|
This line fails: (echo "default_mirror http://http.kali.org/kali"; sed -e "s/debian-archive-keyring.gpg/kali-archive-keyring.gpg/g" sid) > kali it does not create the output file kali |
|
Please ignore the previous note, user error. I am running this script with the output to a file now to see if it errors out, it would not succeed in the ln -s command because the file already existed, I deleted the files located in /usr/share/debootstrap/scripts/ and am running again to make sure there is no problem. Since I am logging the output II will see for sure. |
|
Keep in mind that that blog post is almost 2 years old, and package versions update in that time. You could definitely submit a pull request to update the package versions on the https://gitlab.com/kalilinux/documentation/kali-blog repository though! |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-17 12:19 | microlaser | New Issue | |
2020-07-26 00:11 | microlaser | Note Added: 0013140 | |
2020-07-26 14:26 | microlaser | Note Added: 0013143 | |
2020-07-26 14:47 | microlaser | Note Added: 0013144 | |
2021-06-23 16:18 | steev | Note Added: 0014771 | |
2021-06-23 16:18 | steev | Assigned To | => Gamb1t |
2021-06-23 16:18 | steev | Status | new => assigned |