debootstrap silently fails when bootstrapping to a directory name with spaces

Bug #1716079 reported by Simon Quigley on 2017-09-09
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cdebootstrap (Ubuntu)
debootstrap (Ubuntu)

Bug Description

I use debootstrap to do minimal installs of Ubuntu and I couldn't figure out why debootstrap would silently fail when I pass the name of my directory I wanted to install the Ubuntu system in (which, for purposes of bug reporting, I'll call "Ubuntu System").

Running this command will create bootstrap/ and var/ directories in "Ubuntu System" but will just silently stop:

 $ sudo debootstrap --arch amd64 artful Ubuntu\ System

While renaming to UbuntuSystem solves the problem:

 $ sudo debootstrap --arch amd64 artful UbuntuSystem

Since this was an Artful installation I was doing it from, I tried grabbing the version from zesty-updates and it happens there as well.

The least it could do is be a bit more verbose (I even tried with --verbose and it still didn't work)...

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debootstrap (Ubuntu):
status: New → Confirmed
Jeremy Soller (jackpot51) wrote :

sudo debootstrap --arch amd64 artful "test case"

Will only output:

I: Retrieving InRelease

Exit status is then 130

Jeremy Soller (jackpot51) wrote :

These files are then present:
test case/
test case/debootstrap
test case/debootstrap/debootstrap.log
test case/var
test case/var/lib
test case/var/lib/apt
test case/var/lib/apt/lists
test case/var/lib/apt/lists/partial
test case/var/lib/apt/lists/debootstrap.invalid_dists_artful_InRelease
test case/var/cache
test case/var/cache/apt
test case/var/cache/apt/archives
test case/var/cache/apt/archives/partial

Simon Quigley (tsimonq2) wrote :

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.

Changed in cdebootstrap (Ubuntu):
importance: Undecided → Medium
Simon Quigley (tsimonq2) wrote :

This also might be of interest:

$ sudo debootstrap --arch amd64 artful Test\ 1 http://localhost:8080/ubuntu
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
$ ls
1 Test Test 1
$ ls *


Test 1:
debootstrap var

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers