Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#586158; Package debootstrap.
(Wed, 16 Jun 2010 22:24:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Daniel Hahler <debian-bugs@thequod.de>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 16 Jun 2010 22:24:04 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: debootstrap fails if the directory contains a space
Date: Thu, 17 Jun 2010 00:20:02 +0200
Package: debootstrap
Version: 1.0.20ubuntu1
Severity: normal
If the absolute path to the target directory contains a space,
debootstrap fails at the following step:
W: Failure trying to run: chroot /home/rdb/abc def/chroot mount -t proc
proc /proc
Steps to reproduce:
Create a directory with a name containing a space.
CD to it, and call "debootstrap dapper chroot" or something like that.
Forwarded from Ubuntu, initially reported at:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/539412
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid-updates
APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid-proposed'), (500, 'lucid-backports'), (500, 'lucid')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-23-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debootstrap depends on:
ii binutils 2.20.1-3ubuntu5 The GNU assembler, linker and bina
ii wget 1.12-1.1ubuntu2 retrieves files from the web
Versions of packages debootstrap recommends:
ii gnupg 1.4.10-2ubuntu1 GNU privacy guard - a free PGP rep
debootstrap suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#586158; Package debootstrap.
(Fri, 04 Dec 2015 21:51:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Matthijs Kooijman <matthijs@stdin.nl>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 04 Dec 2015 21:51:04 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <586158@bugs.debian.org>
Subject: Re: debootstrap fails if the directory contains a space
Date: Fri, 04 Dec 2015 13:13:06 +0100
Package: debootstrap
Version: 1.0.75
Followup-For: Bug #586158
Hi,
it seems this problem is still present in the most recent version, but
manifests differently (possibly earlier, in addition to the failure
reported back in 2010, dunno). Here's what I did:
matthijs@grubby:~/docs/Virtual machines$ sudo debootstrap sid sid-chroot http://ftp.nl.debian.org/debian/
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 126C0D24BD8A2942CC7DF8AC7638D0442B90D010)
matthijs@grubby:~/docs/Virtual machines$ cat sid-chroot/debootstrap/debootstrap.log
gpgv: Signature made Fri Dec 4 09:58:57 2015 CET using RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: Signature made Fri Dec 4 09:58:57 2015 CET using RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
sed: can't read /home/matthijs/docs/Virtual: No such file or directory
Apparently the path isn't escaped properly when passing it to sed. I
haven't tried fixing it, or seeing if there are other problems, though.
Gr.
Matthijs
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'oldoldstable'), (500, 'oldstable'), (50, 'unstable'), (50, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.2+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debootstrap depends on:
ii wget 1.16-1
Versions of packages debootstrap recommends:
ii debian-archive-keyring 2014.3
ii gnupg 1.4.18-7
debootstrap suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#586158; Package debootstrap.
(Fri, 04 Dec 2015 22:42:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Tianon Gravi <tianon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 04 Dec 2015 22:42:03 GMT) (full text, mbox, link).
On 4 December 2015 at 04:13, Matthijs Kooijman <matthijs@stdin.nl> wrote:
> Apparently the path isn't escaped properly when passing it to sed. I
> haven't tried fixing it, or seeing if there are other problems, though.
I took a look, and there were actually quite a few places, but with
the attached patch, `DEBOOTSTRAP_DIR="$PWD" ./debootstrap
--variant=minbase sid ~/temp/test\ space
http://httpredir.debian.org/debian` succeeds at least. :)
Not sure if this is something the debootstrap maintainers want to
accept going forward, but most of the codebase seemed to already be
quoting properly for this sort of thing so it seemed appropriate to
continue.
As a note to the debootstrap maintainers, if you _do_ want this patch
(or something like it), I'm happy to adjust and enhance it however so
that it's acceptable (even if that's just recreating the patch file in
a format that's easier for whatever method you prefer for applying
it)!
♥,
- Tianon
4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4
Source: debootstrap
Source-Version: 1.0.96
We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 586158@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hideki Yamane <henrich@debian.org> (supplier of updated debootstrap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 06 Apr 2018 10:02:20 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.96
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 563647586158732628734324754318762431775444775474798564806780833525
Changes:
debootstrap (1.0.96) unstable; urgency=medium
.
* Escape spaces to fix debootstrap on path contains space fails
Thanks to Tianon Gravi <tianon@debian.org> for the based patch
(Closes: #586158, #762431)
* Add warning if file specified via --keyring does not exist
Thanks to jnqnfe <jnqnfe@gmail.com> for the patch
(Closes: #754318, #775474)
* Avoid unnecessary keyring warning with --second-stage option
(Closes: #734324)
* Output warning if falling back to sha1 (Closes: #775444)
Thanks to jnqnfe <jnqnfe@gmail.com> for the patch.
* Prevent unintended removal with --print-debs option (Closes: #833525)
Thanks to Johannes Schauer <josch@debian.org> for the patch
* Add scripts for Kali Linux (Closes: #798564)
* Improve manpage description for --{unpack,make}-tarball options
(Closes: #563647)
.
* debian/control
- Add "Suggests: squid-deb-proxy-client"
* debian/rules
- Add Kali for ${keyring} pattern
.
[ Sjoerd Simons ]
* Fix multiple components usage for --foreign/--second-stage
(Closes: #806780)
.
[ Michael Vogt ]
* Try to auto-detect proxy if available (e.g. squid-deb-proxy-client)
(Closes: #732628)
Checksums-Sha1:
e283396a67afae3737229a54c142b2f26f6793b6 1991 debootstrap_1.0.96.dsc
6abf18b0faa0a47a65e6b30aa9611df3d04127ed 69541 debootstrap_1.0.96.tar.gz
c583d15df4f603d57079d0d3752051dcdf7ed1d4 19632 debootstrap-udeb_1.0.96_all.udeb
7a01dd6e1d718cc7846832bfafaaeb08d7991e11 67130 debootstrap_1.0.96_all.deb
9a8356d661e8bd165ab926c00695322483f0f022 5766 debootstrap_1.0.96_amd64.buildinfo
Checksums-Sha256:
d2949b1c59c6de220fdb8ca5992ddf7d4ef6680420604b7b0a5c8141f76cbf51 1991 debootstrap_1.0.96.dsc
5fe34b69069a8dcb425450f81d7e7c9eda9a6afd90082985d9e8f790868dae86 69541 debootstrap_1.0.96.tar.gz
c03783f84073f8bce653042b9a64179f616cc14352f975ab82e843c5d3c2bfce 19632 debootstrap-udeb_1.0.96_all.udeb
12ffc7d26021eefef8b9e667e78088c6a655439768e505e2c6d83999f3fed03c 67130 debootstrap_1.0.96_all.deb
daad68829989b2c379478c97c1b60b6c48244f15cb8eead7a5d79a8ce14c8079 5766 debootstrap_1.0.96_amd64.buildinfo
Files:
7e77faea3139b192eca2ae83412818a1 1991 admin optional debootstrap_1.0.96.dsc
7fdc23cf17ba818b3c5034e9afe0deb7 69541 admin optional debootstrap_1.0.96.tar.gz
b19393afd74acb11fff1b05e91db3820 19632 debian-installer optional debootstrap-udeb_1.0.96_all.udeb
8bdbbd814a1c224a62864087e922c120 67130 admin optional debootstrap_1.0.96_all.deb
020c970100f8e2db4487dd5e1c63e764 5766 admin optional debootstrap_1.0.96_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlrIwKUTHGhlbnJpY2hA
ZGViaWFuLm9yZwAKCRBdMo0IKqqxQI1mEACkGemLKvOWfIfsiX1Gjyec/gsdTGbl
IsP6yPjFtlYeB2dkZo0bkYi/f1xiULB7qCcauw98C58nKhWi9iCFTaVt0DDtFG6A
oF4jQ6XV/easIFHJGm9LMC7bLwXjXd7thR4a7STc1yqUzrW/+zxkGySXIAxYITCu
WgeykVNls7EaYXuhuA+029oO5ncyZIisZPUVF35M/7wCawyc7Os70vy8F18qjUVu
/l3CFqkQ55cX5LzJf6ZZKDtJw+kjUU2603rMB5eab9y2FGgNUNod1Ee1FI6/c0D9
Zx9hBEx2UplAYvBaZF9355D/QN2Euj15sGhcI9s3E2fMXQ5hkYAmfTPwABhw2Mmf
eZaevzT/2zWZxWC+zkpNtv2/94x6nZTDhNDZSvndBu+GzO4YVqzqk9AJwd3USlAM
R92Tks8th7ca/E+DJ9aOWvJAl1gswegUp6y4H7goxj8XB1HpjWd27nKf81Brpn6G
pHpPgXushesWHfhjLq3lRoZOrTTdsf2j2EF1o5IQykiakcqH2rCKSQpREU1Zdrxc
uHNGn35aUPY1M6rUPlhAXZBkbntDuUj/hxw72scxfgQEj1zFpYS1ySQAEst6ROg4
lhpg45MaQ0jx9QusdhMiNaePw+YiJRzCtRUoNvc2KKm0vEHdid4Y7M59bozZpg0c
SvHq4X0EL/rAOg==
=mzLQ
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#586158; Package debootstrap.
(Tue, 01 May 2018 18:30:02 GMT) (full text, mbox, link).
Acknowledgement sent
to jhcha54008 <jhcha54008@free.fr>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 01 May 2018 18:30:03 GMT) (full text, mbox, link).
Subject: Re: #586158 : some quotes possibly forgotten
Date: Tue, 1 May 2018 20:29:08 +0200
Hi,
The variable DEBOOTSTRAP_DIR may contain some white spaces
if the option --second-stage-target is given. $DEBOOTSTRAP_DIR
may be surrounded with quotes in second stage too.
I hope it will help !
Regards,
JH Chatenet
diff -Naur a/debootstrap b/debootstrap
--- a/debootstrap 2018-04-17 04:06:32.000000000 +0200
+++ b/debootstrap 2018-05-01 20:16:03.822658829 +0200
@@ -416,10 +416,10 @@
###########################################################################
if [ "$SECOND_STAGE_ONLY" = "true" ]; then
- SUITE=$(cat $DEBOOTSTRAP_DIR/suite)
- ARCH=$(cat $DEBOOTSTRAP_DIR/arch)
- if [ -e $DEBOOTSTRAP_DIR/variant ]; then
- VARIANT=$(cat $DEBOOTSTRAP_DIR/variant)
+ SUITE=$(cat "$DEBOOTSTRAP_DIR/suite")
+ ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
+ if [ -e "$DEBOOTSTRAP_DIR/variant" ]; then
+ VARIANT=$(cat "$DEBOOTSTRAP_DIR/variant")
SUPPORTED_VARIANTS="$VARIANT"
fi
if [ -z "$CHROOTDIR" ]; then
@@ -427,7 +427,7 @@
else
TARGET=$CHROOTDIR
fi
- SCRIPT=$DEBOOTSTRAP_DIR/suite-script
+ SCRIPT="$DEBOOTSTRAP_DIR/suite-script"
else
if [ -z "$1" ] || [ -z "$2" ]; then
usage_err 1 NEEDSUITETARGET "You must specify a suite and a target."
@@ -721,8 +721,8 @@
if am_doing_phase second_stage; then
if [ "$SECOND_STAGE_ONLY" = true ]; then
- required="$(cat $DEBOOTSTRAP_DIR/required)"
- base="$(cat $DEBOOTSTRAP_DIR/base)"
+ required=$(cat "$DEBOOTSTRAP_DIR/required")
+ base=$(cat "$DEBOOTSTRAP_DIR/base")
all_debs="$required $base"
fi
Bug reopened
Request was from jhcha54008 <jhcha54008@free.fr>
to control@bugs.debian.org.
(Fri, 04 May 2018 18:09:05 GMT) (full text, mbox, link).
No longer marked as fixed in versions debootstrap/1.0.96.
Request was from jhcha54008 <jhcha54008@free.fr>
to control@bugs.debian.org.
(Fri, 04 May 2018 18:09:06 GMT) (full text, mbox, link).
Message sent on
to Daniel Hahler <debian-bugs@thequod.de>:
Bug#586158.
(Fri, 04 May 2018 18:09:07 GMT) (full text, mbox, link).
Source: debootstrap
Source-Version: 1.0.100
We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 586158@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hideki Yamane <henrich@debian.org> (supplier of updated debootstrap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 22 May 2018 20:15:26 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.100
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 586158897379
Changes:
debootstrap (1.0.100) unstable; urgency=medium
.
[ Hideki Yamane ]
* Specify https mirror to check https mirror specific problem
(See #896071)
* Quote $DEBOOTSTRP_DIR properly (Closes: #586158)
* Simpify checking debian-common file (Closes: #897379)
.
[ Philipp Kern ]
* Add an initial Gitlab CI config file.
Checksums-Sha1:
1c64dd626a2a95a1cc6e09e894f1e2dcc2ec9d37 2017 debootstrap_1.0.100.dsc
f1d1df3f49d537207bdd0371af50367e3cba60d0 72269 debootstrap_1.0.100.tar.gz
d2ab6f0119d0eb1b6810f70cc2959e086a2a4003 20860 debootstrap-udeb_1.0.100_all.udeb
f087dea9cb02aae037d14f1f2848ae0d3e91c35f 69926 debootstrap_1.0.100_all.deb
95f7182fb4a8398f6477fef7f14fca49f1e47299 5823 debootstrap_1.0.100_amd64.buildinfo
Checksums-Sha256:
fc09bb82811be5d684c12e77c34658f51cde9f7b638b9ed71ae3cb197a907a93 2017 debootstrap_1.0.100.dsc
9a0bc42f363c37666e0f21c2d6c7440cbde9b296ac81c8cd6f7311ac8d70bc4a 72269 debootstrap_1.0.100.tar.gz
efc2093c571e6d2b72d37bccfc00e550c1e739dd94f7b538297bad5f0c5864cc 20860 debootstrap-udeb_1.0.100_all.udeb
d988404ebd562a30d6b11303bca8921eb2f9a407a6425a65200f9afe852fbe1c 69926 debootstrap_1.0.100_all.deb
9f6cd8b2dde63d54689e4c4c84a4cbb171ae92183ad5527eec9914de00904962 5823 debootstrap_1.0.100_amd64.buildinfo
Files:
e77d300ab3ffa9a500e01e9ac8a16f45 2017 admin optional debootstrap_1.0.100.dsc
494e61acbf7757226b4d4c0bbba4768b 72269 admin optional debootstrap_1.0.100.tar.gz
978a815d1e020489ecc0e6197d55efdc 20860 debian-installer optional debootstrap-udeb_1.0.100_all.udeb
300cf06bd494e7ef001dac5bf47a8799 69926 admin optional debootstrap_1.0.100_all.deb
b068428313cdad9247520507541d052a 5823 admin optional debootstrap_1.0.100_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlsD/mQTHGhlbnJpY2hA
ZGViaWFuLm9yZwAKCRBdMo0IKqqxQHv7D/9P3IpDmWCGnLROqJGAh4KmTNH8MsFU
eKFx3secWHP9KeNppS66ieC7Pq7ZNITM66XLaptim2KW7dBbIhQezJr++QvxaPNV
4dACLxPjkjBnLpv8CXljjx7qdfr/ueHEwy/4NyuH6ZGThsQVV8DDAdy4WDWaTVx2
Ngk+rjFx1tBNIt/FcPm887JAQyMkemmhctVnxeRo7W7x9vWZ0CZUE8xrukF2M9vD
DkBp/0avkD8pndMrTlfEO/ykH8sMHBC/QlLNa3dmi98uvndxgnFVNlub1gre0Gx3
ss/nYZlAIwoO9hBXXKpFo63B8eZpxjMx6daKnaGr9eT3TJ2Co9Y4AWzbcHgQt1v4
lAWPsnY2yBP6+WcBM6zezUjl7kv5Iwj7LBN3zXZISVxJ1yhbucsEL/Bl35LVcOuX
20HTAZ+3S+HTB9UtDeApvbPvUTlSv1SyCJQqTSVui0aT3xIFwLgF5HTaYHNXgKm6
ZUdUG7R+9OzNYQfvdkTPjjGAJ/L/J/tjMY9JTsvL2jOKKjdsXmjqpl+XkT5eu6gb
Y6yHdTmeL+uFyyLSbfnBrK9zT7WIfUjL7sdgvA+8Ey9BtB9fkeOJiM806kOGB4wL
rt/gepThgTy480eutiPs0Ug4CAH65es/JBP921RCHtRV+TDM2lql1M3OeoMueap7
R2YqCASSPIeS7Q==
=JdtC
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 21 Jun 2018 07:27:18 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.