Debian Bug report logs - #363049
Failure trying to run: chroot /opt/chroot/unstable mount -t proc proc /proc

version graph

Package: debootstrap; Maintainer for debootstrap is Debian Install System Team <debian-boot@lists.debian.org>; Source for debootstrap is src:debootstrap (PTS, buildd, popcon).

Reported by: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>

Date: Mon, 17 Apr 2006 11:03:09 UTC

Severity: important

Merged with 379961

Found in versions debootstrap/0.3.3, debootstrap/0.3.3.2, debootstrap/0.3.3.3

Done: Joey Hess <joeyh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>:
New Bug report received and forwarded. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
To: submit@bugs.debian.org
Subject: Failure trying to run: chroot /opt/chroot/unstable mount -t proc proc /proc
Date: Mon, 17 Apr 2006 12:52:17 +0200
Package: debootstrap
Version: 0.3.3
Severity: important

Today I tried to create a new chroot with sid or etch. I am working on a
testing environment and what I get is:

eppesuig3:/opt/chroot# debootstrap  sid /opt/chroot/unstable 
I: Retrieving Release
I: Retrieving Packages
I: Retrieving Packages
I: Retrieving Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
W: Failure trying to run: chroot /opt/chroot/unstable mount -t proc
proc /proc
eppesuig3:/opt/chroot#

Bye,
Giuseppe

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-powerpc
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=ISO-8859-1)
(ignored: LC_ALL set to it_IT)

Versions of packages debootstrap depends on:
ii  binutils             2.16.1cvs20060117-1 The GNU assembler, linker
and bina
ii  wget                 1.10.2-1            retrieves files from the
web

debootstrap recommends no packages.

-- no debconf information





Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to 363049@bugs.debian.org, luk@debian.org:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #10 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 363049@bugs.debian.org
Subject: Re: Failure trying to run: chroot /opt/chroot/unstable mount -t proc, proc /proc
Date: Sun, 27 Aug 2006 18:48:29 +0200
[Message part 1 (text/plain, inline)]
Hi

I can reproduce this with a sarge system building an unstable chroot, though I
use a recent debootstrap. The funny thing is that building a sarge chroot
works like a charm...

Any hints how to debug this?

Cheers

Luk

-- 
Luk Claes - http://people.debian.org/~luk - GPG key 1024D/9B7C328D
Fingerprint:   D5AF 25FB 316B 53BB 08E7   F999 E544 DE07 9B7C 328D

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Luk Claes <luk@debian.org>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #15 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 363049@bugs.debian.org
Subject: Re: Failure trying to run: chroot /opt/chroot/unstable mount -t proc, proc /proc
Date: Sun, 27 Aug 2006 19:54:25 +0200
[Message part 1 (text/plain, inline)]
Hi

Below the contents of the debootstrap.log file (also in attachment) which
indicates the cause of the problem. Though I cannot find line 885 in a file
with 495 lines yet :-)

debootstrap.log:
---------
/usr/sbin/debootstrap: line 885:
/tmp/sid/var/lib/apt/lists/debootstrap.invalid_dists_sid_main_binary-mips_Packages:
No such file or directory
/usr/sbin/debootstrap: line 885:
/tmp/sid/var/lib/apt/lists/debootstrap.invalid_dists_sid_main_binary-mips_Packages:
No such file or directory
ar: /tmp/sid/: File format not recognized

zcat: stdin: unexpected end of file
chroot: cannot run command `mount': No such file or directory
----------

Cheers

Luk

-- 
Luk Claes - http://people.debian.org/~luk - GPG key 1024D/9B7C328D
Fingerprint:   D5AF 25FB 316B 53BB 08E7   F999 E544 DE07 9B7C 328D
[debootstrap.log (text/plain, inline)]
/usr/sbin/debootstrap: line 885: /tmp/sid/var/lib/apt/lists/debootstrap.invalid_dists_sid_main_binary-mips_Packages: No such file or directory
/usr/sbin/debootstrap: line 885: /tmp/sid/var/lib/apt/lists/debootstrap.invalid_dists_sid_main_binary-mips_Packages: No such file or directory
ar: /tmp/sid/: File format not recognized

zcat: stdin: unexpected end of file
chroot: cannot run command `mount': No such file or directory
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to "[KS]" <lists04@fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #20 received at 363049@bugs.debian.org (full text, mbox, reply):

From: "[KS]" <lists04@fastmail.fm>
To: 363049@bugs.debian.org
Subject: Failure trying to run: chroot /opt/chroot/unstable mount -t proc proc /proc
Date: Mon, 04 Sep 2006 16:18:10 -0400
I had a similar problem when trying to debootstrap a USB disk. Searching
about it I found a hint that the partition in question should have been
mounted using the "exec" option initially. Everything worked fine after
that.

So if the exec does the trick, does this actually render the problem
solved? (and hence bug status to be resolved?)
HTH,
----
KS



Severity set to `grave' from `important' Request was from Sven Luther <sven.luther@wanadoo.fr> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `important' from `grave' Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Sven Luther <sven.luther@wanadoo.fr>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #29 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Sven Luther <sven.luther@wanadoo.fr>
To: 363049@bugs.debian.org
Subject: more info about this bug ...
Date: Tue, 21 Nov 2006 08:24:16 +0100
Hi,

Anthony Towns told me that this most probably was a problem in the local apt
setup, so i investigated more.

I found that :

  - you have to add an explicit mirror, and not omit it as the manual page
    seem to imply.

  - using debootstrap with approx seems to be error prone. Strange, since it
    worked flawlessly in d-i, but i didn't get apt when i tried it from an
    installed etch system. Maybe an approx bug, not sure.

So, i wonder if the other reporters of this problem could give some hint about
how they invoked debootstrap, and what their setup was ? 

Anthony, it would be great if you upgraded the manpage to actually match the
reality. 

I think this should be kept RC at least until we have some comment from
Anthony about what this bug actually is, and some hints about how to work
around it.

Friendly,

Sven Luther



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Sven Luther <sven.luther@wanadoo.fr>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #34 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Sven Luther <sven.luther@wanadoo.fr>
To: 363049@bugs.debian.org
Subject: probably found the reason for this ...
Date: Tue, 21 Nov 2006 11:26:58 +0100
severity 363049 important
thanks

Well, thanks to Neil McGovern who helped me investigate this issue, we found
out that :

  1) debootstrap defaults to ftp.debian.org when no mirror is given.

  2) the ftp.debian.org archive has been vancouverized, and is no more
  providing non-x86 archives (well, at least no powerpc archives), and thus
  omitting the mirror will fail silently because of those missing archives.

  3) there are no useful error messages about this fact, thus leading to the
  error by mounting proc.

To solve this issue, i guess a solution is twofold :

  1) debootstrap should default to a per-arch mirror. We need an appropriate
  alias for such per arch mirror though (<arch>.ftp.debian.org for example).

  2) debootstrap should warn the user if he is using an archive who is not
  carrying the arch that the user is trying to debootstrap.

And in general, more speaking error messages would be welcome.

Friendly,

Sven Luther



Information forwarded to debian-bugs-dist@lists.debian.org, krasnoj@gmx.at, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Stefan Hirschmann <krasnoj@gmx.at>:
Extra info received and forwarded to list. Copy sent to krasnoj@gmx.at, Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #39 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Stefan Hirschmann <krasnoj@gmx.at>
To: Debian Bug Tracking System <363049@bugs.debian.org>
Subject: 363049: Confirm bug tags 363049 + confirmed
Date: Sat, 31 Mar 2007 22:32:26 +0200
Package: debootstrap
Version: 0.3.3.2
Followup-For: Bug #363049

I also have this bug when I try to build etch, but Sarge works.
The hint with using exec as mount option (edited /etc/fstab) didn't work for me. And I tried to build 
i386, so it can't be an unsupported plattform the reason (used ftp.at.debian.org/debian). So it seems 
that there are more bugs

Cheers Stefan

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.4-grsec
Locale: LANG=de_AT@euro, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)

Versions of packages debootstrap depends on:
ii  binutils                      2.17-4     The GNU assembler, linker and bina
ii  wget                          1.10.2-2   retrieves files from the web

debootstrap recommends no packages.

-- no debconf information



Merged 363049 379961. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Sat, 16 Jun 2007 17:18:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#363049; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Francesco Paolo Lovergine <frankie@debian.org>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #46 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Francesco Paolo Lovergine <frankie@debian.org>
To: Debian Bug Tracking System <363049@bugs.debian.org>
Subject: mount missing
Date: Sun, 17 Jun 2007 19:06:22 +0200
Package: debootstrap
Version: 0.3.3.3
Followup-For: Bug #363049

By chrooting in, it seems simply that mount is missing. That trying to 
targetting sid.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-3-686 (SMP w/1 CPU core)
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages debootstrap depends on:
ii  binutils               2.17cvs20070426-8 The GNU assembler, linker and bina
ii  wget                   1.10.2-2          retrieves files from the web

debootstrap recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#363049; Package debootstrap. (Sat, 08 Nov 2008 00:21:02 GMT) (full text, mbox, link).


Acknowledgement sent to Brian Szymanski <ski-debian@allafrica.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sat, 08 Nov 2008 00:21:02 GMT) (full text, mbox, link).


Message #51 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Brian Szymanski <ski-debian@allafrica.com>
To: 363049@bugs.debian.org
Subject: Re: probably found the reason for this ...
Date: Fri, 07 Nov 2008 19:18:49 -0500
regarding the initial bug...

The solution Sven has proposed can be improved, without all the mirror
bloat, I think. The sane thing to do would be for debootstrap to default
to what's in /etc/apt/sources.list when no mirror is given. This avoids
the logistical nightmare of having to make and update
$arch.ftp.debian.org foreach architecture. If you're using it in
sources.list, it has your architecture.

Cheers
Brian




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#363049; Package debootstrap. (Sat, 08 Nov 2008 14:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to peter green <plugwash@p10link.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sat, 08 Nov 2008 14:06:02 GMT) (full text, mbox, link).


Message #56 received at 363049@bugs.debian.org (full text, mbox, reply):

From: peter green <plugwash@p10link.net>
To: Brian Szymanski <ski-debian@allafrica.com>, 363049@bugs.debian.org
Subject: Re: Bug#363049: probably found the reason for this ...
Date: Sat, 08 Nov 2008 14:05:02 +0000
>
> The solution Sven has proposed can be improved, without all the mirror
> bloat, I think. The sane thing to do would be for debootstrap to default
> to what's in /etc/apt/sources.list when no mirror is given. This avoids
> the logistical nightmare of having to make and update
> $arch.ftp.debian.org foreach architecture. If you're using it in
> sources.list, it has your architecture.
>   
The thing is sources.list often contains things other than the debian 
mirror and it may be tricky to figure out what is the debian mirror and 
what is something else.





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#363049; Package debootstrap. (Sat, 08 Nov 2008 21:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Brian Szymanski <ski-debian@allafrica.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sat, 08 Nov 2008 21:09:09 GMT) (full text, mbox, link).


Message #61 received at 363049@bugs.debian.org (full text, mbox, reply):

From: Brian Szymanski <ski-debian@allafrica.com>
To: peter green <plugwash@p10link.net>
Cc: 363049@bugs.debian.org
Subject: Re: Bug#363049: probably found the reason for this ...
Date: Sat, 08 Nov 2008 16:05:59 -0500
peter green wrote:
>
>>
>> The solution Sven has proposed can be improved, without all the mirror
>> bloat, I think. The sane thing to do would be for debootstrap to default
>> to what's in /etc/apt/sources.list when no mirror is given. This avoids
>> the logistical nightmare of having to make and update
>> $arch.ftp.debian.org foreach architecture. If you're using it in
>> sources.list, it has your architecture.
>>   
> The thing is sources.list often contains things other than the debian
> mirror and it may be tricky to figure out what is the debian mirror
> and what is something else.
>
Sure, but that doesn't prevent us from looking for "recognizable"
entries that match, say:
  ^\s*deb\s+(f|ht)tp://.*\.debian\.org/debian/\s+(etch|stable)\s+
and fall back to http://ftp.debian.org/debian/ in the event we can't
find a match. Or are you claiming the proposed regular expression would
not be general enough?

An even simpler solution would be to simply default to a mirror that
hosts all supported architectures... Surely there is one somewhere?

C,B





Reply sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. (Wed, 17 Feb 2010 21:54:06 GMT) (full text, mbox, link).


Notification sent to Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>:
Bug acknowledged by developer. (Wed, 17 Feb 2010 21:54:06 GMT) (full text, mbox, link).


Message #66 received at 363049-done@bugs.debian.org (full text, mbox, reply):

From: Joey Hess <joeyh@debian.org>
To: 363049-done@bugs.debian.org
Subject: closing bug
Date: Wed, 17 Feb 2010 16:51:40 -0500
[Message part 1 (text/plain, inline)]
Two issues were raised in this bug.

1. debootstrap didn't fail early and died with a weird mount error
   if a mirror didn't have an arch

   This is no longer the case, for example:

	joey@box:/tmp>sudo debootstrap sid sid http://debian.corenetworks.net/debian/
	[sudo] password for joey: 
	I: Retrieving Release
	I: Retrieving Packages
	I: Retrieving Packages
	I: Retrieving Packages
	E: Couldn't download dists/sid/main/binary-armel/Packages

   That was fixed in version 1.0.10:

  * Abort if a Packages file failed to verify.

2. default mirror not suitable for all arches

   The default mirror is now http.us.debian.org, and that mirror
   (and generally ftp.cc.debian.org (with the exception of ftp.au)
   currently include all release architectures.

So, closing.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Reply sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. (Wed, 17 Feb 2010 21:54:06 GMT) (full text, mbox, link).


Notification sent to Joey Hess <joeyh@debian.org>:
Bug acknowledged by developer. (Wed, 17 Feb 2010 21:54:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 18 Mar 2010 07:33:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 13:37:35 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.