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@if.ufrj.br
Phone: (55)(21)2562-7483
###############################################
Reply to: