PDA

View Full Version : "lb build" error kali-security Not Fount



He-Ro
2013-03-16, 12:17
Hey,

I was following the instruction at http://docs.kali.org/live-build/live-build-a-custom-kali-iso but when running "lb build" I got the following output:


user@xubuntu:~/live-build-config$ sudo lb build
[2013-03-16 11:18:12] lb build
P: Automatically populating config tree.
[2013-03-16 11:18:12] lb config
P: Executing auto/config script.
WARNING: configuration not tested on arch
[2013-03-16 11:18:12] lb config noauto --distribution kali --debian-installer-distribution kali --archive-areas main contrib non-free --bootstrap cdebootstrap --cdebootstrap-options --keyring=/usr/share/keyrings/kali-archive-keyring.gpg --suite-config=wheezy --keyring-packages kali-archive-keyring --updates false --backports false --source false --firmware-binary true --firmware-chroot true --mirror-bootstrap http://archive.kali.org/kali --mirror-debian-installer http://archive.kali.org/kali --mirror-chroot-security http://archive.kali.org/kali-security --mirror-binary http://http.kali.org/kali --mirror-binary-security http://security.kali.org/kali-security --iso-application Kali Linux --iso-publisher Kali --iso-volume Kali Live --linux-packages linux-image --bootappend-live boot=live noconfig=sudo username=root hostname=kali
P: Considering defaults defined in /etc/live/build.conf
P: Updating config tree for a ubuntu/amd64 system
P: Executing auto/build script.
[2013-03-16 11:18:12] lb build noauto
[2013-03-16 11:18:13] lb bootstrap
P: Setting up cleanup function
[2013-03-16 11:18:13] lb bootstrap_cache restore
P: Restoring bootstrap stage from cache...
[2013-03-16 11:18:13] lb bootstrap_cdebootstrap
P: Begin bootstrapping system...
[2013-03-16 11:18:13] lb testroot
W: skipping bootstrap, already done
[2013-03-16 11:18:13] lb bootstrap_debootstrap
[2013-03-16 11:18:14] lb bootstrap_cache save
P: Saving bootstrap stage to cache...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...
[2013-03-16 11:18:16] lb chroot
P: Setting up cleanup function
[2013-03-16 11:18:16] lb chroot_cache restore
[2013-03-16 11:18:16] lb chroot_devpts install
[2013-03-16 11:18:16] lb testroot
P: Begin mounting /dev/pts...
[2013-03-16 11:18:16] lb chroot_proc install
[2013-03-16 11:18:16] lb testroot
P: Begin mounting /proc...
[2013-03-16 11:18:16] lb chroot_selinuxfs install
[2013-03-16 11:18:16] lb testroot
[2013-03-16 11:18:17] lb chroot_sysfs install
[2013-03-16 11:18:17] lb testroot
P: Begin mounting /sys...
[2013-03-16 11:18:17] lb chroot_debianchroot install
P: Configuring file /etc/debian_chroot
[2013-03-16 11:18:17] lb chroot_dpkg install
P: Configuring file /sbin/start-stop-daemon
[2013-03-16 11:18:17] lb chroot_tmpfs install
[2013-03-16 11:18:17] lb chroot_sysv-rc install
P: Configuring file /usr/sbin/policy-rc.d
[2013-03-16 11:18:17] lb chroot_upstart install
P: Configuring file /sbin/initctl
[2013-03-16 11:18:17] lb chroot_hosts install
P: Configuring file /etc/hosts
[2013-03-16 11:18:17] lb chroot_resolv install
P: Configuring file /etc/resolv.conf
[2013-03-16 11:18:18] lb chroot_hostname install
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
[2013-03-16 11:18:18] lb chroot_apt install
P: Configuring file /etc/apt/apt.conf
[2013-03-16 11:18:18] lb chroot_archives chroot install
P: Configuring file /etc/apt/sources.list
Get:1 http://archive.kali.org kali InRelease [22.0 kB]
Ign http://archive.kali.org kali-security InRelease
Get:2 http://archive.kali.org kali/main Sources [7529 kB]
Get:3 http://archive.kali.org kali/contrib Sources [58.0 kB]
Get:4 http://archive.kali.org kali/non-free Sources [116 kB]
Get:5 http://archive.kali.org kali/main amd64 Packages [8399 kB]
Get:6 http://archive.kali.org kali/contrib amd64 Packages [56.3 kB]
Get:7 http://archive.kali.org kali/non-free amd64 Packages [118 kB]
Ign http://archive.kali.org kali-security Release.gpg
Ign http://archive.kali.org kali-security Release
Ign http://archive.kali.org kali/contrib Translation-en
Ign http://archive.kali.org kali/main Translation-en
Ign http://archive.kali.org kali/non-free Translation-en
Err http://archive.kali.org kali-security/main Sources
404 Not Found
Err http://archive.kali.org kali-security/contrib Sources
404 Not Found
Err http://archive.kali.org kali-security/non-free Sources
404 Not Found
Err http://archive.kali.org kali-security/main amd64 Packages
404 Not Found
Err http://archive.kali.org kali-security/contrib amd64 Packages
404 Not Found
Err http://archive.kali.org kali-security/non-free amd64 Packages
404 Not Found
Ign http://archive.kali.org kali-security/contrib Translation-en
Ign http://archive.kali.org kali-security/main Translation-en
Ign http://archive.kali.org kali-security/non-free Translation-en
Fetched 16.3 MB in 48s (335 kB/s)
W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/main/source/Sources 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/contrib/source/Sources 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/non-free/source/Sources 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/contrib/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/non-free/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...


Any suggestions would be appreciated. Thanks in advance.

charonsecurity
2013-03-19, 11:21
Sure thing. Make sure first that your sources.list is correct: In a terminal, "pico /etc/apt/sources.list" and make sure that they are the same as listed here http://wiki.debian.org/Derivatives/Census/Kali. Also, this is not possible to do from a liveUSB (maybe with persistence not sure) and best to be done with in an installed to disk version of Kali. Also for safe measure make sure you run apt-get update, and apt-get upgrade. That should do it for you:)