View Issue Details

IDProjectCategoryView StatusLast Update
0002489Kali LinuxKali Package Bugpublic2015-08-16 11:18
Reporteratdre Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0 
Summary0002489: When running debootstrap sana, cannot download package base-files
Description

After installing debootstrap (to get Kali 2.0 as a base image for use in Docker), I noticed the following error:

W: Couldn't download package base-files (ver 1:2.0-rc1+1 arch amd64)

Steps To Reproduce

Installed debootstrap with apt-get -y install debootstrap on Kali 2.0 using the 64-bit VM guest
Ran debootstrap sana kali http://http.kali.org/kali/
Error message produced in description section above

Additional Information

My temporary fix was just to add the directories and files from the base-files package manually.

for i in dpkg-query -L base-files ; do find $i -maxdepth 0 -type d ; done > basedirs
for i in dpkg-query -L base-files ; do find $i -maxdepth 0 -type f ; done > basefiles
for i in cat basedirs ; do mkdir -p kali$i ; done && for i in cat basefiles ; do cp $i kali/$i ; done

Then I was able to:

debootstrip sana ./kali http://http.kali.org/kali/
tar -C kali/ -c . > kali.tar
cat kali.tar | docker import - kali:latest

Activities

atdre

atdre

2015-08-11 23:09

reporter   ~0003679

Actually my fix didn't work. debootstrap will not complete as it errors out. Will try to download all of the debs manually and packing them into a single tar file in order to try debootstrap --unpack-tarball=deps.tar

note that the older Kali 1.1.0 works for debootstrap, even on Kali 2.0, i.e.,

deboostrap kali ./kali http://http.kali.org/kali/
tar -C kali/ -c . > kali.tar
cat kali.tar | docker import - kali:latest

rhertzog

rhertzog

2015-08-12 08:48

administrator   ~0003682

I don't know what you are doing wrong but there's something fucked up in your setup... sana contains base-files "1:2.0" and not "1:2.0-rc1+1".

What version of debootstrap are you using?

We tend to use "cdebootstrap" for the live build but I doubt that debootstrap is broken...

What kali mirror are your redirected to? Paste the output of "curl -sI http://http.kali.org/README"

rhertzog

rhertzog

2015-08-16 11:18

administrator   ~0003787

This has been tracked down to a bad mirror. It has been dropped from the mirror rotation and you should be able to run the command successfully now.

Issue History

Date Modified Username Field Change
2015-08-11 22:23 atdre New Issue
2015-08-11 23:09 atdre Note Added: 0003679
2015-08-12 08:48 rhertzog Note Added: 0003682
2015-08-12 08:49 rhertzog Assigned To => rhertzog
2015-08-12 08:49 rhertzog Status new => feedback
2015-08-12 08:49 rhertzog Product Version kali-dev => 2.0
2015-08-16 11:18 rhertzog Note Added: 0003787
2015-08-16 11:18 rhertzog Status feedback => closed
2015-08-16 11:18 rhertzog Resolution open => fixed