dchroot not working




Hi there,

I have a sarge installation in my destop and just created an etch chroot
in order to assess the progress of the testing release and try some new
stuff like openoffice 2.0 and gfortran, for instance.

The problem is when I try to run any application from the chroot etch jail
via dchroot, as normal or root user, by executing, e.g.,

$ dchroot -c etch -d openoffice

the following happens:

/usr/bin/openoffice: line 7: my: command not found
/usr/bin/openoffice: line 9: my: command not found
/usr/bin/openoffice: line 11: my: command not found
/usr/bin/openoffice: openoffice: line 13: syntax error near unexpected
token `{'
/usr/bin/openoffice: openoffice: line 13: `if ($SystemInstallDir =~ /^@/)
{'
dchroot: Child exited non-zero.
dchroot: Operation failed.


Of course, under the chroot itself, I am sure able to launch openoffice
2.0 with no problems. I followed the procedure to create the chroot jail
as per the Debian manual or the site http://www.debian-administration.org
(though they refer explicitly to a 32 bit jail under a 64 bit system; but
I adapted it to my situation...). There was one step I was not able to
reproduce: the one regarding linking my etch 32 bit linker to the sarge
/lib path, i.e.,

$ ln -s /var/chroot/etch-386/lib/ld-linux.so.2 /lib/ld-linux.so.2

It says:

ln: `ld-linux.so.2': File exists


Might this be the cause of the trouble??

Any help is appreciated!


--

###############################################
PROF. MAURICIO O. CALVAO
Federal University of Rio de Janeiro
Institute of Physics, P. O. Box 68528
CEP 21941-972 Rio de Janeiro - RJ
Brazil

Home page: http://www.if.ufrj.br/~orca/
E-mail: orca@xxxxxxxxxx
Phone: (55)(21)2562-7483
###############################################


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: dchroot not working
    ... it to be fixed would probably be waiting for Etch to be released. ... Is it simple to downgrade the login package? ... chroot, perhaps you can set up a script, inside the chroot, and run ... The version of dchroot in stable uses suto ...
    (Debian-User)
  • Re: Building i386 Disk on AMD64 -- chroot Fails: Exec format error
    ... I want to chroot into ... installer, and installed a fresh i386 etch onto the external drive. ... normal AMD64 etch. ...
    (Debian-User)
  • Re: sarge->etch upgrade hits dependency hell
    ... chroot into etch and install a kernel from ... I think udev wants a kernel>= 2.6.15, ... it turns out that aptitude *&had* managed to install the new ...
    (Debian-User)
  • Re: Debian Linux in Chroot
    ... you seem to be really singing the praises of chroot. ... I have a spare 10gig partition on my hard drive. ... simply dual-booting Etch and Lenny, or Etch and Feisty, or something similar. ... and you can even install an entire 32-bit userland on ...
    (Debian-User)
  • Re: dchroot not working
    ... it to be fixed would probably be waiting for Etch to be released. ... Is it simple to downgrade the login package? ... chroot, perhaps you can set up a script, inside the chroot, and run ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)