|
Prev: Linux-image-2.6.25 won't boot - target filesystem error -SOLVED
Next: Diagnosing non-working trackpoint button
From: michael on 1 Jul 2008 07:40 On Tue, 2008-07-01 at 06:50 -0300, Gabriel Parrondo wrote: > El mar, 01-07-2008 a las 10:41 +0100, michael escribió: > > On Tue, 2008-07-01 at 10:17 +0100, michael wrote: > > > On Tue, 2008-07-01 at 06:06 -0300, Gabriel Parrondo wrote: > > > > El mar, 01-07-2008 a las 09:46 +0100, michael escribió: > > > > > I am trying to install Debian Etch on a box that already has Fedora > > > > > but when using debootstrap I get the message > > > > > > > > > > Installer error: Failure trying to run: chroot /target mount -t proc > > > > > proc /proc > > > > > > > > > > There are more details below but could somebody enlighten me as to > > > > > its meaning and what's going wrong? Ta, M > > > > > > > > > > Details: Fedora fc7 box is Core2 Duo with LVM, make a new partition / > > > > > debian_chroot, install debootstrap using yum, run debootstrap to > > > > > install etch for arch amd64 using UK mirror. Installs/verifies many > > > > > packages then gives above error. /var/log/messages is empty (!). > > > > > > > > > > > > > What parameters are you passing to debootstrap? It should be something > > > > like: > > > > debootstrap etch /debian_chroot http://somemirror/debian > > > > > > > > If that's correct, you should make sure that you're running it as root > > > > and the chroot binary is in PATH ('which chroot'). > > > > > > > > > > > > If that doesn't help, please copy the exact error you're receiving. > > > > > > > > > > fedora$ sudo /usr/sbin/debootstrap --arch amd64 etch /debian_chroot/ > > > http://ftp.uk.debian.org/debian/ > > > > > > The error was as above! And was the last thing the debootstrap issued.. > > > > here we go, just reran: > > > > mkb(a)veri:~$ sudo /usr/sbin/debootstrap --arch amd64 etch /debian_chroot/ > > http://ftp.uk.debian.org/debian/ > > Password: > > I: Retrieving Release > [...] > > W: Failure trying to run: chroot /debian_chroot mount -t proc proc /proc > > > > Just to clarify I'm doing this since I wish to install Debian (as the > > main and then only) Linux on the machine, but when tried the netinst it > > wasn't happy with the CDROM. > > > > I tought it would show something useful. I remember there was a log file > somewhere in /target/debootstrap, maybe it contains a more descriptive > error. > Just to be sure, I've su to root, ensure 'chroot' is in its path and tried again and now get a different but more informative error (see below). I guess it was right in saying it couldn't run chroot since on Fedora /usr/sbin/chroot wasn't in the path, so thanks for pointing that out. So, now the error appears to be: W: Failure trying to run: chroot /debian_chroot dpkg --force-depends --install var/cache/apt/archives/base-files_4_amd64.deb var/cache/apt/archives/base-passwd_3.5.11_amd64.deb [root(a)veri mkb]# I can't find a /target, either in the Fedora or the chroot 'things' (what is the right word?) but /debian_chroot/debootstrap/debootstrap.log contains: pkg: `ldconfig' not found on PATH. dpkg: `start-stop-daemon' not found on PATH. dpkg: 2 expected program(s) not found on PATH. NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin. /usr/share/debootstrap/functions: line 5: echo: write error: Broken pipe So I added /sbin to the PATH (for ldconfig but can't locate start-stop-daemon), presuming it's Fedora's and not the chroot's /sbin/ldconfig that's required, and tried again, this time giving the welcome: I: Base system installed successfully. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Gabriel Parrondo on 1 Jul 2008 09:10
El mar, 01-07-2008 a las 12:37 +0100, michael escribió: > On Tue, 2008-07-01 at 06:50 -0300, Gabriel Parrondo wrote: > > El mar, 01-07-2008 a las 10:41 +0100, michael escribió: > > > On Tue, 2008-07-01 at 10:17 +0100, michael wrote: > > > > On Tue, 2008-07-01 at 06:06 -0300, Gabriel Parrondo wrote: [...] > > > > > > > > > > What parameters are you passing to debootstrap? It should be something > > > > > like: > > > > > debootstrap etch /debian_chroot http://somemirror/debian > > > > > > > > > > If that's correct, you should make sure that you're running it as root > > > > > and the chroot binary is in PATH ('which chroot'). > > > > > > > > > > > > > > > If that doesn't help, please copy the exact error you're receiving. > > > > > > > > > > > > > fedora$ sudo /usr/sbin/debootstrap --arch amd64 etch /debian_chroot/ > > > > http://ftp.uk.debian.org/debian/ > > > > > > > > The error was as above! And was the last thing the debootstrap issued. > > > > > > here we go, just reran: > > > > > > mkb(a)veri:~$ sudo /usr/sbin/debootstrap --arch amd64 etch /debian_chroot/ > > > http://ftp.uk.debian.org/debian/ > > > Password: > > > I: Retrieving Release > > [...] > > > W: Failure trying to run: chroot /debian_chroot mount -t proc proc /proc [...] > > Just to be sure, I've su to root, ensure 'chroot' is in its path and > tried again and now get a different but more informative error (see > below). I guess it was right in saying it couldn't run chroot since on > Fedora /usr/sbin/chroot wasn't in the path, so thanks for pointing that > out. > > So, now the error appears to be: > W: Failure trying to run: chroot /debian_chroot dpkg --force-depends > --install var/cache/apt/archives/base-files_4_amd64.deb > var/cache/apt/archives/base-passwd_3.5.11_amd64.deb > [root(a)veri mkb]# > > I can't find a /target, either in the Fedora or the chroot > 'things' (what is the right word?) > but /debian_chroot/debootstrap/debootstrap.log contains: > pkg: `ldconfig' not found on PATH. > dpkg: `start-stop-daemon' not found on PATH. > dpkg: 2 expected program(s) not found on PATH. > NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin > and /sbin. > /usr/share/debootstrap/functions: line 5: echo: write error: Broken pipe > > So I added /sbin to the PATH (for ldconfig but can't locate > start-stop-daemon), presuming it's Fedora's and not the > chroot's /sbin/ldconfig that's required, and tried again, this time > giving the welcome: > > > I: Base system installed successfully. > > Interesting, the path wasn't modified when you "sued" to root. When it says it cannot find ldconfig or start-stop-daemon in the path, it's talking about the path under the chroot. But, the path used within the chroot is inherited from the shell calling it. That's why it worked after adding /sbin to the path (on a debian system, it also contains start-stop-daemon). A normal PATH for root is: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. Anyway, glad you could solve it. -- Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: gabrielp(a)xmpp.us "The only difference between theory and practice is that, in theory, there's no difference between theory and practice." |