This also affects cdebootstrap, I tried this with directory "Test 1" and I set it to use my local archive mirror at 8080:
$ sudo cdebootstrap --allow-unauthenticated --arch amd64 artful Test\ 1/ http://localhost:8080/ubuntu P: Retrieving Release P: Retrieving Release.gpg P: Validating Release W: Couldn't validate Release! P: Parsing Release P: Retrieving Packages.xz P: Validating Packages.xz sha256sum: /home/simon/Code/Test: No such file or directory sha256sum: 1/var/cache/bootstrap/_dists_._main_binary-amd64_Packages.xz: No such file or directory P: Retrieving Packages.gz P: Validating Packages.gz sha256sum: /home/simon/Code/Test: No such file or directory sha256sum: 1/var/cache/bootstrap/_dists_._main_binary-amd64_Packages.gz: No such file or directory E: Couldn't download Packages!
So it looks like it's not built to catch directories with spaces, I wonder if this is related to debootstrap's problem.
This also affects cdebootstrap, I tried this with directory "Test 1" and I set it to use my local archive mirror at 8080:
$ sudo cdebootstrap --allow- unauthenticated --arch amd64 artful Test\ 1/ http:// localhost: 8080/ubuntu Code/Test: No such file or directory bootstrap/ _dists_ ._main_ binary- amd64_Packages. xz: No such file or directory Code/Test: No such file or directory bootstrap/ _dists_ ._main_ binary- amd64_Packages. gz: No such file or directory
P: Retrieving Release
P: Retrieving Release.gpg
P: Validating Release
W: Couldn't validate Release!
P: Parsing Release
P: Retrieving Packages.xz
P: Validating Packages.xz
sha256sum: /home/simon/
sha256sum: 1/var/cache/
P: Retrieving Packages.gz
P: Validating Packages.gz
sha256sum: /home/simon/
sha256sum: 1/var/cache/
E: Couldn't download Packages!
So it looks like it's not built to catch directories with spaces, I wonder if this is related to debootstrap's problem.