Bug#901717: closed by Hideki Yamane (Bug#901717: fixed in debootstrap 1.0.104)
Hi Hideki, I can confirm this patch fixes the initial issue, but installing some packages with apt after gives me some issues: /lib/ld-linux-ar/lib/ld-linux-armhf.so.3: No such file or directory Version 1.0.101 does not cause these issues. I will investigate this more this week and get back to you. This may be a separate issue, though. Cheers! On 26 June 2018 at 13:21, Debian Bug Tracking System wrote: > This is an automatic notification regarding your Bug report > which was filed against the debootstrap package: > > #901717: debootstrap: Version 1.0.102 breaks use of file mirrors > > It has been closed by Hideki Yamane . > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Hideki Yamane > by > replying to this email. > > > -- > 901717: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901717 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > > > -- Forwarded message -- > From: Hideki Yamane > To: 901717-cl...@bugs.debian.org > Cc: > Bcc: > Date: Tue, 26 Jun 2018 12:19:15 + > Subject: Bug#901717: fixed in debootstrap 1.0.104 > Source: debootstrap > Source-Version: 1.0.104 > > 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 901...@bugs.debian.org, > and the maintainer will reopen the bug report if appropriate. > > Debian distribution maintenance software > pp. > Hideki Yamane (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 ftpmas...@ftp-master.debian.org) > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Format: 1.8 > Date: Sun, 24 Jun 2018 20:41:13 +0900 > Source: debootstrap > Binary: debootstrap debootstrap-udeb > Architecture: source > Version: 1.0.104 > Distribution: unstable > Urgency: medium > Maintainer: Debian Install System Team > Changed-By: Hideki Yamane > Description: > debootstrap - Bootstrap a basic Debian system > debootstrap-udeb - Bootstrap the Debian system (udeb) > Closes: 899155 901717 > Changes: > debootstrap (1.0.104) unstable; urgency=medium > . >* Fix /etc/machine-id mount issue (Closes: #899155) >* Fix regression with file:/// mirror (Closes: #901717) > Checksums-Sha1: > d3d1af265af066a248def5f59ed60549ca5301d1 2017 debootstrap_1.0.104.dsc > 6dce2e5390dc1d1bdcf6ca270615775c9f14be14 73264 debootstrap_1.0.104.tar.gz > 074ab4b2560e4e1bb2f08e1fa35850447236ebb5 5854 > debootstrap_1.0.104_amd64.buildinfo > Checksums-Sha256: > 8b95ca08935bb002d726ff5c12ff99e0a5e37a1f0267d5ebd38cecefb17bc9c7 2017 > debootstrap_1.0.104.dsc > fd01743c9d87aef2621c88420f896c67342c85ce24d289fad021518755801b28 73264 > debootstrap_1.0.104.tar.gz > 9ee32dc182365e05cb9a97bc44e44b83ce78c565d2dd575e880abb71e95b5441 5854 > debootstrap_1.0.104_amd64.buildinfo > Files: > 3643a66fb173b612b5765e6a05c5b28b 2017 admin optional debootstrap_1.0.104.dsc > 10743679b4121c9a70a0ac9690882b5f 73264 admin optional > debootstrap_1.0.104.tar.gz > bba1d6c61b1ae14983721047f9cddda2 5854 admin optional > debootstrap_1.0.104_amd64.buildinfo > > -BEGIN PGP SIGNATURE- > > iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlsvhQsTHGhlbnJpY2hA > ZGViaWFuLm9yZwAKCRBdMo0IKqqxQKU7EAC39+bVPMgYAMKPt7+Ke0hrya914noZ > BuZaaVaV/3vBFfWT5qsYQDw0W6gx3FBwlD7vSBpFb8uv4XmLLtkn6cOEgfXrfPvZ > dv8Y6G/UdT3cyggrlwM0fzI0jECVpx6pqk5/M8q44A+JoyU82M9sB4/FCQ/TLSM6 > 6tcAkJfoMNff3gUVvQ4UhYZfN1gEq2g/+l+wazh4D47d17gx0FSAlr6q40RP6nGn > CNG4DackiuiBdQI/z77pK5SqdXrhvGw7qKyFg1vKHVR6sh5fvKS+WXhvaziEXC3v > f8ixEBmNCtX6zxdGJt+eS8CERJtjcHscwsDMljZo8MuKxCDLiVamYq0JjHjPiB7p > 5LiLjvpdytI2oueo1omp2Io97L3aBnxAg5i+D7nDL0Z4/xuHsf5+CGAndkiPVSuC > NQF69zzY43wiaxUKDVyAnJ8qz/gb4Ao733255dBOYyN9ZbXHnMBJU46f17reM/Eg > hNR185Yvdjq0WewG4957rUyW9OVUxWaBzqSHltSb0qBhC2BuNittupdiHlTzagPe > 9a/sIw4bpyUIUE/4lGtLaAr+INPP3gk5ExksBe2yYEudUNTXwNnZvyODFww4NFK8 > Kxy/B31BP4tQutzrnmvoBIgSA/ObrbQyJWfyNcMT8KvWsiJll0Rgm3bsr3xhjoja > 7RwX8G/BXlYp8Q== > =GELe > -END PGP SIGNATURE- > > -- Forwarded message -- > From: Christopher Obbard > To: sub...@bugs.debian.org > Cc: > Bcc: > Date: Sun, 17 Jun 2018 12:07:22 +0100 > Subject: debootstrap: Version 1.0.102 brea
Bug#901717: debootstrap: Version 1.0.102 breaks use of file mirrors
Hi, On Sat, 23 Jun 2018 11:14:58 +0100 Christopher Obbard wrote: > $ cat test/debootstrap/debootstrap.log > ... > /debootstrap/debootstrap: 1428: /debootstrap/debootstrap: cannot open > //var/lib/apt/lists/http:__deb.debian.org_debian_dists_buster_main_binary-armhf_Packages: > No such file Oh, that is not expected, installation was failed... Here's a proposed patch. diff --git a/debootstrap b/debootstrap index 023a54f..c61636f 100755 --- a/debootstrap +++ b/debootstrap @@ -422,6 +422,7 @@ fi if [ "$SECOND_STAGE_ONLY" = "true" ]; then SUITE=$(cat "$DEBOOTSTRAP_DIR/suite") ARCH=$(cat "$DEBOOTSTRAP_DIR/arch") + USER_MIRROR=$(cat "$DEBOOTSTRAP_DIR/mirror") if [ -e "$DEBOOTSTRAP_DIR/variant" ]; then VARIANT=$(cat "$DEBOOTSTRAP_DIR/variant") SUPPORTED_VARIANTS="$VARIANT" @@ -725,6 +726,7 @@ if am_doing_phase first_stage; then cp "$DEBOOTSTRAP_DIR"/scripts/*-common "$TARGET/debootstrap/" echo "$ARCH">"$TARGET/debootstrap/arch" echo "$SUITE" >"$TARGET/debootstrap/suite" + echo "$USER_MIRROR" >"$TARGET/debootstrap/mirror" [ "" = "$VARIANT" ] || echo "$VARIANT" >"$TARGET/debootstrap/variant" echo "$required">"$TARGET/debootstrap/required" > >> we should write the file mirror URI to sources.list > > > > And that assumption needs to be discussed. > > > > If we would create chroot with debootstrap specified with file:/// > > mirror and bring it to another environment, sources.list should > > point local file mirror or not? > > You are right, thinking about it mirror URI should not added to sources.list. > I do like the original method debootstrap 1.0.101 uses of caching the > list of packages when using a file mirror under debootstrap.invalid. > All of the packages are cached in the first-stage anyway. > > After the install is complete, we should clear /etc/apt/sources.list > of debootstrap.invalid. > The user should update /etc/apt/sources.list himself anyway. I prefer to use http(s)://deb.debian.org/debian as default mirror setting for it, since it's okay for most users and works.
Bug#901717:
I have confirmed debootstrap 1.0.101 is unaffected, so I am using this version in the mean time. Okay, so thinking about it I think inserting debootstrap.invalid in the sources.list was a pretty good way of doing it for the case of anything that isn't an http/https mirror. Can we do that instead of the current patch? Cheers!
Bug#901717: debootstrap: Version 1.0.102 breaks use of file mirrors
Package: debootstrap Version: 1.0.102 Severity: important This is a new bug introduced in 1.0.101 We use debootstrap with a custom file:// mirror to strap cross-arch images for SBCs, with a second call to debootstrap --second-stage. in this format: debootstrap --foreign --arch="armhf" "buster" "test" "file://$PWD/repo" cp /usr/bin/qemu-arm-static test/usr/bin/ chroot test/ /debootstrap/debootstrap --second-stage Normally, debootstrap is used with http and https mirrors so this bug will not be an issue for most users. In git commit #48d77abf3a4209f7cff72aec20f618e086169aa7 the following change breaks debootstrap for my use: if there is no http or https mirror defined, revert MIRRORS back to DEF_MIRROR. This is dangerous because now --second-stage will always revert to DEF_MIRROR. we should write the file mirror URI to sources.list When trying to setup packages using setup_available, debootstrap exits and the log complains it cannot find the cached Packages file from DEF_MIRROR. I think debootstrap in --second-stage mode should read the mirror URI from sources.list or read the mirror URI from a new file called /debootstrap/mirror. What do you think? Cheers!